Skip to main content

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.

PyPI Coverage License

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.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kuznets 1.1.0
File Size Uploaded Provenance Actions
kuznets-1.1.0.tar.gz 663.7 kB With provenance Details for kuznets-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kuznets 1.1.0
File Interpreter ABI Platform Actions
kuznets-1.1.0-py3-none-any.whl Python 3 none any Details for kuznets-1.1.0-py3-none-any.whl

Total release size: 771.1 kB

Release files / kuznets-1.1.0.tar.gz

Download URL kuznets-1.1.0.tar.gz
Size 663.7 kB
Tags Source
SHA-256 checksum
How to use checksums
3af09e9c3d332b2b017ace3b7ca085d93cb5dadda26b0bfc316736e48e824748
BLAKE2b-256 checksum
How to use checksums
ee4db671d5ef4e5550bf786fa3c9f9cb91d3c408891137199518d585ff46df96
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 Sep 5, 2026.

Transparency log

Release files / kuznets-1.1.0-py3-none-any.whl

Download URL kuznets-1.1.0-py3-none-any.whl
Size 107.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6c9c3652fac5ce30f34f39aaa65dd793340a1c6667cc69b0d7b42a4018da6cf4
BLAKE2b-256 checksum
How to use checksums
c12b5e288b4c2737ec64132d7d0d811fd822d3ee1a519d67582bfc1dc05a0a7c
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 Sep 5, 2026.

Transparency log

Security for kuznets 1.1.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.

Select from 2 files

Attestation for kuznets-1.1.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 Sep 5, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page