Skip to main content

Synopsis

import yaml
from yamlfuture import Loader

# Define your own anchors:
Loader.anchors = {'name': 'YAML'}
# !import relative to this:
Loader.filepath = __file__

yamlstream = """\
---
greeting: !+ |
  Hello {*name}.
  Welcome to the future!

copyright: !import [../data.yaml, /copyright/year]
"""

print(yaml.dump(yaml.load(yamlstream, 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.

Metadata

Release files for pyyaml-future 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyyaml-future 0.0.6
File Size Uploaded
pyyaml-future-0.0.6.tar.gz 5.4 kB Details

Release files / pyyaml-future-0.0.6.tar.gz

Download URL pyyaml-future-0.0.6.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
aeb6f8f2578c68927a68f56e9944a3a7b0912efa87e5a943c8d773e284b64eb0
BLAKE2b-256 checksum
How to use checksums
c6150630aef3d0dad37734f1e55cf5c6351a7d7f7589891d21ad5439bea9c135
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.10

Release history Release notifications | RSS feed

This release

0.0.6 This release

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page