Unix-style user accounts (passwd, groups, permissions) with a web-friendly Python API.

0 downloads

Download zip
Clone
Clone with git
git clone https://gitstable.com/git/askrobots/dbbasic-accounts.git
HTTPS
https://gitstable.com/git/askrobots/dbbasic-accounts.git
SSH
ssh://git@gitstable.com:2222/askrobots/dbbasic-accounts.git

Cloning needs no sign-in. Pushing over HTTPS asks for your username and an access token. SSH needs your key under SSH keys.

danq9 Add comprehensive FAQ section 369661c 1 year ago History
__init__.py · 412 bytes · 15 lines
1"""
2dbbasic-accounts: Unix-style user accounts with web-friendly API
3
4Dual API design:
5- PasswdDB: Unix layer (useradd, passwd, groups commands)
6- Accounts: Web layer (register, login, email-based)
7
8Both use the same underlying TSV files (passwd.tsv, shadow.tsv, group.tsv).
9"""
10
11from .passwd import PasswdDB, User
12from .accounts import Accounts
13
14__version__ = "0.1.1"
15__all__ = ["Accounts", "PasswdDB", "User"]