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

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.0.1
File Size Uploaded Provenance Actions
kuznets-1.0.1.tar.gz 626.2 kB With provenance Details for kuznets-1.0.1.tar.gz

Built distribution (wheel)

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

Total release size: 716.8 kB

Release files / kuznets-1.0.1.tar.gz

Download URL kuznets-1.0.1.tar.gz
Size 626.2 kB
Tags Source
SHA-256 checksum
How to use checksums
8c6de6d616aa8ac46a99d267e7ff33589da453f344f9ef9c76e3c7c0fb537985
BLAKE2b-256 checksum
How to use checksums
671217dd6c85fc2bc357c4fb09645736b586699a94acd71643f7ed9c7cfc9fe8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

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 Aug 7, 2026.

Transparency log

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

Download URL kuznets-1.0.1-py3-none-any.whl
Size 90.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9962ec19ebf54027fa9c37bf855aa2f9242f8e661fe0999730c7bbdf2e73c915
BLAKE2b-256 checksum
How to use checksums
f456ff1348a6965a603e854059574b36d9f3466ce201b0cecf6b52d4f957d86e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

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 Aug 7, 2026.

Transparency log

Security for kuznets 1.0.1

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.0.1.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 Aug 7, 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