gnurlies — Python-Markdown extension
A Python-Markdown extension that parses questache and attaché syntax — inline calls-to-action for human–AI document collaboration.
For background on the convention, see the gnurlies whitepaper.
Install
pip install gnurlies
Usage
import markdown
from gnurlies import GnurliesExtension
md = markdown.Markdown(extensions=[GnurliesExtension()])
result = md.convert('The {? glue, bridge, handshake ?} between layers.')
Or by name:
md = markdown.Markdown(extensions=['gnurlies'])
The extension adds two inline element types to the parse tree:
| Element | Attributes | Meaning |
|---|---|---|
<questache> |
hints — comma-separated hint string |
Ask for names or verbiage |
<attache> |
action, hints |
Request a concrete insertion |
Questache
The {? glue, bridge, handshake ?} between the canvas layer and the stroke model
is resolved at render time.
Produces <questache hints="glue,bridge,handshake">...</questache> in the element tree.
Attaché
See [here]({! insert: image of Garfield being lazy !}) for a vivid illustration.
Produces <attache action="insert" hints="image of Garfield being lazy">...</attache>.
Escaping
Prefix with a backslash to emit literal text:
\{? this will not be parsed ?}
\{! neither will this !}
Gnurlies inside fenced code blocks are never parsed.
Block suppression
<!-- gnurlies-off -->
{? ignored ?} and {! also ignored !}
<!-- gnurlies-on -->
Post-processing
The extension emits raw XML elements. To act on them — rendering suggestions, fulfilling attachés, stripping markers — register a Treeprocessor that walks the element tree and handles questache and attache tags.
Requirements
- Python 3.9+
- Markdown >= 3.0
License
MIT
Metadata
Release files for gnurlies 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gnurlies-0.1.0.tar.gz | 2.5 kB | Without provenance | Details for gnurlies-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gnurlies-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for gnurlies-0.1.0-py3-none-any.whl |
Total release size: 6.1 kB
Release files / gnurlies-0.1.0.tar.gz
| Download URL | gnurlies-0.1.0.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cbf32975565c936051e679cfea3f744d2a1f0c4d0be9c26777d372220cab1015
|
|
BLAKE2b-256 checksum How to use checksums |
8917ef289d017c2aee9ff932f9aae1387c92609c86b7524d55449607bb003b61
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.12 {"installer":{"name":"uv","version":"0.11.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / gnurlies-0.1.0-py3-none-any.whl
| Download URL | gnurlies-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bf0ca463cd39549cdd3af551ab1e21f38d452b5717286c96d3203f6cdd7ddcd3
|
|
BLAKE2b-256 checksum How to use checksums |
26a7baf640aa393270148a00bcf689e61d73fa9cb964487e5ec6dcab7438f715
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.12 {"installer":{"name":"uv","version":"0.11.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for gnurlies 0.1.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.