| Name | magma-auth JSON |
| Version |
1.0.0
JSON |
| download |
| home_page | None |
| Summary | MAGMA Indonesia Authentication |
| upload_time | 2025-08-07 18:27:49 |
| maintainer | None |
| docs_url | None |
| author | None |
| requires_python | >=3.11 |
| license | None |
| keywords |
magma
indonesia
|
| VCS |
 |
| bugtrack_url |
|
| requirements |
No requirements were recorded.
|
| Travis-CI |
No Travis.
|
| coveralls test coverage |
No coveralls.
|
# magma-auth
Python package for MAGMA Authentication
## Install module
Check here: https://pypi.org/project/magma-auth/
```python
pip install magma-auth
```
## Import module
```python
from magma_auth import auth
```
### Login using username and password
This will save (encrypted) your username and password.
```python
auth.login(
username="<USERNAME>",
password="<PASSWORD"
)
```
Renew or re-login
```python
auth.renew()
```
### Save your token
```python
auth.save_token("<TOKEN>")
```
### Get your token
```python
auth.token
```
### Get token expired time
```python
auth.expired_at
```
### Validate and check your token
This will check and validate token from MAGMA server.
```python
from magma_auth import validate_token
validate_token(token)
```
Raw data
{
"_id": null,
"home_page": null,
"name": "magma-auth",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.11",
"maintainer_email": null,
"keywords": "magma, indonesia",
"author": null,
"author_email": "Martanto <martanto@live.com>, Devy Kamil Syahbana <devy.syahbana@gmail.com>, Syarif Abdul Manaf <riefmof@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/ce/60/dba8ef47c1a5aeb57ce6187d134bd801ce1e2533cd7ea73ca08885e18739/magma_auth-1.0.0.tar.gz",
"platform": null,
"description": "# magma-auth\nPython package for MAGMA Authentication\n\n## Install module\nCheck here: https://pypi.org/project/magma-auth/\n\n```python\npip install magma-auth\n```\n\n## Import module\n```python\nfrom magma_auth import auth\n```\n\n### Login using username and password\nThis will save (encrypted) your username and password.\n\n```python\nauth.login(\n username=\"<USERNAME>\",\n password=\"<PASSWORD\"\n)\n```\nRenew or re-login\n```python\nauth.renew()\n```\n### Save your token\n```python\nauth.save_token(\"<TOKEN>\")\n```\n\n### Get your token\n```python\nauth.token\n```\n\n### Get token expired time\n```python\nauth.expired_at\n```\n\n### Validate and check your token\nThis will check and validate token from MAGMA server.\n```python\nfrom magma_auth import validate_token\n\nvalidate_token(token)\n```\n",
"bugtrack_url": null,
"license": null,
"summary": "MAGMA Indonesia Authentication",
"version": "1.0.0",
"project_urls": {
"Homepage": "https://github.com/martanto/magma-auth",
"Issues": "https://github.com/martanto/magma-auth/issues"
},
"split_keywords": [
"magma",
" indonesia"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "650877a2acc795d8622fd9894b151aa5776ca6c9d4e508cd9d3ae7032d7d15ab",
"md5": "8e290f6b7feb9fc79a707bcf5f4be6c5",
"sha256": "9f52cbb559ba93c2e7dda56c0d9d3af2409a244f3dc41d0f56f0ab474f9c8f91"
},
"downloads": -1,
"filename": "magma_auth-1.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "8e290f6b7feb9fc79a707bcf5f4be6c5",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.11",
"size": 7607,
"upload_time": "2025-08-07T18:27:48",
"upload_time_iso_8601": "2025-08-07T18:27:48.043368Z",
"url": "https://files.pythonhosted.org/packages/65/08/77a2acc795d8622fd9894b151aa5776ca6c9d4e508cd9d3ae7032d7d15ab/magma_auth-1.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "ce60dba8ef47c1a5aeb57ce6187d134bd801ce1e2533cd7ea73ca08885e18739",
"md5": "04a9b9c82de82f9edeae4b263d621a17",
"sha256": "d8f472f96af35f6a8619cacb899121c85cd1f9322540105c076c79a28a827af2"
},
"downloads": -1,
"filename": "magma_auth-1.0.0.tar.gz",
"has_sig": false,
"md5_digest": "04a9b9c82de82f9edeae4b263d621a17",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.11",
"size": 6527,
"upload_time": "2025-08-07T18:27:49",
"upload_time_iso_8601": "2025-08-07T18:27:49.337105Z",
"url": "https://files.pythonhosted.org/packages/ce/60/dba8ef47c1a5aeb57ce6187d134bd801ce1e2533cd7ea73ca08885e18739/magma_auth-1.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-08-07 18:27:49",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "martanto",
"github_project": "magma-auth",
"github_not_found": true,
"lcname": "magma-auth"
}