Skip to main content

Unofficial Python SDK for the GetSequence personal finance platform

Project description

pysequence-sdk

Unofficial Python SDK for the GetSequence personal finance platform. Communicates with the Sequence GraphQL API using browser-compatible HTTP requests.

Installation

pip install pysequence-sdk

Quick Start

from pysequence_sdk import SequenceClient, get_access_token

token = get_access_token()
with SequenceClient(token) as client:
    pods = client.get_pods()
    balance = client.get_total_balance()
    detail = client.get_pod_detail(org_id, pod_id)
    result = client.transfer(kyc_id, source_id, dest_id, amount_cents=500)

For long-running use, pass a token_provider to auto-refresh expired tokens:

client = SequenceClient(get_access_token(), token_provider=get_access_token)

Methods

Method Description
get_pods() List all pods with current balances
get_total_balance() Total balance across all pods
get_pod_balance(pod_name) Look up a single pod by name
get_pod_detail(org_id, pod_id) Detailed pod info with recent transfers
get_all_accounts(org_id) All accounts: pods, ports, and external
get_activity_summary() Monthly activity summary
get_activity(org_id, ...) Paginated transfer activity with filters
get_transfer_detail(org_id, transfer_id) Full detail for a single transfer
transfer(kyc_id, source_id, dest_id, amount_cents, ...) Transfer funds between accounts
execute(query, variables, operation_name) Execute a raw GraphQL query

Key Features

  • Automatic Auth0 token management -- Handles login, refresh, and caching via get_access_token()
  • Browser-compatible TLS -- Uses curl_cffi with Chrome impersonation for proper TLS fingerprinting
  • Built-in rate limiting -- Automatic delay with jitter between requests
  • Pydantic models -- Typed response models for pods, transfers, and more

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_sdk-0.3.1.tar.gz (13.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_sdk-0.3.1-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pysequence_sdk-0.3.1.tar.gz
Algorithm Hash digest
SHA256 34a3fd3699c04b51fa804cb715f67e9fc6221c45217bdd493451af2b47410909
MD5 a6a21e74e90bc9460c124bbd81b77d0d
BLAKE2b-256 fc856625e80ca1c72efffbc9cf43a440811bdea25ee5d26374d0324211482548

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pysequence_sdk-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 17.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pysequence_sdk-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5ecc26458d9c5cf79e9df3f56c0150ae54a10badb675c9b2d50ef144e3a8b3f6
MD5 07b9a27bcbf50730ae14e78ccbd85ed0
BLAKE2b-256 2ca57b6e9ef6878dfcb8b363a0a0f6cd92f7c1b3a6f039bbfcef006ecd4c9153

See more details on using hashes here.

Provenance

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