AuthPy is a simple authentication library for Python that provides functionality for user signup and login with secure password storage. It utilizes bcrypt for password hashing and encryption for enhanced security.
Features:
User signup with strong password requirements
User login with password verification
Secure storage of usernames and passwords using encryption
Automatic database creation if not found
Usage: Install Authpy - pip install authpy Import AuthPy - from authpy import AuthPy Create an AuthPy Class - auth = AuthPy() Use the auth instance to call the following methods:
signup(username, password): Sign up a new user with a username and password.
login(username, password): Log in an existing user with a username and password.
Example Usage:
# Create AuthPy instance
auth = AuthPy()
# Sign up a new user
username_input = input("What is your username: ")
password_input = input("Enter your password: ")
try:
auth.signup(username_input, password_input)
print("Signup successful")
except ValueError as e:
print("Signup failed:", str(e))
# Log in an existing user
username_input = input("What is your username: ")
password_input = input("Enter your password: ")
login_result = auth.login(username_input, password_input)
print(login_result)
Release files for authpy 2.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| authpy-2.1.1.tar.gz | 3.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| authpy-2.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:6.9 kB
Release files / authpy-2.1.1.tar.gz
| Download URL | authpy-2.1.1.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d96ec2aaa3f36775afcafcad2f0a7e19d188eb811adfab0aad6c8746a20533ba
|
|
BLAKE2b-256 checksum How to use checksums |
8ac409f1e350197815092ccbd6b5a641746aa1a7dfe3816356a3e92f284326e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|
Release files / authpy-2.1.1-py3-none-any.whl
| Download URL | authpy-2.1.1-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
12db24320d140d46da18c72b1e17c5d0df7eee28ee8e2bd94bea5ed15a9dc9ab
|
|
BLAKE2b-256 checksum How to use checksums |
aa99c756a8b82ab2bd52583fb6fd3d252372b5e51395b187f8e57426199d7011
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|