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
Release history Release notifications | RSS feed
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f40d74b53b8421f931ea4e4ba0be7a9160a98a0a65d9326bd70a009f323024d
|
|
| MD5 |
3d4742aea30da10685145e83ca877540
|
|
| BLAKE2b-256 |
c85af98e6be1878638ae8b5513b79c715729d98fe7abe441d0f228b70a57590a
|
Provenance
The following attestation bundles were made for inscription-0.0.1.tar.gz:
Publisher:
publish.yml on norm/inscription
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
inscription-0.0.1.tar.gz -
Subject digest:
3f40d74b53b8421f931ea4e4ba0be7a9160a98a0a65d9326bd70a009f323024d - Sigstore transparency entry: 1604004315
- Sigstore integration time:
-
Permalink:
norm/inscription@6f8cf7e852d9ff822df339de4af9f96711e8b308 -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/norm
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6f8cf7e852d9ff822df339de4af9f96711e8b308 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f70b5ba2c47c7ce90b5512453745b9274045db10a42ba248ceb74ca8853bc0ef
|
|
| MD5 |
fac7e30c4c9088d4b85017a6b412fe39
|
|
| BLAKE2b-256 |
a9eb6dad541f13e41db4bd969292dbc6e9d97c103a4b1c61eec4d4fd13eaf2a3
|
Provenance
The following attestation bundles were made for inscription-0.0.1-py3-none-any.whl:
Publisher:
publish.yml on norm/inscription
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
inscription-0.0.1-py3-none-any.whl -
Subject digest:
f70b5ba2c47c7ce90b5512453745b9274045db10a42ba248ceb74ca8853bc0ef - Sigstore transparency entry: 1604004406
- Sigstore integration time:
-
Permalink:
norm/inscription@6f8cf7e852d9ff822df339de4af9f96711e8b308 -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/norm
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6f8cf7e852d9ff822df339de4af9f96711e8b308 -
Trigger Event:
push
-
Statement type: