Skip to main content

Add your description here

Project description

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, AreaChart
  • PieChart, RadarChart, RadialBarChart
  • ScatterChart, FunnelChart, ComposedChart

Cartesian

  • XAxis, YAxis - axes
  • CartesianGrid - grid lines
  • Line, Bar, Area - data series

General

  • ResponsiveContainer - responsive wrapper
  • Tooltip - hover tooltips
  • Legend - chart legend
  • Label, LabelList - data labels
  • Text - 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

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

pulse_recharts-0.1.5.tar.gz (15.1 kB view details)

Uploaded Source

Built Distribution

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

pulse_recharts-0.1.5-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

File details

Details for the file pulse_recharts-0.1.5.tar.gz.

File metadata

  • Download URL: pulse_recharts-0.1.5.tar.gz
  • Upload date:
  • Size: 15.1 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for pulse_recharts-0.1.5.tar.gz
Algorithm Hash digest
SHA256 20f424e852bdcff0311a8bd2ebeb5bf42f26d462d1920bbc9659bf8cefeaf24a
MD5 d26bdde920c110d717f56a2242e590c5
BLAKE2b-256 c5e62c97ef2acba8e2d44a4e100783031cc8be34356cc1cd59de73dc757e8b67

See more details on using hashes here.

File details

Details for the file pulse_recharts-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: pulse_recharts-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 19.6 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for pulse_recharts-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 aba09a16d01d747e120efd0062ff683d1cd8ae845d262ca3ae0e764bce110d45
MD5 9c6a8f906c17c51e783c84020e743c95
BLAKE2b-256 827a88ada22080a1c922f02e3f20d5d1bff29c88f204bc7fc6b9c6ca0cbc4753

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