kuznets
Remote data access for economic and financial data — FRED, OECD, Eurostat, World Bank, Fama-French, Yahoo Finance, and more — returned as pandas, polars, pyarrow, or dask frames.
kuznets is a fork of pydata/pandas-datareader.
Installation
Install using pip
pip install kuznets
Usage
import kuznets as kz
kz.get_data_fred('GS10')
Every reader accepts an output_type argument to return polars, pyarrow, or dask frames instead of
pandas, and multi-symbol daily reads fetch concurrently (tune with max_workers):
kz.DataReader(["AAPL", "MSFT"], "stooq", output_type="polars", max_workers=8)
Documentation
Stable documentation is available on github.io. A second copy of the stable documentation is hosted on read the docs for more details.
Development documentation is available for the latest changes in master.
Requirements
Using kuznets requires the following packages:
- pandas>=3.0
- narwhals>=2.0
- lxml
- requests
Non-pandas output backends are optional extras:
pip install kuznets[polars] # or [pyarrow], [dask], [backends]
Building the documentation additionally requires:
- matplotlib
- ipython
- requests_cache
- sphinx
- pydata_sphinx_theme
Development and testing dependencies are defined in pyproject.toml: the dev extra for pip
workflows, and the pixi test/lint features for the pixi workspace.
Install latest development version
python -m pip install git+https://github.com/jessegrabowski/kuznets.git
or
git clone https://github.com/jessegrabowski/kuznets.git
cd kuznets
python setup.py install
Development environment
The repo is a pixi workspace: pixi install creates the dev environment
(editable install, test and lint tools), pixi run test runs the suite, and pixi run -e py314 test runs it on another Python. pip install -e ".[dev]" in a virtualenv works too.
Running the tests
The test suite runs fully offline by default: each reader is replayed against a recorded real
response stored under tests/data/, so no third-party service is contacted.
pytest
Tests marked network are deselected by default. Each one runs a reader against the live service
and asserts the shape of the result (columns, dtypes, non-empty) — an API-drift detector that
skips gracefully when a service is unreachable:
pytest -m network
The offline fixtures are recordings, not hand-written mocks. To regenerate them from the live
services, run the network tests in record mode:
RECORD=1 pytest -m network
This rewrites tests/data/ from the real responses (and a wrong parser fails here, at record time,
rather than being hidden by a fixture built to match it). A weekly GitHub Actions workflow
(refresh-fixtures) does this automatically and opens a PR when a fixture changes, failing if an
upstream shape breaks. A few services can't be recorded and are documented in their tests: Stooq
serves an anti-bot challenge to scripted clients, and the keyed readers (AlphaVantage, Quandl,
Tiingo) need API keys.
Metadata
Release files for kuznets 1.2.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 |
|---|---|---|---|---|
| kuznets-1.2.0.tar.gz | 674.6 kB | With provenance | Details for kuznets-1.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kuznets-1.2.0-py3-none-any.whl | Python 3 | none | any | Details for kuznets-1.2.0-py3-none-any.whl |
Total release size: 787.4 kB
Release files / kuznets-1.2.0.tar.gz
| Download URL | kuznets-1.2.0.tar.gz |
|---|---|
| Size | 674.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
899f1f8023a5f4ab8c7f1428b6741acce310d1e0a001f13e530acf8d847cfcc1
|
|
BLAKE2b-256 checksum How to use checksums |
bf940803b5cb0c81557e2084c07ac632cfa4e11994ac08292d80558879721bef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 18, 2026.
Transparency logRelease files / kuznets-1.2.0-py3-none-any.whl
| Download URL | kuznets-1.2.0-py3-none-any.whl |
|---|---|
| Size | 112.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
87e41b0cf06635a3d1a66802114577a7d8e36500d6a042c55bbf2b1e2a6a5eca
|
|
BLAKE2b-256 checksum How to use checksums |
07177b281dc49a27f14c47dd3e6c63d71eb017d18b0dbefc0431a48d0137f8c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 18, 2026.
Transparency logSecurity for kuznets 1.2.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 kuznets-1.2.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 Oct 18, 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.