Skip to main content

Python wrapper for https://cuelang.org

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pycue-0.1.2.tar.gz (6.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page