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.1.tar.gz (5.4 kB view details)

Uploaded Source

File details

Details for the file pycue-0.1.1.tar.gz.

File metadata

  • Download URL: pycue-0.1.1.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for pycue-0.1.1.tar.gz
Algorithm Hash digest
SHA256 49229da9163320dd276303edc356c849a0b931387c27615cd0b594fc95549a34
MD5 70090d5cb8af99ac219831e4a84133d1
BLAKE2b-256 74cd84ee98b3f6002fac7a2ca5b046bdef484e7d49de33ad46f70fdf2cbaea63

See more details on using hashes here.

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