Metadata-Version: 2.4
Name: ymlplus
Version: 0.1.0
Summary: Validated YAML-readable profile with safe PyYAML I/O
Author-email: Jei Blanchard <jjb@bmail.club>
License-Expression: GPL-3.0-or-later
Keywords: config,configuration,data format,parser,serialization,yaml
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Text Processing :: Markup
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: PyYAML>=6.0.3
Provides-Extra: dev
Requires-Dist: pytest>=8; extra == "dev"
Requires-Dist: kinemata==0.1.1; extra == "dev"
Dynamic: license-file

# YamlPlus
> YAML, but better!

YamlPlus is a stricter version of YAML that produces documents that are valid both
in YAML And in the Yapyon format standard.


```yamlplus
# Example goes here
```

## Quick-Start Guide

Install the **`ymlplus`** distribution. Its Python import and console command
are still spelled **`yamlplus`**:
```sh
python -m pip install ymlplus
```

This distribution starts its independent version history at **0.1.0**. It is not
the unrelated `yamlplus` distribution on PyPI; use `pip install ymlplus`, not
`pip install yamlplus`. To install this source checkout instead, run
`python -m pip install .`.

_YamlPlus is also included in the Yapyon reference implementation._

It can be quickly tested, too:
```python
import yamlplus

assert yamlplus.loads('missing: None\nword: "None"\n') == {
    "missing": "None", "word": "None"}
assert yamlplus.normalize('yes: 1 # keep this comment\n') == (
    '"yes": 1 # keep this comment\n')
```

`yamlplus.check` validates source, `yamlplus.is_yamlplus` returns a predicate,
`yamlplus.load`/`loads` read data, `yamlplus.dump`/`dumps` write host values, and
`yamlplus.normalize` formats source while preserving comments.

```sh
python -m yamlplus settings.yaml
yamlplus --write --info settings.yaml
```

Reading uses PyYAML's safe native YAML interpretation after profile validation.
It does not decode bytes-looking strings or turn the YAML string `None` into
Python `None`. Writing also uses PyYAML, with profile-safe spellings and layout;
the complete output is validated before it is returned or written. See the
[binding guide](docs/FORMAT.md) for the unavoidable cross-reader differences.

The runtime has no Yapyon dependency, evaluator, contracts, slots, or full-language
parser. The test suite covers native YAML semantics, profile validation,
conforming output, comments, diagnostics, and the independent package boundary.

## Read More

- [Python binding guide](docs/FORMAT.md) — validation, native YAML I/O, output, and limits
- [Yapyon](https://github.com/doctorjei/yapyon) — the related format and reference implementation

## Diagnostic Terminology

This package uses conventional `warning:`, `error:`, and `info:` diagnostics.
Invalid source raises `yamlplus.ValidationError` with a source location when
available. Optional `warn=` and `info=` callbacks receive formatted messages;
callback failures propagate. The CLI displays warnings on stderr and enables
informational summaries with `--info`; payload output stays on stdout.
Warnings and information do not change validity or successful exit status.
