Skip to main content

Quantalytics

PyPI - Version GitHub last commit PyPI - Downloads PyPI - License PyPI - Python Version

Quantalytics is a fast, modern Python library for generating quantitative performance metrics, interactive charts, and publication-ready reports. It is designed for strategy researchers, portfolio managers, and data scientists who want an ergonomic toolchain without the overhead of large monolithic frameworks.

Features

  • Descriptive Stats – Grab skew, kurtosis, total return, and CAGR via the lightweight qa.stats helpers.
  • Analytics Helpers – Access payoff ratio, profit ratio, Kelly, omega, tail, and other advanced risk/efficiency diagnostics through qa.analytics.
  • Performance Metrics – Compute Sharpe, Sortino, Calmar, max drawdown, annualized returns/volatility, and more in a single call.
  • Interactive Visuals – Build Plotly-based charts for cumulative returns, rolling volatility, and drawdown analysis with sensible defaults.
  • Beautiful Reports – Produce responsive HTML tear sheets with configurable sections, ready to export to PDF.
  • Composable API – Small, well-typed functions that play nicely with pandas Series/DataFrames.
  • Production Ready Packaging – Standards-based pyproject.toml, semantic versioning, and optional CLI hooks for release automation.

Installation

pip install quantalytics

Quickstart

import pandas as pd
import quantalytics as qa

returns = pd.Series(
    [0.01, 0.02, -0.005, 0.015, -0.01, 0.03],
    index=pd.date_range("2024-01-01", periods=6, freq="B"),
)

summary = qa.metrics.performance_summary(returns)
print(summary.sharpe, summary.calmar)

fig = qa.charts.cumulative_returns_chart(returns)
fig.show()

Documentation

Full tutorials and API references live on our Docusaurus site: https://pattertj.github.io/quantalytics/. Start with the introduction, then dive into the stats, metrics, charts, or reports guides as needed.

License

MIT License. See LICENSE.

Metadata

Release files for quantalytics 0.1.24

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

Source distribution (sdist)

Source distribution for quantalytics 0.1.24
File Size Uploaded
quantalytics-0.1.24.tar.gz 81.9 kB Details

Built distribution (wheel)

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

Total release size: 146.2 kB

Release files / quantalytics-0.1.24.tar.gz

Download URL quantalytics-0.1.24.tar.gz
Size 81.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c45191a65ab65fd2f0e87d0c5a735141aca538fe9c81c6bb6540c2d46854a7b4
BLAKE2b-256 checksum
How to use checksums
869dabb7eb07c7650cafddbaf901c7f0e7dbd157ef01a6fa34e7effe138b492c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / quantalytics-0.1.24-py3-none-any.whl

Download URL quantalytics-0.1.24-py3-none-any.whl
Size 64.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a0ea83ade5b2c4389ef9582f12843c221fecaf6957e9a9290bc1db305c6c3e06
BLAKE2b-256 checksum
How to use checksums
213b9a23f36177f975af0e16b0cc16953b5b6772f4ff545843e904b11576bf95
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

0.1.24 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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