Python wrapper for the Copperlace text renderer
Project description
Copperlace Python
Python wrapper for the Copperlace renderer.
The wheel build runs Cargo for ../rust-core, bundles the resulting native
library, and exposes a small Python API over the Copperlace C ABI.
from copperlace import Copperlace
with Copperlace.from_string('name = ["Mia"]\norigin = "{name}"') as copperlace:
print(copperlace.render("origin"))
print(copperlace.render("origin"))
print(copperlace.render("origin", {"name": "Darcy"}))
with Copperlace.from_string(
'name = ["Mia"]\norigin = "{name | shout}"',
{"shout": lambda value: value.upper()},
) as copperlace:
print(copperlace.render("origin"))
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
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 copperlace-0.1.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.
File metadata
- Download URL: copperlace-0.1.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
- Upload date:
- Size: 1.4 MB
- Tags: Python 3, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a35fdb38c24c702843e2221f2e20845f6a513b51603be3641f9c36d50acd7ee
|
|
| MD5 |
853c60cdbb6cf778879d51cb8407a236
|
|
| BLAKE2b-256 |
726440b08ec92d45e39b4bc5a4568d1aa64a0362a564c523c8ebbacc58cfa279
|