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
License
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9850778c92306df53f1ec1eb314255cd760183af8a8df3b8a3044fffc787ffb
|
|
| MD5 |
6a8eb00fe35a5da81664992ff579c8b8
|
|
| BLAKE2b-256 |
317945728e15f451f9710516167f125e5a35085ebb4f61b820e4f1f30da86bbe
|
Provenance
The following attestation bundles were made for pysequence_client-0.3.1.tar.gz:
Publisher:
publish.yml on christian-deleon/PySequence
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pysequence_client-0.3.1.tar.gz -
Subject digest:
a9850778c92306df53f1ec1eb314255cd760183af8a8df3b8a3044fffc787ffb - Sigstore transparency entry: 944967609
- Sigstore integration time:
-
Permalink:
christian-deleon/PySequence@d9912e0a19de80e9c080af9ed29852390f400d4f -
Branch / Tag:
refs/tags/v0.3.1 - Owner: https://github.com/christian-deleon
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@d9912e0a19de80e9c080af9ed29852390f400d4f -
Trigger Event:
push
-
Statement type:
File details
Details for the file pysequence_client-0.3.1-py3-none-any.whl.
File metadata
- Download URL: pysequence_client-0.3.1-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
132ddcf520adb06b0328d93fe883cb39978b40b7e14a98befa6a4eece66459b0
|
|
| MD5 |
975d7bea33ffe535098fe0065d997ad7
|
|
| BLAKE2b-256 |
e516dfccacf192a07726d5c792507bb7d4eedc545968a0632391e59387e71efb
|
Provenance
The following attestation bundles were made for pysequence_client-0.3.1-py3-none-any.whl:
Publisher:
publish.yml on christian-deleon/PySequence
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pysequence_client-0.3.1-py3-none-any.whl -
Subject digest:
132ddcf520adb06b0328d93fe883cb39978b40b7e14a98befa6a4eece66459b0 - Sigstore transparency entry: 944967627
- Sigstore integration time:
-
Permalink:
christian-deleon/PySequence@d9912e0a19de80e9c080af9ed29852390f400d4f -
Branch / Tag:
refs/tags/v0.3.1 - Owner: https://github.com/christian-deleon
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@d9912e0a19de80e9c080af9ed29852390f400d4f -
Trigger Event:
push
-
Statement type: