Skip to main content

Parse machine-readable rules embedded in Markdown documents

Project description

inscription

Parse out machine-readable rules embedded in Markdown documents. The rules are still valid Markdown, so they can be easily read, edited, and understood by humans.

import inscription

markdown, rules = inscription.separate(text)

Rules are formatted as unordered lists, and must be the first things that appears in the section.

Normal Markdown appears alongside encoded rules.

# Valid rules

- Inventory _add_ Handaxe

Anything between the start of the section (or very start of file if it doesn't
begin with a header) are rules for computers.

# Invalid rules

- bananas
- raspberries

The rules must parse successfully, or they are treated as Markdown for humans.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

inscription-0.0.1.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

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

inscription-0.0.1-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file inscription-0.0.1.tar.gz.

File metadata

  • Download URL: inscription-0.0.1.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for inscription-0.0.1.tar.gz
Algorithm Hash digest
SHA256 3f40d74b53b8421f931ea4e4ba0be7a9160a98a0a65d9326bd70a009f323024d
MD5 3d4742aea30da10685145e83ca877540
BLAKE2b-256 c85af98e6be1878638ae8b5513b79c715729d98fe7abe441d0f228b70a57590a

See more details on using hashes here.

Provenance

The following attestation bundles were made for inscription-0.0.1.tar.gz:

Publisher: publish.yml on norm/inscription

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

File details

Details for the file inscription-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: inscription-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for inscription-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f70b5ba2c47c7ce90b5512453745b9274045db10a42ba248ceb74ca8853bc0ef
MD5 fac7e30c4c9088d4b85017a6b412fe39
BLAKE2b-256 a9eb6dad541f13e41db4bd969292dbc6e9d97c103a4b1c61eec4d4fd13eaf2a3

See more details on using hashes here.

Provenance

The following attestation bundles were made for inscription-0.0.1-py3-none-any.whl:

Publisher: publish.yml on norm/inscription

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