Skip to main content

Official Python SDK for Pawpado — single-user AWS GPU gaming portal. Sessions (start/stop/poll/pair/connect), credits, billing, settings, admin. Bearer auth via Huudis OIDC device flow.

Project description

pawpado (Python)

Official Python SDK for Pawpado — the single-user AWS GPU gaming portal. Mirrors the Node SDK (@forjio/pawpado-node) 1:1.

Install

pip install pawpado

Quickstart

Static API key (simplest)

from pawpado import PawpadoClient

with PawpadoClient(api_key="...") as client:
    print(client.health())               # public, no auth
    print(client.sessions.poll())        # GET /api/v1/sessions/poll
    print(client.sessions.start())       # POST /api/v1/sessions/start
    print(client.credits.me())
    client.sessions.stop({"force": True})

Huudis OIDC device flow (CLI-style)

from pawpado import PawpadoClient, Session

session = Session(brand="pawpado", profile="default")
session.load()  # reads ~/.pawpado/credentials

with PawpadoClient(session=session) as client:
    print(client.account.session())

The Session refresh path is single-flight — concurrent callers share the same refresh and avoid burning the Huudis refresh-token family (Huudis revokes the entire family on reuse).

Surface

Namespace Methods
sessions start / stop / poll / pair / connect / tailscale_key
credits me / topup
billing storage
settings get / update
account session / delete
admin reconcile / orphans
health() top-level, no auth

Every method takes an optional auth_token= to override the client-level bearer for one call.

Errors

  • PawpadoError (alias: ApiError) — enveloped API errors, carries .code, .message, .status, .request_id, .details.
  • PawpadoAuthError — credentials / session lookup failures.
  • RefreshError — OIDC refresh failure.
  • NetworkError — transport failure (DNS, TLS, etc.).

License

MIT

Project details


Download files

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

Source Distribution

pawpado-0.1.0.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

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

pawpado-0.1.0-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file pawpado-0.1.0.tar.gz.

File metadata

  • Download URL: pawpado-0.1.0.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for pawpado-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cb8866212c19f845b5d6b459241a4fc2ca17f64880e73f1360c50271f05ec5ac
MD5 b0b85975d18c1a761efa8324a8d7884f
BLAKE2b-256 4c778f97f011e29d60dce79d20893919c7e3c4062a089c6baffba0ad042a7787

See more details on using hashes here.

File details

Details for the file pawpado-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pawpado-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for pawpado-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 286380b7fca41c76c91e09303be5d85c3173744994fa20a6b34610f68a3cb842
MD5 262501df7eca72ac12e4e534e0705580
BLAKE2b-256 60169682ca1d453b84e9a9845fbea3ed08fb9b5906946d1485950450159e1b76

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