Skip to main content

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 (pip picks 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.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for StoryCADLib 4.3.1
File
storycadlib-4.3.1-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details
storycadlib-4.3.1-cp312-cp312-manylinux_2_17_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64 Details
storycadlib-4.3.1-cp312-cp312-manylinux_2_17_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ ARM64 Details
storycadlib-4.3.1-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.1-cp312-cp312-win_amd64.whl

Download URL storycadlib-4.3.1-cp312-cp312-win_amd64.whl
Size 20.7 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
423a4acab8aae028e4c3aa9c28090ae8ae67618981b474d6ba8e9fd9b972d230
BLAKE2b-256 checksum
How to use checksums
a95ca8c0cb923d301bbea64c6184ff1bb79cf9480a31129aeb4fbf765659897a
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 4, 2026.

Transparency log

Release files / storycadlib-4.3.1-cp312-cp312-manylinux_2_17_x86_64.whl

Download URL storycadlib-4.3.1-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
7a25f7d37a8ca5d9fcfba4de7bd6cd713d2d281d48d628ddce9a1dfe45241536
BLAKE2b-256 checksum
How to use checksums
867e002b52057ef36b23e0853a13702e01fde9afa2ab132acf38b2a9321d9a6b
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 4, 2026.

Transparency log

Release files / storycadlib-4.3.1-cp312-cp312-manylinux_2_17_aarch64.whl

Download URL storycadlib-4.3.1-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
6c077db2e6941c09f08a5532a64919268dbc306e34e6fb39d74d8f1a8bb30e4f
BLAKE2b-256 checksum
How to use checksums
714af596c19bb70102b3f8d21da8c36be7b258763fe1b206aabe06ce0608c5d5
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 4, 2026.

Transparency log

Release files / storycadlib-4.3.1-cp312-cp312-macosx_26_0_arm64.whl

Download URL storycadlib-4.3.1-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
0198c0ad4e29af62aab501a069eea866f7c7bfd5bb0873c8c7e5b90a4531f3c8
BLAKE2b-256 checksum
How to use checksums
2850c7125105f3563433027c96e1f9210cd47caf21d37b348378de85d146d05d
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 4, 2026.

Transparency log

Release history Release notifications | RSS feed

4.3.2

4 release files

This release

4.3.1 This release

4 release files

4.3.0

4 release files

4.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page