Skip to content

tebeka/pycue

Repository files navigation

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

cue

Alpha release - use at your own risk

Examples

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.

About

No description, website, or topics provided.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE
MIT
LICENSE.txt

Stars

Watchers

Forks

Packages

No packages published