Skip to main content Switch to mobile version agent-first-data 0.39.1 A naming convention that lets AI agents understand your data without being told what it means, plus the afdata CLI and a Rust library for reading Markdown structure and safely editing structured JSON, TOML, YAML, dotenv, and INI documents.
pip install agent-first-data==0.39.1 Copy PIP instructions
pip install agent-first-data from agent_first_data import json_result, render, OutputFormat value = json_result( { "api_key_secret": "sk-123", "latency_ms": 1280, "db_url": "postgres://user:p@ss@db/app?token_secret=abc", } ).build() print(render(value, OutputFormat.JSON)) print(render(value, OutputFormat.PLAIN)) Useful names use Python casing: render (the single value x format x options -> str entry point; takes an OutputFormat and an optional keyword-only options=), redacted_value, redact_url_secrets, redact_urls_in_text, redact_argv, normalize_utc_offset, is_valid_rfc3339_date, is_valid_rfc3339_time, is_valid_rfc3339, is_valid_bcp47, cli_parse_output, build_cli_error, build_cli_version, cli_parse_log_filters, CliEmitter, decode_protocol_event.
OutputOptions(reveal_names=...) reveals exact structured field names at the selected output boundary. Children still pass through redaction; URL parameters and argv receive no exemption.
The protocol reader accepts base-profile events. An absent error.retryable remains nullable; strict validation is a separate opt-in.
Default redaction replaces every _secret or configured secret-name subtree with ***, including objects and arrays.
_url fields scrub userinfo passwords and secret-named query parameters; surrounding whitespace is trimmed, and internal whitespace or a :// that is not the start of a clean URL redacts the whole field, where whitespace is the explicit Unicode White_Space set the spec enumerates, not the language's native predicate.
OutputOptions.url_names applies URL treatment to exact legacy field names and recurses through collections. redact_urls_in_text is explicit and scans only complete scheme URLs, never arbitrary prose secrets.
YAML keeps original keys and values (structure-preserving, like JSON), sorting keys by UTF-16 code unit order and quoting/escaping unsafe keys and string scalars. Plain strips formatting suffixes, formats values, sorts the same way, and renders nested objects/arrays as canonical JSON; it quotes a value only when it contains ASCII space, tab, newline, carriage return, form feed, vertical tab, NBSP, =, ", or \, and escapes \, ", newline, carriage return, tab, form feed, and vertical tab inside the quotes.
Logging records use kind:"log" with a nested log payload and a separate level field, so error-level logs are not terminal protocol errors.
build_cli_error(message, hint?) returns a strict-ready CLI error with error.retryable:false and trace:{}.
Do not add a raw version/help pre-parser. This SDK provides emitters and readers; argv and lifecycle parsing belong to the application. Claim help-v2 or closed-world compatibility only when using a registry compiler.
Formal cross-language contract: spec/agent-first-data.md
Conformance fixtures: spec/fixtures
Agent skill: skills/agent-first-data/SKILL.md
Released: Nov 28, 2026
MIT View SPDX License List
Release files for agent-first-data 0.39.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 94.2 kB
Release files / agent_first_data-0.39.1.tar.gz
Release files / agent_first_data-0.39.1-py3-none-any.whl
Security for agent-first-data 0.39.1
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Release history Release notifications | RSS feed
Nov 28, 2026 2 release files No provenance
Nov 18, 2026 2 release files No provenance
Nov 9, 2026 2 release files No provenance
Oct 31, 2026 2 release files No provenance
Oct 30, 2026 2 release files No provenance
Oct 29, 2026 2 release files No provenance
Oct 7, 2026 2 release files No provenance
Aug 22, 2026 2 release files No provenance
Aug 11, 2026 2 release files No provenance
Aug 7, 2026 2 release files No provenance
Aug 4, 2026 2 release files No provenance
Aug 3, 2026 2 release files No provenance
Aug 2, 2026 2 release files No provenance
Aug 1, 2026 2 release files No provenance
Jul 29, 2026 2 release files No provenance
Jul 28, 2026 2 release files No provenance
Jul 27, 2026 2 release files No provenance
Jul 22, 2026 2 release files No provenance
Jul 21, 2026 2 release files No provenance
Jul 19, 2026 2 release files No provenance
Jul 18, 2026 2 release files No provenance
Jul 17, 2026 2 release files No provenance
Jul 16, 2026 2 release files No provenance
Jul 15, 2026 2 release files No provenance
Jul 14, 2026 2 release files No provenance
Jul 12, 2026 2 release files No provenance
Jul 2, 2026 2 release files No provenance
Jun 19, 2026 2 release files No provenance
Jun 17, 2026 2 release files No provenance
Jun 13, 2026 2 release files No provenance
Jun 11, 2026 2 release files No provenance
Jun 10, 2026 2 release files No provenance
Jun 7, 2026 2 release files No provenance
Jun 5, 2026 2 release files No provenance
Jun 3, 2026 2 release files No provenance
Jun 2, 2026 2 release files No provenance
May 25, 2026 2 release files No provenance
May 24, 2026 2 release files No provenance
May 22, 2026 2 release files No provenance
Mar 26, 2026 2 release files No provenance
Mar 11, 2026 2 release files No provenance
Mar 10, 2026 2 release files No provenance
Mar 8, 2026 2 release files No provenance
Mar 6, 2026 2 release files No provenance
Feb 27, 2026 2 release files No provenance
Feb 20, 2026 2 release files No provenance
Feb 19, 2026 2 release files No provenance
Feb 17, 2026 2 release files No provenance
Feb 16, 2026 2 release files No provenance
Feb 15, 2026 2 release files No provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation
Deployed from fc0d8e6











