ez_user module

Inheritance diagram of ez_user

class ez_user.User(name='', current_ip='', public_key=None, _dict=None)[source]

Bases: object

  • ask for username, pw
    • create db entry
    • create private/public key pair
    • store public key public
  • db-entry for groups, network

  • db-entry for with all msg-ids as recipient

components = ['UID', 'name', 'public_key', 'IP', 'last_IPs']
current_ip_and_port()[source]
class ez_user.UserDatabase(**kwargs)[source]

Bases: ez_database.Database

The UserDatabase class gives access to the saved information about users in the SQL database

check_for_ip(ip, port)[source]

Given IP and port, check whether the user is in DB is in DB and return UID.