pyalloq-core
pyalloq-core provides the foundational data structures, pure interfaces, and core abstractions for the PyAlloq quantitative portfolio optimization SDK.
Key Modules & Abstractions
MarketData: Standardized parameter object holding aligned price time-series (pd.DataFrame), optional asset features (dict[str, pd.DataFrame]), cross-sectional data, asset lists, risk-free rates, and risk aversion parameters. Includes zero-lookahead time slicing (slice_time).BaseAllocator: Abstract base class for all portfolio allocation engines (Markowitz, Risk Parity, HRP, NCO, Deep Learning allocators, etc.).BaseReturnEstimator: Abstract base class for expected return estimators (Classical, EWMA, Black-Litterman, Factor models, Deep Learning).BaseCovarianceEstimator: Abstract base class for covariance matrix estimators (Empirical, EWMA, Ledoit-Wolf, Semi-covariance, RMT).StrategyPipeline: Pipeline orchestrator linking return estimators, covariance estimators, and portfolio allocators into an end-to-end strategy execution object.OptimizationResult: Standardized result container storing optimized portfolio weights, solver status, and metadata.
Installation
uv add pyalloq-core
# Or inside workspace
uv sync
Quick Example
import pandas as pd
from pyalloq_core.data import MarketData
from pyalloq_core.enums import ObjectiveFunction
# Create MarketData container
prices = pd.DataFrame(
{"AAPL": [150.0, 152.5, 151.0], "MSFT": [300.0, 305.0, 302.0]},
index=pd.date_range("2024-01-01", periods=3)
)
data = MarketData(prices=prices, risk_free_rate=0.04)
print(data.assets) # ['AAPL', 'MSFT']
print(data.prices.head())
Metadata
Release files for pyalloq-core 0.1.20
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 | |
|---|---|---|---|---|
| pyalloq_core-0.1.20.tar.gz | 9.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyalloq_core-0.1.20-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.5 kB
Release files / pyalloq_core-0.1.20.tar.gz
| Download URL | pyalloq_core-0.1.20.tar.gz |
|---|---|
| Size | 9.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
88b5a3de85eab436f2e9d4315ac349864fdcc842a84783ca99a6ec4679cee743
|
|
BLAKE2b-256 checksum How to use checksums |
8d743d228b77441953772f18478ce71fcca755c2e2af657e47043d8a8db22204
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / pyalloq_core-0.1.20-py3-none-any.whl
| Download URL | pyalloq_core-0.1.20-py3-none-any.whl |
|---|---|
| Size | 11.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a8660578c1bc28b903aac28fd13bb11e94d5901e7ef394bed0cfe8056cb71793
|
|
BLAKE2b-256 checksum How to use checksums |
6e10ddbeb99f2e84a1ea892015d029f625bce6ebcaf34163a4b4b6ecc8bd3d16
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for pyalloq-core 0.1.20
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.