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.1

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.1
File Size Uploaded
lazyscribe_yaml-0.2.1.tar.gz 4.3 kB Details

Built distribution (wheel)

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

Total release size: 10.4 kB

Release files / lazyscribe_yaml-0.2.1.tar.gz

Download URL lazyscribe_yaml-0.2.1.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
5ae97bb094362979425e25f9198e7fd3301dd487d4628a433574a64c79b7ff6b
BLAKE2b-256 checksum
How to use checksums
9b86a3129b8bf9629c267b1bdcb829c6eb500cd8470304d3c7786ac69b526d17
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","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.1-py3-none-any.whl

Download URL lazyscribe_yaml-0.2.1-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f8641f1873b7ccd0a65028dbaacf8f4a320e3b51fc2894b4bfd5f6b97c8df87d
BLAKE2b-256 checksum
How to use checksums
6f17469d7b63d5253815e8edda13889a8d7789a42ec9a7cd65aae3c60e90e653
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","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

This release

0.2.1 This release

2 release files

0.2.0

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