Skip to main content

Python bindings for rpic — the pic graphics language → SVG/PNG/PDF with animation.

Project description

rpiclang (Python)

Python bindings for rpic — the pic graphics language rendered to SVG / PNG / PDF, with animation manifests.

pip install rpiclang        # distribution name; you `import rpic`
import rpic, json

svg = rpic.render_svg('box "hi"; arrow; circle "x"')
open("out.png", "wb").write(rpic.render_png("box \"hi\"", scale=2.0))
open("out.pdf", "wb").write(rpic.render_pdf("box \"hi\""))

# circuit library:
svg = rpic.render_svg('A:(0,0); B:(2,0)\nresistor(A,B)', circuits=True)

# svg + animation manifest:
bundle = json.loads(rpic.compile_json('box\nanimate last box with "pop"'))

Build

pip install maturin
cd bindings/python
maturin develop --release     # installs into the current environment
# or: maturin build --release  → wheels in target/wheels/

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

rpiclang-0.0.2.tar.gz (57.3 kB view details)

Uploaded Source

Built Distributions

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

rpiclang-0.0.2-cp39-abi3-win_amd64.whl (3.0 MB view details)

Uploaded CPython 3.9+Windows x86-64

rpiclang-0.0.2-cp39-abi3-manylinux_2_35_x86_64.whl (3.6 MB view details)

Uploaded CPython 3.9+manylinux: glibc 2.35+ x86-64

rpiclang-0.0.2-cp39-abi3-macosx_11_0_arm64.whl (3.2 MB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

File details

Details for the file rpiclang-0.0.2.tar.gz.

File metadata

  • Download URL: rpiclang-0.0.2.tar.gz
  • Upload date:
  • Size: 57.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for rpiclang-0.0.2.tar.gz
Algorithm Hash digest
SHA256 e97983f39affd54e85005121c79d6a70d7fbe56ac29aa09af8e29ebf727f3c1c
MD5 a4b84820bd13d08867585ab83be5ae1f
BLAKE2b-256 0176eabe0d0451714cae9fb4f7eb72154a49694c0a4efeaefb80e3b30ed392d6

See more details on using hashes here.

Provenance

The following attestation bundles were made for rpiclang-0.0.2.tar.gz:

Publisher: python.yml on milkway/rpic-lang

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file rpiclang-0.0.2-cp39-abi3-win_amd64.whl.

File metadata

  • Download URL: rpiclang-0.0.2-cp39-abi3-win_amd64.whl
  • Upload date:
  • Size: 3.0 MB
  • Tags: CPython 3.9+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for rpiclang-0.0.2-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 5428015b185e7776ac8af2bd901a7333b8c07e71ca1fba7e2eb26048305248e8
MD5 e234646a4bb9bf901ba36062bd9120db
BLAKE2b-256 af346007951760177e928c064014b24acf30da91650fed407c7227a701d2fc07

See more details on using hashes here.

Provenance

The following attestation bundles were made for rpiclang-0.0.2-cp39-abi3-win_amd64.whl:

Publisher: python.yml on milkway/rpic-lang

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file rpiclang-0.0.2-cp39-abi3-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for rpiclang-0.0.2-cp39-abi3-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 e10850672eb944b33abff2f54c4f0c816007476f852103b11982a34d364fe935
MD5 bc092604db4d74328123f925ab5f688c
BLAKE2b-256 f8709c056667a5da3ea531cf387c1a89ff66e75ebf355385231c0f13b9dc586c

See more details on using hashes here.

Provenance

The following attestation bundles were made for rpiclang-0.0.2-cp39-abi3-manylinux_2_35_x86_64.whl:

Publisher: python.yml on milkway/rpic-lang

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file rpiclang-0.0.2-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for rpiclang-0.0.2-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 66475a1194123e680bc9aeac1f95278ae803af46231304069406ca24f6262566
MD5 1de0617c8e73a5115cecbcde6bf70f38
BLAKE2b-256 5a7831a29eb220107f86143c575a45e94b67df69353806c93be72f1f9ee10ce9

See more details on using hashes here.

Provenance

The following attestation bundles were made for rpiclang-0.0.2-cp39-abi3-macosx_11_0_arm64.whl:

Publisher: python.yml on milkway/rpic-lang

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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