Skip to main content

Basic utility to manage index or portfolio constituent data

Utility library to fetch lists of symbols/constituents as managed by the user. The constituents are to be stored as parquet dataframes in a local or remote location, via the fsdata package. The tickers are extracted from the index column.

Configuration

Create a consdata entry in the fsdata.ini config file. The config is resolved by fsdata, in order: the FSDATA_CONFIG environment variable, then upward search from the current directory (a repo-local config), then the XDG_CONFIG_HOME folder (default ~/.config).

# fsdata.ini

[consdata]
path = s3://my-bucket/consdata

Usage

To list available universes

import consdata

consdata.items()

To get a dataframe of constituents

consdata.load(name)

To get a list of tickers

consdata.get_tickers(name)

Related projects and Resources

  • fsdata Simple data catalog library for python
  • FinanceDataBase Database of 300.000+ symbols containing Equities, ETFs, Funds, Indices, Currencies, Cryptocurrencies and Money Markets
  • index-constituents Get the current and historical constituents of popular stock indices.

Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

consdata-0.1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file consdata-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: consdata-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.13 {"installer":{"name":"uv","version":"0.9.13"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"25.04","id":"plucky","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for consdata-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c8b193f0b4a98357d4457628d3f0edb444dc6bcf74d3891db170edd21c50e83d
MD5 292a5235521170bc09c417ab01e82208
BLAKE2b-256 659bb69ce397bbcd534dfb9cf53398fae67257a710582ad30d1f06eb78459eaa

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 file

0.0.1

1 file

0.0.0

1 file

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