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.9.tar.gz (140.2 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.9-py3-none-any.whl (68.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: thesma-0.9.0.9.tar.gz
  • Upload date:
  • Size: 140.2 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.9.tar.gz
Algorithm Hash digest
SHA256 ee76c0492920d6454308c1113b417722eb269fa1b4e96bcb0848fc793c432c0f
MD5 9203e435d3623bc6e568fb0174a2e01d
BLAKE2b-256 35167c6be7c7bf49a38a4c861cb3b165316a2d9605743fc71bf2a7b1b7fe34d6

See more details on using hashes here.

Provenance

The following attestation bundles were made for thesma-0.9.0.9.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.9-py3-none-any.whl.

File metadata

  • Download URL: thesma-0.9.0.9-py3-none-any.whl
  • Upload date:
  • Size: 68.8 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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 7a9a56dcdbc7607ad0265d2aeaa94ba65ccba8ee12cb18be258364cd3449198c
MD5 241e202f8ade705666c8a31b29d9f290
BLAKE2b-256 d420737e96ce16c6d1622205216a30133ce370c9fd1008a329293bdf2df82885

See more details on using hashes here.

Provenance

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