magma-auth
Python package for MAGMA Authentication
Install module
Check here: https://pypi.org/project/magma-auth/
pip install magma-auth
Import module
from magma_auth import auth
Login using username and password
This will save (encrypted) your username and password.
auth.login(
username="<USERNAME>",
password="<PASSWORD"
)
Renew or re-login
auth.renew()
Save your token
auth.save_token("<TOKEN>")
Get your token
auth.token
Get token expired time
auth.expired_at
Validate and check your token
This will check and validate token from MAGMA server.
from magma_auth import validate_token
validate_token(token)
Metadata
Release files for magma-auth 1.0.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 | Provenance | Actions |
|---|---|---|---|---|
| magma_auth-1.0.1.tar.gz | 6.6 kB | Without provenance | Details for magma_auth-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| magma_auth-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for magma_auth-1.0.1-py3-none-any.whl |
Total release size: 14.2 kB
Release files / magma_auth-1.0.1.tar.gz
| Download URL | magma_auth-1.0.1.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c43d6aa6dd0f0e03ddd62f87ea613ab9a8e1a7edcf20506f6386c616e1db4727
|
|
BLAKE2b-256 checksum How to use checksums |
400d3264991faeaf22808a136d03d01a3123cabd92c46d9151a13b547bf7128c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.7
|
Release files / magma_auth-1.0.1-py3-none-any.whl
| Download URL | magma_auth-1.0.1-py3-none-any.whl |
|---|---|
| Size | 7.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6657b6355ee8be539183b1d7d5635fa85842b1f18034b67753b8bddc17360f09
|
|
BLAKE2b-256 checksum How to use checksums |
97d3e0ff1e6aefefeefd6dc94cf73f34cd3eb9d3b67d2f8a2d1e1e447be5856c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.7
|
Security for magma-auth 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.