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.4.tar.gz (11.8 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.4-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pulse_recharts-0.1.4.tar.gz
  • Upload date:
  • Size: 11.8 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.4.tar.gz
Algorithm Hash digest
SHA256 42f723b4be931cc0b1c3835042d4ffda1125b1c67fbd7d0b81c615ade99ef903
MD5 23e8f0bedcaf024f50b9767d0d810d08
BLAKE2b-256 81bb51a6fb58ccdee6b348f0f52a04fa188499f5b16408b4ac231fc878a19a0e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pulse_recharts-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 15.5 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 52eb674ea359df6580413d18e46f3da1da51472d24f9f413afac6ce9f16c269a
MD5 fb182857c8179ca4b272483d5dbcf302
BLAKE2b-256 f1a5e4a5307b38225b163d5bb01fd7c45e07b1afb76c8de63a72892c32820ff7

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