Pulse Recharts
Python bindings for Recharts React charting library.
Architecture
Typed Python wrappers around Recharts components. Charts are rendered to VDOM and sent to the client.
Python Chart → VDOM → pulse-client → recharts (React)
Folder Structure
src/pulse_recharts/
├── __init__.py # Public exports
├── charts.py # Chart containers (LineChart, BarChart, etc.)
├── cartesian.py # Cartesian components (XAxis, YAxis, Line, Bar, etc.)
├── general.py # General components (Tooltip, Legend, Label, etc.)
├── common.py # Common types (DataKey, Margin, etc.)
└── shapes.py # Shape components (Curve)
Usage
from pulse_recharts import (
LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend,
ResponsiveContainer
)
data = [
{"name": "Jan", "uv": 4000, "pv": 2400},
{"name": "Feb", "uv": 3000, "pv": 1398},
{"name": "Mar", "uv": 2000, "pv": 9800},
]
def chart():
return ResponsiveContainer(width="100%", height=300, children=[
LineChart(data=data, children=[
CartesianGrid(strokeDasharray="3 3"),
XAxis(dataKey="name"),
YAxis(),
Tooltip(),
Legend(),
Line(type="monotone", dataKey="pv", stroke="#8884d8"),
Line(type="monotone", dataKey="uv", stroke="#82ca9d"),
])
])
Components
Chart Containers
LineChart,BarChart,AreaChartPieChart,RadarChart,RadialBarChartScatterChart,FunnelChart,ComposedChart
Cartesian
XAxis,YAxis- axesCartesianGrid- grid linesLine,Bar,Area- data series
General
ResponsiveContainer- responsive wrapperTooltip- hover tooltipsLegend- chart legendLabel,LabelList- data labelsText- text rendering
Shapes
Curve- curve shapes
Roadmap
- Area, Scatter series components
- ZAxis, Brush, ReferenceLine
- Polar components (Pie, Radar, RadialBar axes)
- All shape components (Dot, Rectangle, Sector)
- Custom render function support
Release files for pulse-recharts 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pulse_recharts-0.1.5.tar.gz | 15.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pulse_recharts-0.1.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 34.7 kB
Release files / pulse_recharts-0.1.5.tar.gz
| Download URL | pulse_recharts-0.1.5.tar.gz |
|---|---|
| Size | 15.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
20f424e852bdcff0311a8bd2ebeb5bf42f26d462d1920bbc9659bf8cefeaf24a
|
|
BLAKE2b-256 checksum How to use checksums |
c5e62c97ef2acba8e2d44a4e100783031cc8be34356cc1cd59de73dc757e8b67
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / pulse_recharts-0.1.5-py3-none-any.whl
| Download URL | pulse_recharts-0.1.5-py3-none-any.whl |
|---|---|
| Size | 19.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aba09a16d01d747e120efd0062ff683d1cd8ae845d262ca3ae0e764bce110d45
|
|
BLAKE2b-256 checksum How to use checksums |
827a88ada22080a1c922f02e3f20d5d1bff29c88f204bc7fc6b9c6ca0cbc4753
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|