Skip to main content

Use YAML 1.3 Features in PyYAML (YAML 1.1)

Project description

Synopsis

import yaml
from yamlfuture import Loader

Loader.anchors = {'name': 'YAML'}

stream = """\
---
greeting: !+ |
  Hello {*name}.
  Welcome to the future!
copyright: !+import [../data.yaml, /copyright/year]

"""

print(yaml.dump(yaml.load(stream, Loader))

Status

This module is very ALPHA.

YAML 1.3 is still being defined. As the various features of the YAML 1.3 evolve, yamlfuture will evolve.

Use with caution for now.

Description

YAML 1.3 is bringing exciting new features to YAML (while keeping the YAML you know and love (or hate) the same).

This package lets you use the new features (or close approximations) in PyYAML now.

This is a very early release. More features and documentation coming soon.

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

pyyaml-future-0.0.2.tar.gz (4.7 kB view details)

Uploaded Source

File details

Details for the file pyyaml-future-0.0.2.tar.gz.

File metadata

  • Download URL: pyyaml-future-0.0.2.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.8.5

File hashes

Hashes for pyyaml-future-0.0.2.tar.gz
Algorithm Hash digest
SHA256 978f1337fd5be352f80a5ab3fd80e9cc431ffd7ac187b170b3e2f1b6b1582128
MD5 cf70e77130ae470b15760804e41c42b0
BLAKE2b-256 09414ca3eac38d3ad9208d7e94068ddc98fc91647272911410de6b5409365e03

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