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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pysequence_sdk-0.3.0.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.0.tar.gz
Algorithm Hash digest
SHA256 557590779bc53efe8df53fe56755303b28d3401748ba87e287ac2af43babb379
MD5 aeb80d90592420e9304885f043ed5c3c
BLAKE2b-256 03fb13073f6ab73e7ae8bfd0155708d7e921c0af37773d020b6cf3db2eb2abd2

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pysequence_sdk-0.3.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7f268f58d3b46235298e67de58b51c822c048235877ea5f3a1f98f1a8611c900
MD5 45736427e10cd58b811311e9ca7c6bce
BLAKE2b-256 4f7be383b2e7102437436d9ced2c285592ddd7dc4130714aba2962eff6ed8846

See more details on using hashes here.

Provenance

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