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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rpiclang-0.1.1.tar.gz.
File metadata
- Download URL: rpiclang-0.1.1.tar.gz
- Upload date:
- Size: 150.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
344a212bfe676f1698ca2cddf7212a903566b0d0e15f824abfb5bcbc72eb4095
|
|
| MD5 |
41eb379a94c059d40e635c0aba26c460
|
|
| BLAKE2b-256 |
31492f2df24bc065d1aa995e873d0c615421c7a7e7153e3a2d3b9492224ebfab
|
Provenance
The following attestation bundles were made for rpiclang-0.1.1.tar.gz:
Publisher:
python.yml on milkway/rpic-lang
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rpiclang-0.1.1.tar.gz -
Subject digest:
344a212bfe676f1698ca2cddf7212a903566b0d0e15f824abfb5bcbc72eb4095 - Sigstore transparency entry: 2021589721
- Sigstore integration time:
-
Permalink:
milkway/rpic-lang@4964ac74a0400b72286546f6f580c6e744ac901c -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/milkway
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python.yml@4964ac74a0400b72286546f6f580c6e744ac901c -
Trigger Event:
push
-
Statement type:
File details
Details for the file rpiclang-0.1.1-cp39-abi3-win_amd64.whl.
File metadata
- Download URL: rpiclang-0.1.1-cp39-abi3-win_amd64.whl
- Upload date:
- Size: 3.1 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f0fb01a143fd80863476a9662b99a9da09827ea4654219ae8ec37c70270e0424
|
|
| MD5 |
0d8658704e881ef6f0a8b1905761889d
|
|
| BLAKE2b-256 |
d73abe3536364430012d65bc50d48560d76bc0a03e3b52dec8faeda9b1cc3166
|
Provenance
The following attestation bundles were made for rpiclang-0.1.1-cp39-abi3-win_amd64.whl:
Publisher:
python.yml on milkway/rpic-lang
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rpiclang-0.1.1-cp39-abi3-win_amd64.whl -
Subject digest:
f0fb01a143fd80863476a9662b99a9da09827ea4654219ae8ec37c70270e0424 - Sigstore transparency entry: 2021589823
- Sigstore integration time:
-
Permalink:
milkway/rpic-lang@4964ac74a0400b72286546f6f580c6e744ac901c -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/milkway
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python.yml@4964ac74a0400b72286546f6f580c6e744ac901c -
Trigger Event:
push
-
Statement type:
File details
Details for the file rpiclang-0.1.1-cp39-abi3-manylinux_2_35_x86_64.whl.
File metadata
- Download URL: rpiclang-0.1.1-cp39-abi3-manylinux_2_35_x86_64.whl
- Upload date:
- Size: 3.7 MB
- Tags: CPython 3.9+, manylinux: glibc 2.35+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b5c64200c24be7d5e45a24dc2e13f9e589adeb73425aa17f64d67cbf119acb6
|
|
| MD5 |
9e0f17caac18c18613c9523e0598819e
|
|
| BLAKE2b-256 |
5ff448a84e7d350a6c18eb5667f15795822da8a9744a7f35def6eabe983b1795
|
Provenance
The following attestation bundles were made for rpiclang-0.1.1-cp39-abi3-manylinux_2_35_x86_64.whl:
Publisher:
python.yml on milkway/rpic-lang
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rpiclang-0.1.1-cp39-abi3-manylinux_2_35_x86_64.whl -
Subject digest:
4b5c64200c24be7d5e45a24dc2e13f9e589adeb73425aa17f64d67cbf119acb6 - Sigstore transparency entry: 2021589772
- Sigstore integration time:
-
Permalink:
milkway/rpic-lang@4964ac74a0400b72286546f6f580c6e744ac901c -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/milkway
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python.yml@4964ac74a0400b72286546f6f580c6e744ac901c -
Trigger Event:
push
-
Statement type:
File details
Details for the file rpiclang-0.1.1-cp39-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: rpiclang-0.1.1-cp39-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 3.3 MB
- Tags: CPython 3.9+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c49fd50067acaec6e897321bb48ead6a03a8b23a3965e221e84ff54edfb3c43f
|
|
| MD5 |
f77041fcf72c5d487521e6ad62d1faa9
|
|
| BLAKE2b-256 |
0c9cf8b23f6961d594cbd887113767bf5a087edfab28d1f28ac5968efcc92d55
|
Provenance
The following attestation bundles were made for rpiclang-0.1.1-cp39-abi3-macosx_11_0_arm64.whl:
Publisher:
python.yml on milkway/rpic-lang
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rpiclang-0.1.1-cp39-abi3-macosx_11_0_arm64.whl -
Subject digest:
c49fd50067acaec6e897321bb48ead6a03a8b23a3965e221e84ff54edfb3c43f - Sigstore transparency entry: 2021589859
- Sigstore integration time:
-
Permalink:
milkway/rpic-lang@4964ac74a0400b72286546f6f580c6e744ac901c -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/milkway
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python.yml@4964ac74a0400b72286546f6f580c6e744ac901c -
Trigger Event:
push
-
Statement type: