Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

FastPlotPy

Server-side export provides renderLineToSVG / renderLineToPNG, renderBarToSVG / renderBarToPNG, renderPieToSVG / renderPieToPNG, renderPolarToSVG / renderPolarToPNG, renderHeatmapToSVG / renderHeatmapToPNG, renderWonderplotToSVG / renderWonderplotToPNG, and renderMapToSVG / renderMapToPNG. These functions use the shared Rust renderer without a browser. SVG is text; PNG is image bytes. They require the native library and use a bounded server contract, distinct from interactive chart options. See the repository server rendering documents for each family's inputs and limits. The legacy renderToPNG() still returns serialized JSON, not PNG. Published native platform wheels cover Windows x64 and Linux x86_64 (manylinux 2.38 or newer). The Map export pair is included in this 0.5.0a2 package and was absent from the previous 0.5.0a1 release. This package adds offline country values through map.regions: [{"id": "USA", "value": 42}] to both the interactive map and server Map document. Point traces may coexist with regions. See the choropleth contract. Installed server exports passed on Windows and Ubuntu/WSL CPython 3.12; macOS remains unverified. Five 3D families remain experimental.

Source installations on Linux build the bundled Rust ABI when Cargo is available. The macOS source-build path exists but has not been validated on a macOS machine. The build checks the pinned Rust snapshot and lockfile, then compiles the checksum-verified ICU source with a C/C++ compiler and make. Linux also needs python3 for archive extraction; the macOS path uses ditto. A successfully built platform wheel includes its native library beside the Python code. Without a matching native library, server export raises ServerLineExportError with code NATIVE_UNAVAILABLE.

from fastplotpy import renderLineToSVG, renderLineToPNG
options = {"traces": [{"points": [[0, 1], [1, 2]]}]}
svg = renderLineToSVG(options)
png = renderLineToPNG(options)

FastPlotPy is the Python port of FastPlotJs for renderer-neutral scene generation and browser/Jupyter charts. Install the latest published alpha from PyPI with:

python -m pip install --pre --upgrade fastplotpy

In Python or Jupyter:

from fastplotpy import createChart

chart = createChart({
    "type": "line",
    "width": 800,
    "height": 400,
    "engine": "auto",
    "data": [{"x": 0, "y": 12}, {"x": 1, "y": 18}],
    "axes": {"show": True},
})
chart  # Jupyter displays the interactive browser view.

Original points in an area

For line and Wonderplot charts, chart.selectArea({"xMin": ..., "xMax": ..., "yMin": ..., "yMax": ..., "subplotId": ...}) searches the owned source arrays. Line scenes may be downsampled, but the query still sees every original point. Bounds are inclusive data values; subplotId may be omitted for main or a sole subplot. It returns the resolved subplot, the supplied bounds, and points in trace and source order. Each result item has traceIndex, pointIndex, raw x and y, and a copied complete point datum. Only visible traces in that subplot participate. The query does not change point selection, viewport, or chart state. An invalid request or an unsupported chart family, including 3D charts, returns None.

Set interactions: {"areaSelection": True} for Shift plus left-button drag in the browser chart. The chart emits areaSelection with the same source-point result and a type field after a completed brush. The programmatic query works without enabling the gesture. Python date and datetime values remain Python objects in the host query; the existing browser bridge serializes them to ISO strings in browser queries and events. Other extra datum fields must be JSON-serializable to cross that bridge. See examples/area_source_selection.py.

The World Map point-value chart introduced in 0.5.0a1 uses "type": "map" and geographic data items with longitude, latitude, value, and optional label. Its map options select the built-in equirectangular world basemap, marker radius, continuous color scale, and optional color-scale legend. See the contract, example, and basemap provenance. This 0.5.0a2 package pins a later fastPlotJs frontend with area selection. The titled map passed a headless browser check; earlier line interaction evidence remains applicable to the unchanged path.

The local chart view uses the pinned FastPlotJs browser frontend for Canvas, pointer, and WebGL behavior. Its loopback bridge binds to 127.0.0.1 for the chart session. Python owns scene and state APIs; source frontend callbacks can invoke Python formatters. Browser WebAssembly is separate from the optional Python-host Rust core and is not initialized by initWasmPlotEngine() in CPython. The source-named hasNodePlotEngine() and initNodePlotEngine() are Python compatibility aliases for hasRustPlotEngine() and initRustPlotEngine(); they do not start or require Node.js. getRustPlotEngineStatus() reports host native capabilities. getWasmPlotEngineStatus() reports CPython availability, not the state of the separate browser frontend.

Without a browser, plot() produces a renderer-neutral scene:

from fastplotpy import plot

scene = plot({
    "type": "line",
    "width": 800,
    "height": 400,
    "engine": "ts",  # Source spelling selects the Python fallback geometry.
    "data": [{"x": 0, "y": 12}, {"x": 1, "y": 18}],
})

Current Python geometry covers the original eleven source chart families and the World Map, including source-documented 3D LOD, encodings, lighting, accessibility, and multiple subplots. No chart calculation invokes Node.js at package runtime. Strict engine="rust" uses the optional pinned Rust core for supported 2D families and fails explicitly when unavailable. Pie3D reuses pie datum and presentation options, accepts pie3d.extrusionDepth in (0, 1], and uses the shared scene3d.camera. The native 3D PNG path has Windows validation only. renderToPNG() retains the source placeholder behavior.

The source project is FastPlotJs. This alpha version is 0.5.0a2. Python 3.11 or newer is required. Its Windows wheel includes Python code, the pinned frontend, the built Rust ABI library, and the MIT License. The source distribution includes the pinned Rust sources and lockfile for optional native builds. Bundled font attribution is in the packaged assets/native/THIRD_PARTY_NOTICES.md file.

Canvas quality

The pinned browser frontend accepts canvas: { pixelRatio: "auto", resolutionScale: 2 } through createChart. Omitted ratios default to 1; logical sizes, text, and pointer coordinates remain unchanged while the backing bitmap scales. Experimental Pie3D also accepts pie3d: { curveTolerance: 0.1 } (default 1 logical pixel; smaller means more faces, within scene3d.maxPoints). Higher settings use more memory and rendering work. The source browser comparison remains in FastPlotJs. The Python source distribution includes the local Python-backed gallery under examples/gallery/; the installed wheel bundles the interactive frontend but does not install the standalone gallery server.

Metadata

Release files for fastplotpy 0.5.0a2

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

Source distribution (sdist)

Source distribution for fastplotpy 0.5.0a2
File Size Uploaded Provenance Actions
fastplotpy-0.5.0a2.tar.gz 32.0 MB Without provenance Details for fastplotpy-0.5.0a2.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for fastplotpy 0.5.0a2
File Interpreter ABI Platform Actions
fastplotpy-0.5.0a2-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for fastplotpy-0.5.0a2-py3-none-win_amd64.whl
fastplotpy-0.5.0a2-py3-none-manylinux_2_38_x86_64.whl Python 3 none Linux glibc 2.38+ x86-64 Details for fastplotpy-0.5.0a2-py3-none-manylinux_2_38_x86_64.whl

Total release size: 71.4 MB

Release files / fastplotpy-0.5.0a2.tar.gz

Download URL fastplotpy-0.5.0a2.tar.gz
Size 32.0 MB
Tags Source
SHA-256 checksum
How to use checksums
638b417a7968129817382b614f57d681392b6a11dcb6b429422a8177f465c912
BLAKE2b-256 checksum
How to use checksums
583ba070b7ba3bf76176c4ec040e9d499e7f280458af97115384d501a439dec5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.1

Release files / fastplotpy-0.5.0a2-py3-none-win_amd64.whl

Download URL fastplotpy-0.5.0a2-py3-none-win_amd64.whl
Size 19.4 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
751e969929ca6631143c9cc4de69217cd488f43f87b1bf5adae78cde1b54ef9c
BLAKE2b-256 checksum
How to use checksums
d368f3815e5a0c1e71725248c2c6a3c264f45652f2d98ece2704968200b1925e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.1

Release files / fastplotpy-0.5.0a2-py3-none-manylinux_2_38_x86_64.whl

Download URL fastplotpy-0.5.0a2-py3-none-manylinux_2_38_x86_64.whl
Size 20.0 MB
Tags Linux glibc 2.38+ x86-64 Python 3
SHA-256 checksum
How to use checksums
f2341042d67534a66ab652b05721651de1da575c0602e29a91ba99f09fd116db
BLAKE2b-256 checksum
How to use checksums
452db8256fb9f0889a06d76dcfca7d8a33c7c2540e467f61e4960c3b95530a7e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.1

Security for fastplotpy 0.5.0a2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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