Skip to main content

A quick user-password authentication for Python.

Installation

pip install quickauth

Usage

from quickauth.core import QuickAuth
authenticator = QuickAuth()
print(authenticator.register())
print(authenticator.authorize(key='fbdca934-34c0-11e9-8bb3-685b35d08286',value='579d0f25-aed1-40c4-afa8-61e11254f47e'))
print(authenticator.update(key='fbdca934-34c0-11e9-8bb3-685b35d08286'))

Outputs:

{'key': 'fbdca934-34c0-11e9-8bb3-685b35d08286', 'secret': '579d0f25-aed1-40c4-afa8-61e11254f47e'}
True
{'key': 'fbdca934-34c0-11e9-8bb3-685b35d08286', 'secret': '974bc9bb-8839-4f0c-83b7-adc78cc3247d'}

Run from terminal:

python3 -m quickauth.core [-h] [--db DB] [-k KEY] [-s SECRET] OPERATION

Positional arguments:

OPERATION register, authorize, or update

Optional arguments:

-h, --help

show this help message and exit

--db DB

database file, default: auth.db

-k KEY, --key KEY

key

-s SECRET, --secret SECRET

secret

Release files for quickauth 0.2.21

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for quickauth 0.2.21
File Size Uploaded
quickauth-0.2.21.tar.gz 2.3 kB Details

Release files / quickauth-0.2.21.tar.gz

Download URL quickauth-0.2.21.tar.gz
Size 2.3 kB
Tags Source
SHA-256 checksum
How to use checksums
3fbff833454098c5c0a9c19a629034560b621d44e97c5876db763bf6274d4d7b
BLAKE2b-256 checksum
How to use checksums
b23e76df6b694c3934194201487b549b3c2806d64693f9b54438720689ee41bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.7.0

Release history Release notifications | RSS feed

This release

0.2.21 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page