Skip to main content

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 (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.

Project details


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 Distributions

If you're not sure about the file name format, learn more about wheel file names.

storycadlib-4.2.0-cp312-cp312-win_amd64.whl (20.3 MB view details)

Uploaded CPython 3.12Windows x86-64

storycadlib-4.2.0-cp312-cp312-macosx_15_0_arm64.whl (21.8 MB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

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

Hashes for storycadlib-4.2.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 eb362f8009f635146add96ce5e620f04d74f87cd9e0042de5fbbf2a05a528468
MD5 d9434daab828a243e536d87a2a8f8e39
BLAKE2b-256 dd883f55a7d1298470912b1777485742bd766db4897134dd6080f58c61f2f306

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file storycadlib-4.2.0-cp312-cp312-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for storycadlib-4.2.0-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 16a6f31275fd8be53dddd9241324165dfc3a79a458aab5d3ae58d78691888f85
MD5 9a249bac3ac4038e261b3edc5cb3fbe6
BLAKE2b-256 cce0489e8a20725ff954deab5f9327013887184c3e5ce274602b06ef12f7ef31

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page