Skip to main content

POLSTR data downloader

A small Python utility that downloads historical and current POLSTR index data published by GPW Benchmark and combines it into one CSV file.

The generated CSV has these columns:

  • date
  • polstr
  • polstr_1m
  • polstr_3m
  • polstr_6m
  • polstr_ci

Installation

From PyPI:

python -m pip install polstr

Directly from GitHub:

python -m pip install git+https://github.com/solek13/polstr.git

From a local checkout:

python -m pip install -e .

Usage

Update polstr.csv in the project directory:

polstr

Other useful options:

polstr --start-year 2024 --out my.csv
polstr --no-pdf
polstr --latest-only
polstr --full-refresh

The script can still be run directly from a checkout with python download_polstr.py. Run polstr --help for the complete command reference.

Packaging

Build the source distribution and wheel locally:

python -m pip install -e .[dev]
python -m build
python -m twine check dist/*

Data source

The script downloads public POLSTR data from GPW Benchmark's yearly PDF files, delayed-data page, and values-and-statistics page. Please consult GPW Benchmark's website for the authoritative data and applicable terms of use.

License

MIT License. See LICENSE.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

polstr-0.1.1.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

polstr-0.1.1-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file polstr-0.1.1.tar.gz.

File metadata

  • Download URL: polstr-0.1.1.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for polstr-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f4933ecdd6e90ca23231380bda1f7ea8a47cb0ec0c367bb361d14fb8f4697752
MD5 317c607cfcf54623d1b93f8e767147f5
BLAKE2b-256 4b24c6c10539b7a27800ce8c5f27a5cec4df5ef3a20b15bbfd4ee59b76ce2137

See more details on using hashes here.

Provenance

The following attestation bundles were made for polstr-0.1.1.tar.gz:

Publisher: publish.yml on solek13/polstr

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file polstr-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: polstr-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for polstr-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 12e4581a5d192f7e10c52368c3c47a2046f15135bd60aa00e07d162271609e07
MD5 0406ec7cad5267850209637b4c269ad2
BLAKE2b-256 2d80b641c0bcbd170180325505a4c8ca83e9f0cfa180b6c2e09acbf27f296e52

See more details on using hashes here.

Provenance

The following attestation bundles were made for polstr-0.1.1-py3-none-any.whl:

Publisher: publish.yml on solek13/polstr

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page