Name | pyproxyauth JSON |
Version |
0.1.6
JSON |
| download |
home_page | None |
Summary | Python bindings for ProxyAuth authentication via Rust |
upload_time | 2025-07-08 11:18:16 |
maintainer | None |
docs_url | None |
author | vBlackOut |
requires_python | >=3.7 |
license | Apache-2.0 |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# pyproxyauth
A lightweight Python library to authenticate and retrieve tokens via ProxyAuth.
## install
```
pip install pyproxyauth
```
## usage
```
import pyproxyauth
pyproxyauth.auth(
host="127.0.0.1", port=8080,
username="admin", password="admin123"
)
token = pyproxyauth.token()
token = pyproxyauth.token(renew=True) # Automatically re-authenticates and returns a new token if the previous one has expired.
lease_token = pyproxyauth.lease_token()
print({"token": token, "expire_at": lease_token})
> {"expire_at": 16500,"token":"ZoHAauGmCyxjq6+1sfVbqy..."}
```
Raw data
{
"_id": null,
"home_page": null,
"name": "pyproxyauth",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": null,
"keywords": null,
"author": "vBlackOut",
"author_email": null,
"download_url": null,
"platform": null,
"description": "# pyproxyauth \r\n\r\nA lightweight Python library to authenticate and retrieve tokens via ProxyAuth. \r\n\r\n## install \r\n```\r\npip install pyproxyauth\r\n```\r\n\r\n## usage\r\n\r\n```\r\nimport pyproxyauth\r\n\r\npyproxyauth.auth(\r\n host=\"127.0.0.1\", port=8080,\r\n username=\"admin\", password=\"admin123\"\r\n)\r\n\r\ntoken = pyproxyauth.token()\r\ntoken = pyproxyauth.token(renew=True) # Automatically re-authenticates and returns a new token if the previous one has expired.\r\nlease_token = pyproxyauth.lease_token()\r\n\r\nprint({\"token\": token, \"expire_at\": lease_token})\r\n\r\n> {\"expire_at\": 16500,\"token\":\"ZoHAauGmCyxjq6+1sfVbqy...\"}\r\n```\r\n\n",
"bugtrack_url": null,
"license": "Apache-2.0",
"summary": "Python bindings for ProxyAuth authentication via Rust",
"version": "0.1.6",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "7ee491600d5f865ca614c220f08b594a598cfdff45c2fb58ce7b806decfb12db",
"md5": "f8007b9806aa787d99843b590fc57864",
"sha256": "6743f78e54159a279b034ddd3cb5e5f45957dce9e9fb2eb3ad68e312c68bee52"
},
"downloads": -1,
"filename": "pyproxyauth-0.1.6-cp312-cp312-manylinux_2_34_x86_64.whl",
"has_sig": false,
"md5_digest": "f8007b9806aa787d99843b590fc57864",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": ">=3.7",
"size": 5293178,
"upload_time": "2025-07-08T11:18:16",
"upload_time_iso_8601": "2025-07-08T11:18:16.336382Z",
"url": "https://files.pythonhosted.org/packages/7e/e4/91600d5f865ca614c220f08b594a598cfdff45c2fb58ce7b806decfb12db/pyproxyauth-0.1.6-cp312-cp312-manylinux_2_34_x86_64.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-08 11:18:16",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "pyproxyauth"
}