Skip to main content

Sharpe ratio

Project description

📦 jsharpe

PyPI version License: MIT CI Created with qCradle

🚀 Getting Started

🔧 Set Up Environment

make install

This installs/updates uv, creates your virtual environment and installs dependencies.

For adding or removing packages:

uv add/remove requests  # for main dependencies
uv add/remove requests --dev  # for dev dependencies

✅ Configure Pre-commit Hooks

make fmt

Installs hooks to maintain code quality and formatting.

🛠️ Development Commands

make tests   # Run test suite
make marimo  # Start Marimo notebooks

👥 Contributing

  • 🍴 Fork the repository
  • 🌿 Create your feature branch (git checkout -b feature/amazing-feature)
  • 💾 Commit your changes (git commit -m 'Add some amazing feature')
  • 🚢 Push to the branch (git push origin feature/amazing-feature)
  • 🔍 Open a Pull Request

📚 Usage

Run this minimal, deterministic example to compute the Probabilistic Sharpe Ratio (PSR) from the package functions.

from jsharpe import probabilistic_sharpe_ratio

sr = 0.036 / 0.079
psr = probabilistic_sharpe_ratio(SR=sr, SR0=0, T=24, gamma3=-2.448, gamma4=10.164)
print(f"{psr:.3f}")
0.987

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

jsharpe-0.0.2.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

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

jsharpe-0.0.2-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

Details for the file jsharpe-0.0.2.tar.gz.

File metadata

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

File hashes

Hashes for jsharpe-0.0.2.tar.gz
Algorithm Hash digest
SHA256 b6ee64fada045698bd46b037c86d12605e38578239385b80e50237e211b099a5
MD5 eabec3f1b58884d7354865e8236addcf
BLAKE2b-256 eaa0a7215abf4006f83d87309f0bca3ce162feffa530f0430ab134c752f68c7e

See more details on using hashes here.

Provenance

The following attestation bundles were made for jsharpe-0.0.2.tar.gz:

Publisher: release.yml on tschm/jsharpe

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

File details

Details for the file jsharpe-0.0.2-py3-none-any.whl.

File metadata

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

File hashes

Hashes for jsharpe-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fc1c7b6ee9836853c07ad44621b552373e150dbc465fd10429f0b3ee960b3ab2
MD5 9e6df8326e84acfe6c8d1b73f91ba8a6
BLAKE2b-256 a53fe7844cdd914b5aac83883f7abbc7004381d41c9daa78a24efae219ca0bb8

See more details on using hashes here.

Provenance

The following attestation bundles were made for jsharpe-0.0.2-py3-none-any.whl:

Publisher: release.yml on tschm/jsharpe

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