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 details)

Uploaded Source

File details

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

File metadata

  • Download URL: pycue-0.1.2.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for pycue-0.1.2.tar.gz
Algorithm Hash digest
SHA256 c587f3d80ff6c67f035903ead6e8f988c9833a7180b90522a7d9796701d00b7a
MD5 dc1bdcf8ff279f3325288c3213b9a6b6
BLAKE2b-256 9e65529f61ae1fdb032cf36c8c459b298130ebc219eb5d2e051caeb4cc2e9161

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