Installation¶
Requirements¶
- Python 3.11 or higher
- No external dependencies for core functionality
Install from PyPI¶
Optional Dependencies¶
Monitoring¶
For system metrics and performance monitoring:
This adds:
psutilfor memory and CPU metricsget_metrics()andtimed_operation()utilities
Development¶
For contributing or running tests:
This adds:
pytestandpytest-covfor testingrufffor lintingblackfor formattingmypyfor type checking
Install from Source¶
For development with all tools:
Verify Installation¶
Quick functionality check:
import qlcore as qc
# Create a simple portfolio
portfolio = qc.crypto_portfolio(initial_balance=1000)
print(portfolio.account.balances) # {'USDT': Decimal('1000')}
IDE Support¶
qlcore includes a py.typed marker for PEP 561 compliance. Type checkers and IDEs with Python support will provide:
- Autocompletion for all public APIs
- Type hints for function parameters and returns
- Inline documentation from docstrings
Recommended IDE Setup¶
Install the Pylance extension for full type support.
Works out of the box with Python plugin.
Next Steps¶
- Quick Start — Build your first portfolio
- Core Concepts — Understand the design