Ferrastra is an independently buildable CPU-first, typed, spatial graphics product engine. Its immutable graph, canonical serialization, native raster source, regional demand and damage, bounded runtime, and deterministic product identity are available from Rust and Python. Canonical whole-image and sampled-view Lanczos3, affine raster, and Coverage8 affine operations provide stable tiled and monolithic results without introducing presentation concepts.
Install a local development build from the repository root with:
.venv\Scripts\python -m pip install -e packages\ferrastra
The wheel uses the CPython 3.10 stable ABI and supports Python 3.10 through 3.14 from one wheel per supported native platform. The minimum platform set is Windows x64, Linux x64, and Apple Silicon macOS. Ferrastra does not install or import Qt, QPane, or CuteCanvas.
from ferrastra import Engine, EvaluationBudget, GraphBuilder, Region
engine = Engine()
source_pixel = bytes((12, 24, 36, 255))
revision = engine.add_rgba8(source_pixel * 4, 2, 2)
builder = GraphBuilder(1)
builder.add_node(1, "ferrastra.source.raster")
builder.set_source_revision(1, revision)
builder.add_node(2, "ferrastra.resample.lanczos3")
builder.connect(1, "result", 2, "source")
builder.set_integer(2, "source_width", 2)
builder.set_integer(2, "source_height", 2)
builder.set_integer(2, "destination_width", 5)
builder.set_integer(2, "destination_height", 3)
builder.add_output("result", 2)
compiled = engine.compile(builder.build())
region = Region(0, 0, 5, 3)
requirements = engine.requirements(compiled, "result", region)
result = engine.evaluate(
compiled,
"result",
region,
EvaluationBudget(
memory_bytes=requirements.memory_bytes,
scratch_bytes=requirements.scratch_bytes,
),
)
assert result.pixels == source_pixel * 15
See the Ferrastra design charter and package source for its product boundary and implementation contract.
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 ferrastra-1.0.0.tar.gz.
File metadata
- Download URL: ferrastra-1.0.0.tar.gz
- Upload date:
- Size: 109.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e617cc3077d7f4c1ded1b1ac8baf04294b57653618d5fbf7798fb66f39c4a6d
|
|
| MD5 |
337b96cafdf4d0e471b3ba396b2fa348
|
|
| BLAKE2b-256 |
9c61b12f9d4e59c953e39aae365e815e80e2d07b71a5675cf8500af20e965b51
|
Provenance
The following attestation bundles were made for ferrastra-1.0.0.tar.gz:
Publisher:
publish.yml on Artificial-Sweetener/CuteCanvas
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ferrastra-1.0.0.tar.gz -
Subject digest:
8e617cc3077d7f4c1ded1b1ac8baf04294b57653618d5fbf7798fb66f39c4a6d - Sigstore transparency entry: 2459292605
- Sigstore integration time:
-
Permalink:
Artificial-Sweetener/CuteCanvas@966aa72482633651bc14406fe983ff669cb3007e -
Branch / Tag:
refs/tags/ferrastra-v1.0.0 - Owner: https://github.com/Artificial-Sweetener
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@966aa72482633651bc14406fe983ff669cb3007e -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file ferrastra-1.0.0-cp310-abi3-win_amd64.whl.
File metadata
- Download URL: ferrastra-1.0.0-cp310-abi3-win_amd64.whl
- Upload date:
- Size: 549.3 kB
- Tags: CPython 3.10+, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d446874305ee06b75ba07e6b770b34db63456d3697c8c2aad8d4b1a78384c4d9
|
|
| MD5 |
13693902daf8c1249b7f34e709ed5ca0
|
|
| BLAKE2b-256 |
6815088e47ee365d81521de4545f89ffec748e63bb1bf2b4eb51cf5c41fbfe3d
|
Provenance
The following attestation bundles were made for ferrastra-1.0.0-cp310-abi3-win_amd64.whl:
Publisher:
publish.yml on Artificial-Sweetener/CuteCanvas
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ferrastra-1.0.0-cp310-abi3-win_amd64.whl -
Subject digest:
d446874305ee06b75ba07e6b770b34db63456d3697c8c2aad8d4b1a78384c4d9 - Sigstore transparency entry: 2459292704
- Sigstore integration time:
-
Permalink:
Artificial-Sweetener/CuteCanvas@966aa72482633651bc14406fe983ff669cb3007e -
Branch / Tag:
refs/tags/ferrastra-v1.0.0 - Owner: https://github.com/Artificial-Sweetener
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@966aa72482633651bc14406fe983ff669cb3007e -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file ferrastra-1.0.0-cp310-abi3-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: ferrastra-1.0.0-cp310-abi3-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 2.6 MB
- Tags: CPython 3.10+, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d9eff1ae4082c55c9e2ba9f027f59041c50effac0715eee367e2a2ebcf01d6cf
|
|
| MD5 |
9aee730b3fff516e6d542390bc2abf59
|
|
| BLAKE2b-256 |
eaa29327e3f94864aa01fc6416956c301d9a99340b745f7613c80b00a792376b
|
Provenance
The following attestation bundles were made for ferrastra-1.0.0-cp310-abi3-manylinux_2_34_x86_64.whl:
Publisher:
publish.yml on Artificial-Sweetener/CuteCanvas
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ferrastra-1.0.0-cp310-abi3-manylinux_2_34_x86_64.whl -
Subject digest:
d9eff1ae4082c55c9e2ba9f027f59041c50effac0715eee367e2a2ebcf01d6cf - Sigstore transparency entry: 2459292957
- Sigstore integration time:
-
Permalink:
Artificial-Sweetener/CuteCanvas@966aa72482633651bc14406fe983ff669cb3007e -
Branch / Tag:
refs/tags/ferrastra-v1.0.0 - Owner: https://github.com/Artificial-Sweetener
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@966aa72482633651bc14406fe983ff669cb3007e -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file ferrastra-1.0.0-cp310-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: ferrastra-1.0.0-cp310-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 619.9 kB
- Tags: CPython 3.10+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ccb41a0e44bbbce9905d44716b25e70818dccbd8887fe89fb1ff1f8a4f08257
|
|
| MD5 |
12eef5308c210ffa4f85d787f3ef54af
|
|
| BLAKE2b-256 |
cc02f5eb9d19b63873a77bf20a0fe422770a60cce790180bceeffde62f8a93a9
|
Provenance
The following attestation bundles were made for ferrastra-1.0.0-cp310-abi3-macosx_11_0_arm64.whl:
Publisher:
publish.yml on Artificial-Sweetener/CuteCanvas
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ferrastra-1.0.0-cp310-abi3-macosx_11_0_arm64.whl -
Subject digest:
4ccb41a0e44bbbce9905d44716b25e70818dccbd8887fe89fb1ff1f8a4f08257 - Sigstore transparency entry: 2459292855
- Sigstore integration time:
-
Permalink:
Artificial-Sweetener/CuteCanvas@966aa72482633651bc14406fe983ff669cb3007e -
Branch / Tag:
refs/tags/ferrastra-v1.0.0 - Owner: https://github.com/Artificial-Sweetener
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@966aa72482633651bc14406fe983ff669cb3007e -
Trigger Event:
workflow_dispatch
-
Statement type: