Skip to main content

Python bindings for ProxyAuth authentication via Rust

Project description

pyproxyauth

A lightweight Python library to authenticate and retrieve tokens via ProxyAuth.

install

pip install ppauth

usage

import ppauth

ppauth.auth(
    host="127.0.0.1", port=8080,
    username="admin", password="admin123"
    timezone="Europe/Paris"
)

token = ppauth.token()
token = ppauth.token(renew=True) # Automatically re-authenticates and returns a new token if the previous one has expired.
lease_token = ppauth.lease_token()

print({"token": token, "expire_at": lease_token})

> {"expire_at": 16500,"token":"ZoHAauGmCyxjq6+1sfVbqy..."}

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

ppauth-0.1.0-cp313-cp313-manylinux_2_34_x86_64.whl (5.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

ppauth-0.1.0-cp312-cp312-manylinux_2_34_x86_64.whl (5.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

ppauth-0.1.0-cp311-cp311-manylinux_2_34_x86_64.whl (5.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

ppauth-0.1.0-cp310-cp310-manylinux_2_34_x86_64.whl (5.3 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

ppauth-0.1.0-cp39-cp39-manylinux_2_34_x86_64.whl (5.3 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.34+ x86-64

ppauth-0.1.0-cp38-cp38-manylinux_2_34_x86_64.whl (5.3 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.34+ x86-64

ppauth-0.1.0-cp37-cp37m-manylinux_2_34_x86_64.whl (5.3 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.34+ x86-64

File details

Details for the file ppauth-0.1.0-cp313-cp313-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for ppauth-0.1.0-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 cc96cde86eb0486c5c9d987d8d5e4b9ab46b9c50b9c62f0e10c8c81a302cb9fc
MD5 da133296671d3b3ffe09d4aacdb01028
BLAKE2b-256 f085c18cc8ed9798666fd72f34b3e7f3167af888abcbfb37447e1a6e8f2bd7f5

See more details on using hashes here.

File details

Details for the file ppauth-0.1.0-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for ppauth-0.1.0-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 8eaaf29f82b7a36b57410c1cd1e1163ed20700daf0784101e003de5c26fe8fb0
MD5 840332c365d882816e6d7373ae5f4641
BLAKE2b-256 044a5d187b8fb7e4882f10187f067d388c57c7c1c7567e25c98c1e24f554c611

See more details on using hashes here.

File details

Details for the file ppauth-0.1.0-cp311-cp311-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for ppauth-0.1.0-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 9aeeefad12fb2a9b0bf928bad20d910b5051a85640fda6d27059eb97144f7670
MD5 1ecabb924412dc78ba951fa96ed0753e
BLAKE2b-256 98a41291254447bae5aae0824a5ff014ba3d3e1b0fc644267c1894cd336a7fae

See more details on using hashes here.

File details

Details for the file ppauth-0.1.0-cp310-cp310-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for ppauth-0.1.0-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 d53ff9f7a5ae6782c8f0a593c535724be3f3ce27f395f5a685bdccfe4e791310
MD5 466e54e32d13db2e1b8b8f1cf109a0b5
BLAKE2b-256 f4ca75ca8c719e1638910e3a2b6ada85e2f4a5d8d07d2e028c3282bf31106d2d

See more details on using hashes here.

File details

Details for the file ppauth-0.1.0-cp39-cp39-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for ppauth-0.1.0-cp39-cp39-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 b02bb184d6b4498ae3add8bc674bf7bd2747f38c05951fcb2e7e273e8b1e876a
MD5 15d3b7e8949c57f4aa26fe2fe74df139
BLAKE2b-256 d34e2000345f9aed4f2b3df0c7a8de972b494186a42e6671fa5c81a16e9fd509

See more details on using hashes here.

File details

Details for the file ppauth-0.1.0-cp38-cp38-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for ppauth-0.1.0-cp38-cp38-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 f29310e9efb0432e2bc2b00c3c244950815703330ba500892b4f9172c6c5454e
MD5 be67d646159ae1250997d10b67198108
BLAKE2b-256 1e97928c3fbffdf95b7d64bfaf4cab903adae427deff526d25b056c47c54fdea

See more details on using hashes here.

File details

Details for the file ppauth-0.1.0-cp37-cp37m-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for ppauth-0.1.0-cp37-cp37m-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 45a2695a3588260325679d0d92f11d22b36c8c22bee439a1908405ddbfe38354
MD5 34e044227d62a9b6936b0357c3c66510
BLAKE2b-256 dbf2b0c0ce0382a3b0c9b88e59b22e51b74e08796eb649c3d34db97aaacf1f7c

See more details on using hashes here.

Supported by

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