Metadata-Version: 2.1
Name: pycue
Version: 0.1.2
Summary: Python wrapper for https://cuelang.org
Home-page: https://github.com/tebeka/cue
Author: Miki Tebeka
Author-email: miki@353solutions.com
License: MIT
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: MacOS
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Software Development :: Libraries
Description-Content-Type: text/markdown
License-File: LICENSE.txt

# pycue - Python Wrapper for https://cuelang.org

![cue](https://github.com/tebeka/cue/workflows/cue/badge.svg)

**Alpha release - use at your own risk**


## Examples

```python

import cue
import yaml

# Use over files
cue.vet.files('schema.cue', 'data.yml')  # Will raise cue.Error on errors

# Use Validator
with open('data.yml') as fp:
    obj = yaml.safe_load(fp)

v = cue.Validator.from_file('schema.cue')
v.validate(obj)
```

## Install

`python -m pip install pycue`

This library uses the `cue` command line utility and will fail if it's not found in PATH.
You can set the `CUE_EXE` environment variable if you have non-standard `cue` install.

Run `cue.check_install()` to validate installation.
