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.1.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.1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pysequence_client-0.3.1.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.1.tar.gz
Algorithm Hash digest
SHA256 a9850778c92306df53f1ec1eb314255cd760183af8a8df3b8a3044fffc787ffb
MD5 6a8eb00fe35a5da81664992ff579c8b8
BLAKE2b-256 317945728e15f451f9710516167f125e5a35085ebb4f61b820e4f1f30da86bbe

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysequence_client-0.3.1.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.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pysequence_client-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 132ddcf520adb06b0328d93fe883cb39978b40b7e14a98befa6a4eece66459b0
MD5 975d7bea33ffe535098fe0065d997ad7
BLAKE2b-256 e516dfccacf192a07726d5c792507bb7d4eedc545968a0632391e59387e71efb

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysequence_client-0.3.1-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