semvec/pypi-packages huggingface dataset:
authpy 2.1.1
Authentication system in Python made easy

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)