A modern Python library for Markowitz portfolio optimization and analysis.
Efficient frontier, capital allocation line and interactive charts, from market data to the best portfolio in a few lines. Previously known as Diversificador.
Installation
pip install markowizard
What's inside
MarkowitzOptimizer: mean-variance optimization over the efficient frontier, with Sharpe ratios and the max-Sharpe portfolio.CapitalAllocator: the capital allocation line, mixing a risky portfolio with a risk-free asset.markowizard.visualization: Plotly charts for the frontier, allocation, CAL, correlations and prices.markowizard.data: helpers to download prices with yfinance and compute returns.- Web app: a FastAPI backend with an interactive frontend, available as a Docker image (docs).
See the quick start and the API reference.
Metadata
Release files for markowizard 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| markowizard-0.3.0.tar.gz | 13.7 kB | With provenance | Details for markowizard-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| markowizard-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for markowizard-0.3.0-py3-none-any.whl |
Total release size: 25.0 kB
Release files / markowizard-0.3.0.tar.gz
| Download URL | markowizard-0.3.0.tar.gz |
|---|---|
| Size | 13.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f2151e76a3879672ba57fd72b2ea89a679c3e65803feef70ed4605c635120b51
|
|
BLAKE2b-256 checksum How to use checksums |
fa1baeee53c56dd3bb9137b028a28d316a516b0d3de33f7a0d696702e6992575
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logRelease files / markowizard-0.3.0-py3-none-any.whl
| Download URL | markowizard-0.3.0-py3-none-any.whl |
|---|---|
| Size | 11.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d5c311e40627426401ab8d312a00a4791ce68676c55b5992009cfa192c505f26
|
|
BLAKE2b-256 checksum How to use checksums |
7d0b4314bb774d0f23ff63763bbe6f9a2f19d2ead156f06b7946388a1fee5dc7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logSecurity for markowizard 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for markowizard-0.3.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.