Skip to main content

glyph

The dictionary and toolkit for the grid script: how humans write down what Ross 128 b sends, in InterImm's The Contact Era. It is our way of representing their language, not their own writing.

PyPI Python CI Docs

Docs: https://interimm.github.io/glyph-cli/ · PyPI: https://pypi.org/project/glyph-cli/

uvx --from glyph-cli glyph show BODY.OTHER STAR.TIME COUNT.137
+++.+++   .+..+.+   .....+.
+++.+..   +++.+.+   ......+
+++.+++   .+..+.+   +++...+
  BODY.OTHER: your world
  STAR.TIME: pulsar
  COUNT.137: 137

Install

glyph is on PyPI as glyph-cli:

uv tool install glyph-cli    # or: pipx install glyph-cli, or: pip install glyph-cli
glyph --version

Upgrade with uv tool upgrade glyph-cli (or pipx upgrade glyph-cli, pip install -U glyph-cli). Python 3.10 or newer, no other dependencies.

Use

glyph parts                         # the 16 parts
glyph find wind                     # search meanings
glyph check BODY.STAR               # is it a word? exit 1 if not
glyph show BODY.OTHER --symbol ×    # draw words
glyph number 2219                   # COUNT.4.171: base-512 digits
glyph render examples/third-voice.txt         # draw a page
glyph render examples/conversation.txt --per-line 1   # one triplet per line
glyph render examples/third-voice.txt --svg -o page.svg
glyph graph examples/conversation.txt         # read it as a knowledge graph (--json, --dot)
glyph render examples/question.txt | glyph decode -   # and back
glyph init my-vocab.json && export GLYPH_VOCAB=$PWD/my-vocab.json
glyph add BODY.STAR "a star-world" --domain Worlds

A page file has one band per line, SYMBOL: node | relation | node; a block of bands is one triplet, and a blank line starts the next. See examples/ and the docs.

Develop

uv sync --all-groups          # or: pip install -e . pytest ruff zensical
uv run pytest
uv run ruff check . && uv run ruff format --check .
uv run python scripts/gen_docs.py    # regenerate docs/vocabulary.md, docs/cli.md and the example drawings
uv run zensical serve                # docs at http://localhost:8000

The vocabulary ships in src/glyph_cli/data/vocab.json. Change it with the tool (glyph --vocab src/glyph_cli/data/vocab.json add ...), then run scripts/gen_docs.py; the tests fail if the generated docs are stale.

Pushes to main publish the docs to GitHub Pages.

Release

  1. Bump __version__ in src/glyph_cli/__init__.py and merge it to main.
  2. Publish a GitHub release tagged vX.Y.Z (the same version).

The release workflow checks the tag matches the version, builds the package, tests the built wheel and uploads it to PyPI with Trusted Publishing, so no token is stored.

License

MIT

Metadata

Release files for glyph-cli 0.3.0

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

Source distribution (sdist)

Source distribution for glyph-cli 0.3.0
File Size Uploaded
glyph_cli-0.3.0.tar.gz 45.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for glyph-cli 0.3.0
File Interpreter ABI Platform
glyph_cli-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 69.7 kB

Release files / glyph_cli-0.3.0.tar.gz

Download URL glyph_cli-0.3.0.tar.gz
Size 45.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d31f128fba4581175aad0f12f9e4be462233e77251d74c059046786393120cf6
BLAKE2b-256 checksum
How to use checksums
61175170b27e79b12fb820c43be691ab1a3bcb5ab436b90cf7487ae336544297
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 8, 2026.

Transparency log

Release files / glyph_cli-0.3.0-py3-none-any.whl

Download URL glyph_cli-0.3.0-py3-none-any.whl
Size 23.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1cc7d7624fd9c3c92e86bc87b73dd21747eac89737b7c585b8d74153c04cc567
BLAKE2b-256 checksum
How to use checksums
e6f45de93efc00a6ab14cc19b0e08a3d328b0efacef3ec47c8d937bedd1f2bff
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 8, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

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