Skip to main content

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: BaseChart and BaseChartManager for 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

Release files for lightweight-charts-pro 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lightweight-charts-pro 0.1.0
File Size Uploaded
lightweight_charts_pro-0.1.0.tar.gz 159.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lightweight-charts-pro 0.1.0
File Interpreter ABI Platform
lightweight_charts_pro-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 367.2 kB

Release files / lightweight_charts_pro-0.1.0.tar.gz

Download URL lightweight_charts_pro-0.1.0.tar.gz
Size 159.2 kB
Tags Source
SHA-256 checksum
How to use checksums
cba93202029eca8af2294897aaa120bc16f925a38bf284f8837543cd0f6e0c98
BLAKE2b-256 checksum
How to use checksums
464aa2b2d7835352296daacdbe433526960b92ad109eca11af3f2833f6b5be3d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.14

Release files / lightweight_charts_pro-0.1.0-py3-none-any.whl

Download URL lightweight_charts_pro-0.1.0-py3-none-any.whl
Size 208.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
878b2597f1a96e9bcf5162932cc987b9e23b25ae45f9e5fb970c4d89c6b4dbb9
BLAKE2b-256 checksum
How to use checksums
8ae7e63f80361f6d7925ccb942439294bdc42be1964982fe4204369d1fa584d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.14

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page