Skip to main content

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

wordsmith_engine-0.4.0.tar.gz (144.9 kB view details)

Uploaded Source

Built Distribution

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

wordsmith_engine-0.4.0-py3-none-any.whl (155.8 kB view details)

Uploaded Python 3

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

Hashes for wordsmith_engine-0.4.0.tar.gz
Algorithm Hash digest
SHA256 fc8d5e3d3a0f7bfbf40165447878f0e66263be470426b62f4340a828da38ab16
MD5 3c6329cc4037d65df19d300bf10dcc12
BLAKE2b-256 23b7436bb52724d048cb28027107d6dbbc82381ffc0d6ad292e915cc0992056d

See more details on using hashes here.

Provenance

The following attestation bundles were made for wordsmith_engine-0.4.0.tar.gz:

Publisher: publish-packages.yml on btfranklin/wordsmith-engine

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

File details

Details for the file wordsmith_engine-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for wordsmith_engine-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f4e4cfff0d9a33dff6b4f1f7dda2a48bded233f3ffc701c2f7e61ac6e2a5eb31
MD5 df4d85943dafe09febaac82ac68d1a2d
BLAKE2b-256 3059709598741cdee0492244f8e1e1d176dc4dab6e68855b6883677b532f0db0

See more details on using hashes here.

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

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 Sentry Error logging StatusPage Status page