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 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..."}

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 Distribution

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

pyproxyauth-0.1.5-cp312-cp312-manylinux_2_34_x86_64.whl (5.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

File details

Details for the file pyproxyauth-0.1.5-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for pyproxyauth-0.1.5-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 c4997ee041840f24ea17e9e65728ab2fb289f0df04e8b99543ede7e41baad677
MD5 15a86d9351edb60096f751139c07a8a9
BLAKE2b-256 17e1dff09753465a7446c49806ad19494fd285620937698f8c82773bf368f3a3

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