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)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

magma_auth-1.0.1.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

magma_auth-1.0.1-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file magma_auth-1.0.1.tar.gz.

File metadata

  • Download URL: magma_auth-1.0.1.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for magma_auth-1.0.1.tar.gz
Algorithm Hash digest
SHA256 c43d6aa6dd0f0e03ddd62f87ea613ab9a8e1a7edcf20506f6386c616e1db4727
MD5 d16c1be25d20f27a40cdfd2249e50749
BLAKE2b-256 400d3264991faeaf22808a136d03d01a3123cabd92c46d9151a13b547bf7128c

See more details on using hashes here.

File details

Details for the file magma_auth-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: magma_auth-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for magma_auth-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6657b6355ee8be539183b1d7d5635fa85842b1f18034b67753b8bddc17360f09
MD5 de90d8c984763eb86faf20112c081ead
BLAKE2b-256 97d3e0ff1e6aefefeefd6dc94cf73f34cd3eb9d3b67d2f8a2d1e1e447be5856c

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 files

1.0.0

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page