A lightweight Python library for python utilities for holidays, dates, options and other tools
Project description
lightquant
lightquant is a lightweight Python library providing utilities for working with holidays, dates, options, and other trading-related tools. It is designed to simplify common tasks in quantitative finance and trading workflows.
Features
- Date Utilities: Simplify date and time operations.
- Options Pricing: Tools for European options calculations.
- Trading Interactions: functions for assisting web scraping, reading and writing R files
- Commission Calculations: Retrieve and calculate trading commissions based on dates and configurations.
- Config Management: Centralized configuration management using YAML files.
Installation
Install the package using pip:
pip install lightquant
Usage
Import the Library
import lightquant
Check the Version
print(lightquant.__version__)
Initialize Configuration
from lightquant import initialize_config, get_config
# Initialize configuration with the default config path
initialize_config("path/to/config.yaml")
# Access configuration values
config = get_config()
timezone = config.get("tz")
print(f"Timezone: {timezone}")
Logging Configuration
from lightquant import configure_logging
# Configure logging
configure_logging(level=logging.INFO, enable_console=True)
License
This project is licensed under the terms of the MIT License.
Links
- Homepage: GitHub Repository
- PyPI: LightQuant on PyPI
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lightquant-0.1.6.tar.gz.
File metadata
- Download URL: lightquant-0.1.6.tar.gz
- Upload date:
- Size: 23.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eaa6f20c158a3c27b639a833dce350676aa6747e714f86b3381b19ff73bf005e
|
|
| MD5 |
146b56325836e5c4bdcf562c6e08a556
|
|
| BLAKE2b-256 |
5c9ed14ca33b3dc518afbdeb7f12b4c22725b38c6ae60c4a891c118d854242ba
|
File details
Details for the file lightquant-0.1.6-py3-none-any.whl.
File metadata
- Download URL: lightquant-0.1.6-py3-none-any.whl
- Upload date:
- Size: 24.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6434bcd8cfb808022b02437f2b342e3c2eef5f6232ace0083c759b2cad31e349
|
|
| MD5 |
fe6c4ed62986ee4a8690fb368b1eb840
|
|
| BLAKE2b-256 |
e48288214a04ed8e45fd2de3ddeff4c8244ed7c47559ee912bd1274940fafca6
|