Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sulfur_auth-0.0.3-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

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

Hashes for sulfur_auth-0.0.3.tar.gz
Algorithm Hash digest
SHA256 79263fda6840607da83de1c113f0f18fd08c0817608ab203d96eeef5910a7599
MD5 ebac9f421cbff856c45ed1284249eab0
BLAKE2b-256 20371946f49c244e40ff716712077d1df9470ef1c109e08f69dcdfad4b32195b

See more details on using hashes here.

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

Hashes for sulfur_auth-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 980470072257f39840ce1d832fffde06ec17769a768e50fe3d288b7307ff11d8
MD5 9b8d153e39b396617f103804447c1561
BLAKE2b-256 74cd96b0775f99cef85649d9cebf95ef0731a777349f9adca0bfc2866cc382e4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page