Python SDK for the Thesma API — developer-friendly access to SEC EDGAR financial data
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file thesma-0.12.0.0.tar.gz.
File metadata
- Download URL: thesma-0.12.0.0.tar.gz
- Upload date:
- Size: 222.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
983f35d6d3929b777606d7abb2073a8349f12f3acd09b96506ab03c0ba9553b3
|
|
| MD5 |
30c36aee32e68406940a874d1e22ad2b
|
|
| BLAKE2b-256 |
600683aba73e4e8277720f46489fab00ea53275175e5d24c1a583038c828b383
|
Provenance
The following attestation bundles were made for thesma-0.12.0.0.tar.gz:
Publisher:
publish.yml on thesma-dev/thesma-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
thesma-0.12.0.0.tar.gz -
Subject digest:
983f35d6d3929b777606d7abb2073a8349f12f3acd09b96506ab03c0ba9553b3 - Sigstore transparency entry: 1396709522
- Sigstore integration time:
-
Permalink:
thesma-dev/thesma-python@d08c44c6bde93e7c38c4f6b3828f236444bd7857 -
Branch / Tag:
refs/tags/v0.12.0.0 - Owner: https://github.com/thesma-dev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@d08c44c6bde93e7c38c4f6b3828f236444bd7857 -
Trigger Event:
push
-
Statement type:
File details
Details for the file thesma-0.12.0.0-py3-none-any.whl.
File metadata
- Download URL: thesma-0.12.0.0-py3-none-any.whl
- Upload date:
- Size: 94.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f88e7b028849d233f34731e329210a09be77da872c66bf19dd3245b413c81467
|
|
| MD5 |
40b41e68bb98a1924b203421a3c1c0aa
|
|
| BLAKE2b-256 |
77f1456cdac1273f365194d30944feee83810cc50de9f39d1ef56cdff6a0695c
|
Provenance
The following attestation bundles were made for thesma-0.12.0.0-py3-none-any.whl:
Publisher:
publish.yml on thesma-dev/thesma-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
thesma-0.12.0.0-py3-none-any.whl -
Subject digest:
f88e7b028849d233f34731e329210a09be77da872c66bf19dd3245b413c81467 - Sigstore transparency entry: 1396709526
- Sigstore integration time:
-
Permalink:
thesma-dev/thesma-python@d08c44c6bde93e7c38c4f6b3828f236444bd7857 -
Branch / Tag:
refs/tags/v0.12.0.0 - Owner: https://github.com/thesma-dev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@d08c44c6bde93e7c38c4f6b3828f236444bd7857 -
Trigger Event:
push
-
Statement type: