Skip to main content

License PyPI PyPI - Python Version codecov

YAML-based artifact handling for lazyscribe

lazyscribe-yaml is a lightweight package that adds the following artifact handlers for lazyscribe:

  • yaml — backed by PyYAML
  • yaml12 — backed by py-yaml12, a YAML 1.2-compliant parser with fewer footguns and no transitive dependencies

Installation

Python 3.10 or above is required. Use pip to install:

$ python -m pip install lazyscribe-yaml

Both handlers are included by default; no extras are required.

Usage

To use this library, simply log an artifact to a lazyscribe experiment or repository with handler="yaml" or handler="yaml12".

yaml handler (PyYAML)

from lazyscribe import Project

project = Project("project.json", mode="w")
with project.log("My experiment") as exp:
    exp.log_artifact(name="feature-names", value=["a", "b", "c"], handler="yaml")

project.save()

yaml12 handler (py-yaml12)

The yaml12 handler uses py-yaml12, which follows the YAML 1.2 specification. This avoids common PyYAML pitfalls such as unquoted booleans (yes/no/on/off) and octal literals being misinterpreted.

from lazyscribe import Project

project = Project("project.json", mode="w")
with project.log("My experiment") as exp:
    exp.log_artifact(name="feature-names", value=["a", "b", "c"], handler="yaml12")

project.save()

Metadata

Release files for lazyscribe-yaml 0.2.0

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

Source distribution (sdist)

Source distribution for lazyscribe-yaml 0.2.0
File Size Uploaded
lazyscribe_yaml-0.2.0.tar.gz 4.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lazyscribe-yaml 0.2.0
File Interpreter ABI Platform
lazyscribe_yaml-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.4 kB

Release files / lazyscribe_yaml-0.2.0.tar.gz

Download URL lazyscribe_yaml-0.2.0.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
bccec9377ab72b9ace62829de54d1f26afa0ba9c5df1df16b14c956ff45e32ba
BLAKE2b-256 checksum
How to use checksums
0bc0e3db8cdf50c337e0a1ca8f3ad43976310ad4117522900733e9f67bb62182
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / lazyscribe_yaml-0.2.0-py3-none-any.whl

Download URL lazyscribe_yaml-0.2.0-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9db8c679eda599ed137b8191893aacaf0c33ff0bf8deab81d1cc350df0667208
BLAKE2b-256 checksum
How to use checksums
e88f6fba762acc27b0a7f0786e6f67e052cfbbc8c14c28f556346c5fce8a0cef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

0.2.1

2 release files

This release

0.2.0 This release

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.1

2 release files

0.1.0

2 release files

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