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 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
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.9.0.7.tar.gz.
File metadata
- Download URL: thesma-0.9.0.7.tar.gz
- Upload date:
- Size: 126.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab511d13036f1d4e5a282cc3975acf06e74ac09da027da179c6d252ecd88dd23
|
|
| MD5 |
ff6a963ef60378e937bac649f4c836fb
|
|
| BLAKE2b-256 |
111dc08b024166d6bc4260eee7d37f20fa246b14e9fa5b1757643828bbd8ab30
|
Provenance
The following attestation bundles were made for thesma-0.9.0.7.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.9.0.7.tar.gz -
Subject digest:
ab511d13036f1d4e5a282cc3975acf06e74ac09da027da179c6d252ecd88dd23 - Sigstore transparency entry: 1233829468
- Sigstore integration time:
-
Permalink:
thesma-dev/thesma-python@849a34b48b1ffc389ec2fc29d158bbce433dd48c -
Branch / Tag:
refs/tags/v0.9.0.7 - Owner: https://github.com/thesma-dev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@849a34b48b1ffc389ec2fc29d158bbce433dd48c -
Trigger Event:
push
-
Statement type:
File details
Details for the file thesma-0.9.0.7-py3-none-any.whl.
File metadata
- Download URL: thesma-0.9.0.7-py3-none-any.whl
- Upload date:
- Size: 64.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d89d4fc3be6c6745da4a28178a3f445dc318cfc891fbfe050d0edee73ced72a
|
|
| MD5 |
60199d13e51f68f8a4d4689ebca64063
|
|
| BLAKE2b-256 |
c7f06d4c0e080da8e33f0dd88e2a7cdfbe2697dd3fd63c647a958b306ea6bc4c
|
Provenance
The following attestation bundles were made for thesma-0.9.0.7-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.9.0.7-py3-none-any.whl -
Subject digest:
3d89d4fc3be6c6745da4a28178a3f445dc318cfc891fbfe050d0edee73ced72a - Sigstore transparency entry: 1233829495
- Sigstore integration time:
-
Permalink:
thesma-dev/thesma-python@849a34b48b1ffc389ec2fc29d158bbce433dd48c -
Branch / Tag:
refs/tags/v0.9.0.7 - Owner: https://github.com/thesma-dev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@849a34b48b1ffc389ec2fc29d158bbce433dd48c -
Trigger Event:
push
-
Statement type: