Wordsmith Engine for Python
The Python implementation of Wordsmith Engine provides composable, deterministic-friendly procedural text components.
pip install wordsmith-engine
import random
from wordsmith import Adjective, Noun
rng = random.Random(5343)
ship_name = ("The" | Adjective() | Noun()).title_case()
print(ship_name(rng))
Pass the same caller-owned random.Random through every related Wordsmith
render. Isolate that RNG from unrelated consumers when its output must be
replayable.
Custom components must depend only on that RNG and fixed captured configuration to remain replayable. Pin the Python runtime as well as the package when durable replay includes non-English host case conversion.
See the repository README for the complete feature list, TypeScript usage, examples, and development guide.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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 wordsmith_engine-0.4.0.tar.gz.
File metadata
- Download URL: wordsmith_engine-0.4.0.tar.gz
- Upload date:
- Size: 144.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc8d5e3d3a0f7bfbf40165447878f0e66263be470426b62f4340a828da38ab16
|
|
| MD5 |
3c6329cc4037d65df19d300bf10dcc12
|
|
| BLAKE2b-256 |
23b7436bb52724d048cb28027107d6dbbc82381ffc0d6ad292e915cc0992056d
|
Provenance
The following attestation bundles were made for wordsmith_engine-0.4.0.tar.gz:
Publisher:
publish-packages.yml on btfranklin/wordsmith-engine
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
wordsmith_engine-0.4.0.tar.gz -
Subject digest:
fc8d5e3d3a0f7bfbf40165447878f0e66263be470426b62f4340a828da38ab16 - Sigstore transparency entry: 2337974252
- Sigstore integration time:
-
Permalink:
btfranklin/wordsmith-engine@40e747179d703329a0157e7fe3bbc1dc83f2c05c -
Branch / Tag:
refs/tags/v0.4.0 - Owner: https://github.com/btfranklin
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-packages.yml@40e747179d703329a0157e7fe3bbc1dc83f2c05c -
Trigger Event:
release
-
Statement type:
File details
Details for the file wordsmith_engine-0.4.0-py3-none-any.whl.
File metadata
- Download URL: wordsmith_engine-0.4.0-py3-none-any.whl
- Upload date:
- Size: 155.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f4e4cfff0d9a33dff6b4f1f7dda2a48bded233f3ffc701c2f7e61ac6e2a5eb31
|
|
| MD5 |
df4d85943dafe09febaac82ac68d1a2d
|
|
| BLAKE2b-256 |
3059709598741cdee0492244f8e1e1d176dc4dab6e68855b6883677b532f0db0
|
Provenance
The following attestation bundles were made for wordsmith_engine-0.4.0-py3-none-any.whl:
Publisher:
publish-packages.yml on btfranklin/wordsmith-engine
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
wordsmith_engine-0.4.0-py3-none-any.whl -
Subject digest:
f4e4cfff0d9a33dff6b4f1f7dda2a48bded233f3ffc701c2f7e61ac6e2a5eb31 - Sigstore transparency entry: 2337974276
- Sigstore integration time:
-
Permalink:
btfranklin/wordsmith-engine@40e747179d703329a0157e7fe3bbc1dc83f2c05c -
Branch / Tag:
refs/tags/v0.4.0 - Owner: https://github.com/btfranklin
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-packages.yml@40e747179d703329a0157e7fe3bbc1dc83f2c05c -
Trigger Event:
release
-
Statement type: