Heimdall
A host-agnostic data-provider SDK. Finance data first (Yahoo Finance OHLCV, FRED economic series), built so that any data source - yours or the community's - can plug in behind one small contract.
A provider takes a FetchRequest and returns a FetchResult: a
Polars frame, a SchemaSpec that describes and validates it,
and some metadata. That's the whole surface. Nothing in the core is
finance-specific; OHLCV bars and economic observations are just two predefined
schemas.
Install
pip install heimdall-mimird[fred,yfinance] # or: heimdall-mimird[all]
The core depends only on polars (plus a small logging shim). Each provider
pulls its own client library through an extra, so you install only what you use.
Quick start
import heimdall
# string shorthand -> FetchRequest(resource="DGS10")
result = heimdall.fetch("fred", "DGS10")
result.schema.validate(result.frame) # raises SchemaError if it doesn't conform
print(result.frame.head())
bars = heimdall.fetch("yfinance", "AAPL", interval="1d")
print(bars.frame.tail())
print(bars.metadata) # {"ticker": "AAPL", "interval": "1d", "rows": ...}
heimdall.list_providers() shows what's registered. Providers are registered
automatically when their extra is installed; register your own with
heimdall.register(MyProvider).
Writing a provider
Subclass heimdall.Provider, set id + capabilities, implement fetch. See
docs/writing-a-provider.md for a full worked
example, and run heimdall.testing.assert_provider_conformance(...) to check it
against the contract.
Status
Early. The provider contract and the two bundled providers are usable today. The ingestion/storage layer, entry-point plugin discovery, and retry/rate-limit middleware are on the roadmap.
Metadata
Release files for heimdall-mimird 0.3.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 | |
|---|---|---|---|
| heimdall_mimird-0.3.0.tar.gz | 145.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| heimdall_mimird-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 162.8 kB
Release files / heimdall_mimird-0.3.0.tar.gz
| Download URL | heimdall_mimird-0.3.0.tar.gz |
|---|---|
| Size | 145.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b4da8fce8a48f2ba7fbabfd220f8be460fda428fb1a7dd883b8cecde1262ea18
|
|
BLAKE2b-256 checksum How to use checksums |
93b032d1f103354f26d23c90cc06af261ad410f5f9f4719b5f211747d227f6bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / heimdall_mimird-0.3.0-py3-none-any.whl
| Download URL | heimdall_mimird-0.3.0-py3-none-any.whl |
|---|---|
| Size | 17.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ba0441a5d6dce57d5a45529102e96b1765677a8b296515c3f25834ffec895fc2
|
|
BLAKE2b-256 checksum How to use checksums |
efe84ed069c4f565173f3051a58fc059c0d4befcbeaab606c7b236ab7acc87ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|