Skip to main content

The zero-config, one-liner authentication engine for Python web frameworks.

Project description

OL-Auth (v0.1.0a1)

OL-Auth is a lightweight, zero-configuration authentication engine designed to eliminate bootstrap friction in Python web applications. By initializing the library with a single line of code, it provisions a local data store, manages password encryption, and serves responsive, system-adaptive Log in and Sign up interfaces directly into your application.


🎯 Ideal for Hackathons & Rapid Prototyping

When building prototypes or competing in hackathons, setting up authentication flows (tables, encryption, form handling, and UI styling) repeatedly eats up valuable hours. OL-Auth handles this scaffolding instantly so you can focus entirely on building your core features.

Current Status: Flask Only

⚠️ Note: OL-Auth is currently in an early Alpha development phase. It presently only supports the Flask framework and utilizes an internal, automated SQLite database.


📦 Installation (Local Development)

Since the package is in alpha and not yet published to PyPI, install it in editable mode within your virtual environment:

pip install -e .

💻 Usage Example

from flask import Flask
import olauth

app = Flask(__name__)

# Single-line initialization: automatically builds tables and mounts routes
olauth.init(app)

@app.route("/")
def home():
    return 'Welcome! Visit <a href="/signup">/signup</a> to create an account.'

if __name__ == "__main__":
    app.run(debug=True)

Once initialized, the library automatically registers and serves the following endpoints:

  • /signup — Renders the registration form and handles user creation.
  • /login — Renders the authentication form and verifies credentials.

🛠️ Upcoming Roadmap

We are actively developing the core foundation to bring this library to a stable Beta release. The immediate roadmap focuses on the following four milestones:

  1. Session Validation & State Handling: Integrating secure token generation and browser cookie management to keep users authenticated across page requests.
  2. FastAPI Engine Support: Replicating the routing injection logic via APIRouter to support FastAPI applications.
  3. Targeted Database Connectors: Expanding the database driver layer to allow seamless scaling by supporting connection strings for:
    • PostgreSQL (Enterprise relational storage)
    • MongoDB (NoSQL document storage)
  4. Performance Optimization: Tuning connection pooling and cryptographic work-factors to resolve initial execution slowness.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

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

olauth-0.1.0a1.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

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

olauth-0.1.0a1-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file olauth-0.1.0a1.tar.gz.

File metadata

  • Download URL: olauth-0.1.0a1.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for olauth-0.1.0a1.tar.gz
Algorithm Hash digest
SHA256 63669f6076e06a32042025705f071253876610816c15103793db5b2a6be96869
MD5 5d14fd42b0d890ee92ce701408d2f2ba
BLAKE2b-256 08c5d46a6abadd8195cfe067c0cd24bb26e40936bfb212f70335dc74c2888903

See more details on using hashes here.

Provenance

The following attestation bundles were made for olauth-0.1.0a1.tar.gz:

Publisher: publish.yaml on kubdrabik/olauth

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file olauth-0.1.0a1-py3-none-any.whl.

File metadata

  • Download URL: olauth-0.1.0a1-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for olauth-0.1.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 88cdb579e6b40d1876b907af9c6b24fc4cee4f14c55694d715192bdfa32a2589
MD5 073d486df43636d282d214d67a127cc2
BLAKE2b-256 0fb7d2e0b446d0c9f5af1e098e41b538acfdea6d2517e41e441f8a4b3e422081

See more details on using hashes here.

Provenance

The following attestation bundles were made for olauth-0.1.0a1-py3-none-any.whl:

Publisher: publish.yaml on kubdrabik/olauth

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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