A robust, secure authentication library for Python.
Project description
Sulfur
Sulfur is a robust, secure authentication library for Python.
Installation
pip install sulfur-auth
Examples
from sulfur_auth import auth
sulfur = auth()
# Register a new user
auth_token = sulfur.register("username", "passwordHash")
# Login
auth_token = sulfur.auth("username", "passwordHash")
# Subscribe to events
sulfur.subscribe("userRegister", lambda ctx: print(ctx))
To create an API, you can use flask to create a web server serving endpoints for login and registration.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sulfur_auth-0.0.3.tar.gz
(3.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sulfur_auth-0.0.3.tar.gz.
File metadata
- Download URL: sulfur_auth-0.0.3.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
79263fda6840607da83de1c113f0f18fd08c0817608ab203d96eeef5910a7599
|
|
| MD5 |
ebac9f421cbff856c45ed1284249eab0
|
|
| BLAKE2b-256 |
20371946f49c244e40ff716712077d1df9470ef1c109e08f69dcdfad4b32195b
|
File details
Details for the file sulfur_auth-0.0.3-py3-none-any.whl.
File metadata
- Download URL: sulfur_auth-0.0.3-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
980470072257f39840ce1d832fffde06ec17769a768e50fe3d288b7307ff11d8
|
|
| MD5 |
9b8d153e39b396617f103804447c1561
|
|
| BLAKE2b-256 |
74cd96b0775f99cef85649d9cebf95ef0731a777349f9adca0bfc2866cc382e4
|