clausal-yaml
PyYAML predicates for Clausal Prolog.
Wraps PyYAML (safe_load / safe_dump) as Clausal Prolog predicates
for reading and writing YAML text and files. Data is represented as
plain Python values.
Install
pip install clausal-yaml
pyyaml is pulled in as a dependency. Requires Python 3.13 or later.
Use
Import the predicates into a seam (.seam) module, as the package's own
tests do. A Clausal Prolog (.clausal) module reaches Python only through
the seam: put the imports in a .seam module and list it under
[tool.clausal] python_bridges in your project's pyproject.toml (see
Importing Prolog).
This test, from tests/fixtures/yaml_basic.seam,
shows the shape of a call:
-import_from(yaml, [read, get])
test("parse mapping") <- (
read("name: alice\nage: 30", DATA),
get(DATA, "name", "alice"),
get(DATA, "age", 30)
)
Documentation
License
MIT
Metadata
Release files for clausal-yaml 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 | |
|---|---|---|---|
| clausal_yaml-0.1.0.tar.gz | 12.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| clausal_yaml-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.7 kB
Release files / clausal_yaml-0.1.0.tar.gz
| Download URL | clausal_yaml-0.1.0.tar.gz |
|---|---|
| Size | 12.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
df287cda2ac166aca3783848669669ae465e536a79401e4bca5fd36397a45f06
|
|
BLAKE2b-256 checksum How to use checksums |
8c60e358ebba965450a0e770538008bd5adf58bd3c8bee336f92c30d0ab89c3e
|
| 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 7, 2026.
Transparency logRelease files / clausal_yaml-0.1.0-py3-none-any.whl
| Download URL | clausal_yaml-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bcd2c11b113b7cbeb2314a14ebfde0d2f87917f87930350ce0231d9c07655e2d
|
|
BLAKE2b-256 checksum How to use checksums |
e904dd875d6a3a473a78475ad95cd71ab58c770f49bf97937d044193af1ffc4c
|
| 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 7, 2026.
Transparency log