Skip to main content

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

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

lightquant-0.1.7.tar.gz (25.2 kB view details)

Uploaded Source

Built Distribution

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

lightquant-0.1.7-py3-none-any.whl (26.8 kB view details)

Uploaded Python 3

File details

Details for the file lightquant-0.1.7.tar.gz.

File metadata

  • Download URL: lightquant-0.1.7.tar.gz
  • Upload date:
  • Size: 25.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.16

File hashes

Hashes for lightquant-0.1.7.tar.gz
Algorithm Hash digest
SHA256 ee78099db9296fdc32a5695ee8be1400e248571e2ca1fcec18570469ab6892e2
MD5 7c5f7a57e64a4c6d26c02411e89c76ae
BLAKE2b-256 d05dde8c2ff71e5ce1699460ad2bc563ffc9bd085051c311783d89f48470910e

See more details on using hashes here.

File details

Details for the file lightquant-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: lightquant-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 26.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.16

File hashes

Hashes for lightquant-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 69da14147774a7dab752a972771779d55666b3d97bceea16b4f3648b09466588
MD5 3324bc7a38473cf7466325e94bb3abfa
BLAKE2b-256 f344638246f9c56b9f1d362a06bee4c6a0819d4b537432b0ad9185d976f9652d

See more details on using hashes here.

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