Skip to main content

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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pysequence_client-0.4.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.4.0.tar.gz
Algorithm Hash digest
SHA256 e4e7a0ffc314b8385f8088ed2c0e307e7f046e0dd3fe3b49737f335913840b0f
MD5 2b0b492f3206194f31c7b8e847daaddd
BLAKE2b-256 25065e8912ad9172f1ceb3f78622a03fe7c14c31ca6d67cac5642f49db4b24e1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pysequence_client-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 636f6262211934d85d1eb229ab43e6cbe6cb7effdf8ed94261cca5e3e7231876
MD5 7a644a0d5a88bbfcdc8686b35d4b3e8a
BLAKE2b-256 fc97c807a5cdcbe0fd10f63d0b0e72fa672a398ee3df51f730e26f901c65652a

See more details on using hashes here.

Provenance

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

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 files

0.3.1

2 files

0.3.0

2 files

0.2.3

2 files

0.2.2

2 files

0.2.1

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page