Thesma Python SDK
Python SDK for the Thesma API -- developer-friendly access to US-GAAP and IFRS financial data from SEC EDGAR — every US-listed public company on NYSE and NASDAQ.
Installation
pip install thesma
Quickstart
from thesma import ThesmaClient
client = ThesmaClient(api_key="gd_live_...")
# List companies
companies = client.companies.list()
for company in companies:
print(company.ticker, company.name)
# Get financial statements
financials = client.financials.get("0000320193", statement="income", period="annual")
# IFRS filers return native-currency financials with taxonomy metadata
spot = client.financials.get("0001639920", statement="income", period="annual")
print(spot.data.taxonomy) # "ifrs-full"
print(spot.data.currency) # "EUR"
print(spot.data.reporting_notes.presentation_format) # "by_nature" | "by_function" | "unknown"
print(spot.data.reporting_notes.ifrs_18_applied) # True | False
Async usage
from thesma import AsyncThesmaClient
async with AsyncThesmaClient(api_key="gd_live_...") as client:
companies = await client.companies.list()
CLI
export THESMA_API_KEY=gd_live_...
thesma companies list
thesma financials list AAPL --period annual --format json
Typed responses
response.taxonomy, response.currency, and response.reporting_notes.presentation_format
are declared as typed attributes on FinancialStatementResponse — callers get IDE
autocomplete and mypy-checked access instead of reaching into .model_extra for
the IFRS-01 fields.
Documentation
Full documentation is available at docs.thesma.dev.
License
MIT
Metadata
Release files for thesma 0.14.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| thesma-0.14.0.0.tar.gz | 227.7 kB | With provenance | Details for thesma-0.14.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| thesma-0.14.0.0-py3-none-any.whl | Python 3 | none | any | Details for thesma-0.14.0.0-py3-none-any.whl |
Total release size: 322.3 kB
Release files / thesma-0.14.0.0.tar.gz
| Download URL | thesma-0.14.0.0.tar.gz |
|---|---|
| Size | 227.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f75d713215c0d3de525f0992ce7d30c4a99b7813940b8bbbce6abdab5511b400
|
|
BLAKE2b-256 checksum How to use checksums |
20a40d5898d1b80c0b147a31a26bb8be2494a544bad7adc623d7612d3cab57a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 1, 2026.
Transparency logRelease files / thesma-0.14.0.0-py3-none-any.whl
| Download URL | thesma-0.14.0.0-py3-none-any.whl |
|---|---|
| Size | 94.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
72819b52271ca1efb40046fa191291b62143f176e8496320459827bb449f7d00
|
|
BLAKE2b-256 checksum How to use checksums |
c2c49037d6b38a8dcf72c57758756246d4824f76b98bb5ae4db559ccb32757ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 1, 2026.
Transparency logSecurity for thesma 0.14.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for thesma-0.14.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 1, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.