Skip to main content

Quant Research Library

Project description

Xpectral

Spectral decomposition

A quantitative research library that extends Polars and Pandas DataFrames with charting and quant analytics.

Modules

  • xpectral.charts — Fluent Bokeh visualization via df.bokeh.line(...), df.bokeh.scatter(...), etc.
  • xpectral.quant — Financial metrics (returns, volatility, beta) via pl.col(...).quant.returns()
  • xpectral.data — Market data from the Polygon/Massive API with caching and rate limiting

xpectral.charts

import xpectral  # registers the accessors
from xpectral import PandasDataFrame
from xpectral import PolarsDataFrame

df: PolarsDataFrame = pl.DataFrame({"x": [1, 2, 3], "y": [4, 5, 6]})
fig = df.bokeh(title="Example", width=600, height=400)
fig.line(x="x", y="y")

pd_df: PandasDataFrame = pd.DataFrame({"x": [1, 2, 3], "y": [4, 5, 6]})
pd_fig = pd_df.bokeh(title="Example", width=600, height=400)
pd_fig.line(x="x", y="y")

Annotate sample DataFrames with PolarsDataFrame or PandasDataFrame when you want the editor (pyright) to resolve the df.bokeh(...) parameters and chained accessor methods. Annotation is neccessary for type. hinting as accessors are not discovered dinamically.

Install

uv sync

Project details


Download files

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

Source Distribution

xpectral-1.0.1.tar.gz (16.0 kB view details)

Uploaded Source

Built Distribution

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

xpectral-1.0.1-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

File details

Details for the file xpectral-1.0.1.tar.gz.

File metadata

  • Download URL: xpectral-1.0.1.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for xpectral-1.0.1.tar.gz
Algorithm Hash digest
SHA256 cc86ef6498a8447984194259a2815c92817798fa168c2d77f8a4bb97db72fe18
MD5 17ffabc7017f792a8c766a58fbb7ddcf
BLAKE2b-256 23ec33aa387aaf8d92dfb0961ed10a6b429b47ffcbc4a27c6dd5fe07d5ead80f

See more details on using hashes here.

Provenance

The following attestation bundles were made for xpectral-1.0.1.tar.gz:

Publisher: publish.yml on bayquant/xpectral

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

File details

Details for the file xpectral-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: xpectral-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 19.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for xpectral-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2c447fcc01f4b5d3653c71116642962170030f789f6eba91d8100264b570fb1c
MD5 0418a428cc48e69cf9b176b11f730be4
BLAKE2b-256 6fbb99c0219d01c6e22f08412299f98338dacf346c461be95ef8128fcb0322b2

See more details on using hashes here.

Provenance

The following attestation bundles were made for xpectral-1.0.1-py3-none-any.whl:

Publisher: publish.yml on bayquant/xpectral

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