Skip to main content

Unofficial Python client for the GetSequence API server

Project description

pysequence-client

Python HTTP client for the pysequence-api REST server. Standalone -- no SDK dependency.

Installation

pip install pysequence-client

Quick Start

from pysequence_client import SequenceApiClient

client = SequenceApiClient(
    base_url="http://localhost:8720",
    api_key="your-api-key",
)

pods = client.get_pods()
balance = client.get_total_balance()

Methods

Method Description
get_pods() List all pods with balances
get_total_balance() Total balance across all pods
get_pod_balance(pod_name) Single pod balance by name
get_pod_detail(pod_id) Detailed pod info
get_all_accounts() All accounts: pods, ports, and external
get_activity_summary() Monthly activity summary
get_activity(first, statuses, directions, activity_types) Paginated transfer activity with filters
get_transfer_detail(transfer_id) Full detail for a single transfer
transfer(source_id, destination_id, amount_cents, description) Transfer funds between accounts

Error Handling

from pysequence_client import SequenceApiClient
from pysequence_client.exceptions import ApiError

client = SequenceApiClient(
    base_url="http://localhost:8720",
    api_key="your-api-key",
)

try:
    detail = client.get_transfer_detail("invalid-id")
except ApiError as e:
    print(f"Status {e.status_code}: {e.detail}")

Requirements

  • Python >= 3.11

Documentation

Full documentation

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

pysequence_client-0.3.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

pysequence_client-0.3.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file pysequence_client-0.3.0.tar.gz.

File metadata

  • Download URL: pysequence_client-0.3.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pysequence_client-0.3.0.tar.gz
Algorithm Hash digest
SHA256 60fd31ed147f5f5967e18ba0ae8c9039686593d0feb2995fdbdde85983712411
MD5 e28598ea5ecf973efa8a27a4e1b91585
BLAKE2b-256 fd08dbd58d42bd9cc2572819f963e1f5aa743b122dafaddbf88288bc3af73dd9

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysequence_client-0.3.0.tar.gz:

Publisher: publish.yml on christian-deleon/PySequence

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pysequence_client-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pysequence_client-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 029cb311244d6be565d5941efa88aa3329a77ea01afb34146cdffc8b84145b0c
MD5 ac6822672518f8d689d02998a5676f32
BLAKE2b-256 72a79bfce08233e5bda7cc6ea3b8103887728a8129d0dd688d97aa9ada09bd49

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysequence_client-0.3.0-py3-none-any.whl:

Publisher: publish.yml on christian-deleon/PySequence

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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