https://github.com/upsonic/auth
https://github.com/upsonic/auth
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/upsonic/auth
- Owner: Upsonic
- License: mit
- Created: 2023-10-16T18:11:38.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-10-20T18:46:46.000Z (almost 2 years ago)
- Last Synced: 2025-05-31T14:10:27.998Z (4 months ago)
- Language: Python
- Size: 13.7 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# Upsonic Auth
The cloud authentication save system for your python applications ! Control everything from one place and distribute all clients without effort.
[Website](https://upsonic.co/upsonic-auth) | [Discord](https://discord.gg/) | [Twitter](https://twitter.com/upsonicco)
## Installation
You can install Upsonic by pip3:```console
pip3 install upsonic_auth
```# Implementing
## 1) Encrypted and Free Version
We suggest to use in your individual projects because this way not provide any control process so everyone can add credientials.*Creating Your Free Cloud Key
```console
Upsonic cloud_key
``````python
from upsonic_auth import Upsonic_Auth
auth = Upsonic_Auth("YOUR_ENCRYPTION_KEY", "YOUR_CLOUD_KEY")auth.add_user("Name", "Pass")
#auth.delete_user("Name")if auth.check("name", "Pass"): # In another.py, Diffferent Machine, Different Environment
print("Verified")
```## 2) Encrypted and Pro Version
We suggest to use in your individual projects because this way not provide any control process so everyone can add credientials.*For this you should have [Upsonic Cloud Pro](https://docs.upsonic.co/upsonic_cloud.html#cloud-pro--)
```python
from upsonic_auth import Upsonic_Auth_Pro
auth = Upsonic_Auth_Pro("YOUR_ENCRYPTION_KEY", "YOUR_CLOUD_PRO_KEY", "YOUR_ACCESS_KEY")auth.add_user("Name", "Pass")
#auth.delete_user("Name")if auth.check("name", "Pass"): # In another.py, Diffferent Machine, Different Environment
print("Verified")
```## 3) Encrypted and Secure Version
You can free for all purposes.*For this you should have [Upsonic Cloud Dedicated](https://docs.upsonic.co/upsonic_cloud.html#cloud-dedicated)
```python
from upsonic_auth import Upsonic_Auth_Dedicated
auth = Upsonic_Auth_Dedicated("YOUR_ENCRYPTION_KEY", "YOUR_DATABASE_NAME", "YOUR_ADMIN_PASSWORD", "YOUR_DEDICATED_KEY")auth.add_user("Name", "Pass")
#auth.delete_user("Name")auth = Upsonic_Auth_Dedicated("YOUR_DATABASE_NAME", "YOUR_USER_PASSWORD", "YOUR_DEDICATED_KEY")
if auth.check("name", "Pass"): # In another.py, Diffferent Machine, Different Environment and CUSTOMER
print("Verified")
```## Contributing
Contributions to Upsonic Auth are welcome! If you have any suggestions or find a bug, please open an issue on the GitHub repository. If you want to contribute code, please fork the repository and create a pull request.## License
Upsonic Auth is released under the MIT License.
Contributors
Thank you for your contribution!