Framework-agnostic Python core library for TradingView Lightweight Charts Pro
Project description
Lightweight Charts Pro (Python)
Framework-agnostic Python core library for TradingView Lightweight Charts Pro.
Overview
This package provides the foundational Python classes and utilities used by all Python framework wrappers (Streamlit, Flask, Django, FastAPI, etc.).
Features
- Data Models: Type-safe data classes for all chart types
- Options Classes: Comprehensive chart configuration options
- Base Classes:
BaseChartandBaseChartManagerfor framework extensions - Validators: Data validation and type checking
- Type Definitions: Enums and type hints
- Exceptions: Standardized error handling
Installation
pip install lightweight-charts-pro
Usage
from lightweight_charts_pro.charts import BaseChart
from lightweight_charts_pro.charts.options import ChartOptions, LineOptions
from lightweight_charts_pro.data import LineData
# Use in your framework wrapper
class MyFrameworkChart(BaseChart):
def render(self):
# Framework-specific rendering logic
pass
Development
# Install in development mode
pip install -e .
# Run tests
pytest
# Type checking
mypy lightweight_charts_pro
License
MIT
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 lightweight_charts_pro-0.1.0.tar.gz.
File metadata
- Download URL: lightweight_charts_pro-0.1.0.tar.gz
- Upload date:
- Size: 159.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cba93202029eca8af2294897aaa120bc16f925a38bf284f8837543cd0f6e0c98
|
|
| MD5 |
68c9b3fd5e7413384d5ee047304bb77b
|
|
| BLAKE2b-256 |
464aa2b2d7835352296daacdbe433526960b92ad109eca11af3f2833f6b5be3d
|
File details
Details for the file lightweight_charts_pro-0.1.0-py3-none-any.whl.
File metadata
- Download URL: lightweight_charts_pro-0.1.0-py3-none-any.whl
- Upload date:
- Size: 208.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
878b2597f1a96e9bcf5162932cc987b9e23b25ae45f9e5fb970c4d89c6b4dbb9
|
|
| MD5 |
2a494b2d11dfdadcfaaa054b7bf93017
|
|
| BLAKE2b-256 |
8ae7e63f80361f6d7925ccb942439294bdc42be1964982fe4204369d1fa584d5
|