storycad
Python wrapper around the StoryCAD .NET API
(StoryCADLib.Services.API.StoryCADApi). Hosts the CLR in-process via
pythonnet and exposes a Pythonic, snake_case
surface; errors surface as StoryCADError instead of OperationResult<T>
sentinels, and async (Task<T>) methods are joined inline.
The wheel bundles a published build of StoryCADLib under
storycad/runtime/, so end users do not need the .NET SDK — only the
.NET 10 runtime (the wheel is built with --self-contained false).
Prerequisites
- Python 3.10+
- .NET 10 runtime installed on the host (https://dotnet.microsoft.com/download)
- A supported platform (
pippicks the matching wheel automatically): Linux x64, Linux arm64, macOS arm64, Windows x64.
Install
pip install StoryCADLib
Quick example
from storycad import StoryCAD
sc = StoryCAD()
guids = sc.create_empty_outline("My Story", "Author", "0")
overview = next(e for e in sc.get_all_elements() if e.element_type == "StoryOverview")
hero = sc.add_element(sc.item_type.Character, overview.uuid, "Hero")
sc.write_outline("/tmp/my_story.stbx")
Building from source
git clone https://github.com/storybuilder-org/StoryCAD
cd StoryCAD/bindings/python
./build-wheel.sh # runs dotnet publish, stages runtime, then python -m build
The script detects your host RID, publishes StoryCADLib for the matching
framework-dependent target, and produces a platform wheel under dist/.
Known limitations
- Async methods are joined synchronously on the calling thread — no real asyncio integration yet.
- Wheels are platform-specific; you need a wheel built for your OS + arch.
- StoryCAD is GPL-3.0-or-later. Bundling its DLL into a wheel inherits that license; any project that ships this wheel must comply.
Metadata
Release files for StoryCADLib 4.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| storycadlib-4.3.0-cp312-cp312-win_amd64.whl | CPython 3.12 | CPython 3.12 | Windows x86-64 | Details |
| storycadlib-4.3.0-cp312-cp312-manylinux_2_17_x86_64.whl | CPython 3.12 | CPython 3.12 | Linux glibc 2.17+ x86-64 | Details |
| storycadlib-4.3.0-cp312-cp312-manylinux_2_17_aarch64.whl | CPython 3.12 | CPython 3.12 | Linux glibc 2.17+ ARM64 | Details |
| storycadlib-4.3.0-cp312-cp312-macosx_26_0_arm64.whl | CPython 3.12 | CPython 3.12 | macOS 26.0+ ARM64 | Details |
Total release size: 73.3 MB
Release files / storycadlib-4.3.0-cp312-cp312-win_amd64.whl
| Download URL | storycadlib-4.3.0-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 20.7 MB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
f341c1b1ac66ab36f290cea07ed6c726c8139d06280c6ae8c65ff5163854e2fa
|
|
BLAKE2b-256 checksum How to use checksums |
c9759a7606f0ed3ffe6e93180ea549ea9518d67311a2f5850ce65c8dbadd88d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.
Transparency logRelease files / storycadlib-4.3.0-cp312-cp312-manylinux_2_17_x86_64.whl
| Download URL | storycadlib-4.3.0-cp312-cp312-manylinux_2_17_x86_64.whl |
|---|---|
| Size | 15.2 MB |
| Tags | CPython 3.12 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
73d51f9d121401da3018c1ce606e224061876765b998caa6ea8e73a0aa94cd6d
|
|
BLAKE2b-256 checksum How to use checksums |
3e7bcae410d15aac1ac062d66ead2274d0d81cca3bb237e43771c8dc38619041
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.
Transparency logRelease files / storycadlib-4.3.0-cp312-cp312-manylinux_2_17_aarch64.whl
| Download URL | storycadlib-4.3.0-cp312-cp312-manylinux_2_17_aarch64.whl |
|---|---|
| Size | 15.2 MB |
| Tags | CPython 3.12 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
b378b28c017df365dd0f4c3e47fab060f3db9764e286ed329638527d083af0c2
|
|
BLAKE2b-256 checksum How to use checksums |
ac801832f446b4f7e4c887dd3ed45243ca5fbf75ab31c4420deac0ab7cae7528
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.
Transparency logRelease files / storycadlib-4.3.0-cp312-cp312-macosx_26_0_arm64.whl
| Download URL | storycadlib-4.3.0-cp312-cp312-macosx_26_0_arm64.whl |
|---|---|
| Size | 22.2 MB |
| Tags | CPython 3.12 macOS 26.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
0b8b64af7c0afe12667babc7fe991ebf1d0db4ffb211627f06970ecd04c05959
|
|
BLAKE2b-256 checksum How to use checksums |
d72f24f8420258c04f83d5f1487eb0fb24670bbaa2ed884130ddb61c4175134e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.
Transparency log