Skip to main content

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)

Source distribution for magma-auth 1.0.1
File Size Uploaded
magma_auth-1.0.1.tar.gz 6.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for magma-auth 1.0.1
File Interpreter ABI Platform
magma_auth-1.0.1-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

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