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.6-cp312-cp312-manylinux_2_34_x86_64.whl (5.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

File details

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

File metadata

File hashes

Hashes for pyproxyauth-0.1.6-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 6743f78e54159a279b034ddd3cb5e5f45957dce9e9fb2eb3ad68e312c68bee52
MD5 f8007b9806aa787d99843b590fc57864
BLAKE2b-256 7ee491600d5f865ca614c220f08b594a598cfdff45c2fb58ce7b806decfb12db

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