Skip to main content

Python SDK for the Thesma API — developer-friendly access to SEC EDGAR financial data

Project description

Thesma Python SDK

PyPI version CI

Python SDK for the Thesma API -- developer-friendly access to SEC EDGAR financial data.

Installation

pip install thesma

Quickstart

from thesma import ThesmaClient

client = ThesmaClient(api_key="th_live_...")

# List companies
companies = client.companies.list()
for company in companies:
    print(company.ticker, company.name)

# Get financial statements
financials = client.financials.list("AAPL", period="annual")

Async usage

from thesma import AsyncThesmaClient

async with AsyncThesmaClient(api_key="th_live_...") as client:
    companies = await client.companies.list()

CLI

export THESMA_API_KEY=th_live_...
thesma companies list
thesma financials list AAPL --period annual --format json

Documentation

Full API documentation is available at api.thesma.dev/docs.

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

thesma-0.9.0.13.tar.gz (164.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

thesma-0.9.0.13-py3-none-any.whl (77.6 kB view details)

Uploaded Python 3

File details

Details for the file thesma-0.9.0.13.tar.gz.

File metadata

  • Download URL: thesma-0.9.0.13.tar.gz
  • Upload date:
  • Size: 164.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for thesma-0.9.0.13.tar.gz
Algorithm Hash digest
SHA256 14a492df108beec10360cd717483f2d512385ed5bf2e65cc3a872525e0b9276a
MD5 090e9444e704450125610d3cc90cef63
BLAKE2b-256 15d88ef4db764760b46b07eefc3be3147a2a4b58124e627a7b5747c449e09d79

See more details on using hashes here.

Provenance

The following attestation bundles were made for thesma-0.9.0.13.tar.gz:

Publisher: publish.yml on thesma-dev/thesma-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file thesma-0.9.0.13-py3-none-any.whl.

File metadata

  • Download URL: thesma-0.9.0.13-py3-none-any.whl
  • Upload date:
  • Size: 77.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for thesma-0.9.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 f46446560099d625c0e78119c63f6a1daa8c9a1aff610da202058088b54ea5a7
MD5 4fa915525afc89b999da716e221ce3dc
BLAKE2b-256 cafbcbd6b50f12dbe07900d5bba047f1b84706a6cc6daf4288a4f69086027c75

See more details on using hashes here.

Provenance

The following attestation bundles were made for thesma-0.9.0.13-py3-none-any.whl:

Publisher: publish.yml on thesma-dev/thesma-python

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