Core library for StoryCAD, the outline creation and manipulation tool for fiction writers.
Project description
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.
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
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 storycadlib-4.2.0-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: storycadlib-4.2.0-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 20.3 MB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb362f8009f635146add96ce5e620f04d74f87cd9e0042de5fbbf2a05a528468
|
|
| MD5 |
d9434daab828a243e536d87a2a8f8e39
|
|
| BLAKE2b-256 |
dd883f55a7d1298470912b1777485742bd766db4897134dd6080f58c61f2f306
|
Provenance
The following attestation bundles were made for storycadlib-4.2.0-cp312-cp312-win_amd64.whl:
Publisher:
store-publish.yml on storybuilder-org/StoryCAD
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
storycadlib-4.2.0-cp312-cp312-win_amd64.whl -
Subject digest:
eb362f8009f635146add96ce5e620f04d74f87cd9e0042de5fbbf2a05a528468 - Sigstore transparency entry: 1804815122
- Sigstore integration time:
-
Permalink:
storybuilder-org/StoryCAD@65ffd27f5b7c27669c6ede2f56287be6f89494b7 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/storybuilder-org
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
store-publish.yml@65ffd27f5b7c27669c6ede2f56287be6f89494b7 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file storycadlib-4.2.0-cp312-cp312-macosx_15_0_arm64.whl.
File metadata
- Download URL: storycadlib-4.2.0-cp312-cp312-macosx_15_0_arm64.whl
- Upload date:
- Size: 21.8 MB
- Tags: CPython 3.12, macOS 15.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16a6f31275fd8be53dddd9241324165dfc3a79a458aab5d3ae58d78691888f85
|
|
| MD5 |
9a249bac3ac4038e261b3edc5cb3fbe6
|
|
| BLAKE2b-256 |
cce0489e8a20725ff954deab5f9327013887184c3e5ce274602b06ef12f7ef31
|
Provenance
The following attestation bundles were made for storycadlib-4.2.0-cp312-cp312-macosx_15_0_arm64.whl:
Publisher:
store-publish.yml on storybuilder-org/StoryCAD
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
storycadlib-4.2.0-cp312-cp312-macosx_15_0_arm64.whl -
Subject digest:
16a6f31275fd8be53dddd9241324165dfc3a79a458aab5d3ae58d78691888f85 - Sigstore transparency entry: 1804815175
- Sigstore integration time:
-
Permalink:
storybuilder-org/StoryCAD@65ffd27f5b7c27669c6ede2f56287be6f89494b7 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/storybuilder-org
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
store-publish.yml@65ffd27f5b7c27669c6ede2f56287be6f89494b7 -
Trigger Event:
workflow_dispatch
-
Statement type: