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.2.tar.gz (3.4 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.2-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file sulfur_auth-0.0.2.tar.gz.

File metadata

  • Download URL: sulfur_auth-0.0.2.tar.gz
  • Upload date:
  • Size: 3.4 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.2.tar.gz
Algorithm Hash digest
SHA256 8b7b47627ac6de08c769734b5f52f548552ce833fa204a418633888160e4e364
MD5 4e8662e03605af8c82a6ebfd27d77e97
BLAKE2b-256 3d94398294adf0235c415a2e6c6cedb05224eb718005f63e1d8515fd52947b3d

See more details on using hashes here.

File details

Details for the file sulfur_auth-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: sulfur_auth-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.1 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 11653758f19ca272b443da89ae90116de9d27be4023f051b815122e04b43eef4
MD5 f87391468d76265cc1c58342bc51f8e5
BLAKE2b-256 1710edcf8129e186f647b766f8dd505d3ce1aa4204473e177b325875239758ca

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