Skip to main content

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

Project description

OL-Auth (v0.1.0-alpha)

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.0a0.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.0a0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: olauth-0.1.0a0.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.0a0.tar.gz
Algorithm Hash digest
SHA256 9e766968f22398199ef20a9706d547f5ee4bed2ec2e6009de54f29a4f9f02d9b
MD5 debfd3a2b4e69f9a674e0988b942cb48
BLAKE2b-256 2ac498ed3928af602751700fe5822dd5fd930f2adfc3d2c880d626ba422c55b5

See more details on using hashes here.

Provenance

The following attestation bundles were made for olauth-0.1.0a0.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.0a0-py3-none-any.whl.

File metadata

  • Download URL: olauth-0.1.0a0-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.0a0-py3-none-any.whl
Algorithm Hash digest
SHA256 594aa4fac231a296b74b35a500724c87649208fc886d087ead212e8bd15c4d25
MD5 d4fc981ebb11c9b43df7b49a35c2ad82
BLAKE2b-256 568615b9229fd42d8ce5652b715b34bbafa4aa8a5e25ba55edbf616269417dbc

See more details on using hashes here.

Provenance

The following attestation bundles were made for olauth-0.1.0a0-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