Skip to main content

Modern quantitative analysis library for portfolio analytics, charts, and reports

Project description

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.

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

quantalytics-0.1.21.tar.gz (75.3 kB view details)

Uploaded Source

Built Distribution

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

quantalytics-0.1.21-py3-none-any.whl (60.1 kB view details)

Uploaded Python 3

File details

Details for the file quantalytics-0.1.21.tar.gz.

File metadata

  • Download URL: quantalytics-0.1.21.tar.gz
  • Upload date:
  • Size: 75.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for quantalytics-0.1.21.tar.gz
Algorithm Hash digest
SHA256 29f871a6aa122bc94dedfee0d99a5f1ff7c579b0b3995d98b41dea6879587c66
MD5 177e3c0e5c3771f1819c42e051667bbd
BLAKE2b-256 6c2de8d7b4aa5412f9b0ed93e7d503bc83aa20b843432f98a66dc52453fc30f0

See more details on using hashes here.

File details

Details for the file quantalytics-0.1.21-py3-none-any.whl.

File metadata

  • Download URL: quantalytics-0.1.21-py3-none-any.whl
  • Upload date:
  • Size: 60.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for quantalytics-0.1.21-py3-none-any.whl
Algorithm Hash digest
SHA256 c22cea82b9c339cd3bf400cd0e054c79f3d637aba5b48732446f4b7fb9511cc3
MD5 436fad8f771483331a1bf3bab2ec7d0d
BLAKE2b-256 39a9918e68a8fec70658105541ef3daff5c746f70516b6b5550c841308ebc249

See more details on using hashes here.

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