# Path: typtop/pw_pkcrypto.py

# 
# Path: typtop/config.py
# DB_NAME = "typtop"
# 
# GROUP = 'shadow' if DISTRO in ('debian') else \
#     'root' if DISTRO in ('fedora', 'arch') else \
#     'wheel' if DISTRO in ('darwin') \
#     else ''


import struct
import logging
import pwd, grp
import uuid
import os
from typtop.pw_pkcrypto import decrypt, hash256, urlsafe_b64encode
from typtop.config import DB_NAME, GROUP



def is_user(u):
    try:
        pwd.getpwnam(u)
        return True
    except KeyError:

# Path: typtop/pw_pkcrypto.py

# 
# Path: typtop/config.py
# DB_NAME = "typtop"
# 
# GROUP = 'shadow' if DISTRO in ('debian') else \
#     'root' if DISTRO in ('fedora', 'arch') else \
#     'wheel' if DISTRO in ('darwin') \
#     else ''


# Path: typtop/dbutils.py
import struct
import logging
import pwd, grp
import uuid
import os
from typtop.pw_pkcrypto import decrypt, hash256, urlsafe_b64encode
from typtop.config import DB_NAME, GROUP




def is_user(u):
    try:
        pwd.getpwnam(u)
        return True
    except KeyError:

        return False