agent-readable 0.3.0__tar.gz → 0.3.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. {agent_readable-0.3.0 → agent_readable-0.3.1}/CHANGELOG.md +11 -1
  2. {agent_readable-0.3.0 → agent_readable-0.3.1}/PKG-INFO +2 -2
  3. {agent_readable-0.3.0 → agent_readable-0.3.1}/README.md +1 -1
  4. {agent_readable-0.3.0 → agent_readable-0.3.1}/docs/getting-started.md +34 -12
  5. {agent_readable-0.3.0 → agent_readable-0.3.1}/pyproject.toml +1 -1
  6. {agent_readable-0.3.0 → agent_readable-0.3.1}/.github/workflows/ci.yml +0 -0
  7. {agent_readable-0.3.0 → agent_readable-0.3.1}/.github/workflows/publish.yml +0 -0
  8. {agent_readable-0.3.0 → agent_readable-0.3.1}/.gitignore +0 -0
  9. {agent_readable-0.3.0 → agent_readable-0.3.1}/LICENSE +0 -0
  10. {agent_readable-0.3.0 → agent_readable-0.3.1}/docs/agent_help_vs_help.gif +0 -0
  11. {agent_readable-0.3.0 → agent_readable-0.3.1}/docs/authoring.md +0 -0
  12. {agent_readable-0.3.0 → agent_readable-0.3.1}/docs/benchmark.md +0 -0
  13. {agent_readable-0.3.0 → agent_readable-0.3.1}/docs/examples.md +0 -0
  14. {agent_readable-0.3.0 → agent_readable-0.3.1}/docs/faq.md +0 -0
  15. {agent_readable-0.3.0 → agent_readable-0.3.1}/docs/why.md +0 -0
  16. {agent_readable-0.3.0 → agent_readable-0.3.1}/examples/any_class.py +0 -0
  17. {agent_readable-0.3.0 → agent_readable-0.3.1}/examples/duck_type.py +0 -0
  18. {agent_readable-0.3.0 → agent_readable-0.3.1}/examples/modules_and_functions.py +0 -0
  19. {agent_readable-0.3.0 → agent_readable-0.3.1}/examples/sqlite_connection.py +0 -0
  20. {agent_readable-0.3.0 → agent_readable-0.3.1}/examples/temperature.py +0 -0
  21. {agent_readable-0.3.0 → agent_readable-0.3.1}/scripts/benchmark.py +0 -0
  22. {agent_readable-0.3.0 → agent_readable-0.3.1}/src/agent_readable/__init__.py +0 -0
  23. {agent_readable-0.3.0 → agent_readable-0.3.1}/src/agent_readable/__main__.py +0 -0
  24. {agent_readable-0.3.0 → agent_readable-0.3.1}/src/agent_readable/_model.py +0 -0
  25. {agent_readable-0.3.0 → agent_readable-0.3.1}/src/agent_readable/_protocol.py +0 -0
  26. {agent_readable-0.3.0 → agent_readable-0.3.1}/src/agent_readable/_render.py +0 -0
  27. {agent_readable-0.3.0 → agent_readable-0.3.1}/src/agent_readable/py.typed +0 -0
  28. {agent_readable-0.3.0 → agent_readable-0.3.1}/tests/__init__.py +0 -0
  29. {agent_readable-0.3.0 → agent_readable-0.3.1}/tests/test_cli.py +0 -0
  30. {agent_readable-0.3.0 → agent_readable-0.3.1}/tests/test_protocol.py +0 -0
@@ -7,6 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.3.1] - 2026-08-23
11
+
12
+ ### Documentation
13
+
14
+ - Restructured the getting-started one-off CLI section into two parallel
15
+ series, uv and pip, each with a one-off command and a repeated-use install,
16
+ and added a "Your own project" section for documenting project-local
17
+ targets.
18
+
10
19
  ## [0.3.0] - 2026-08-23
11
20
 
12
21
  ### Added
@@ -134,7 +143,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
134
143
  `AgentReadableMixin`, `__agent_notes__` accumulation across the MRO, module
135
144
  support, and the `python -m agent_readable` CLI.
136
145
 
137
- [Unreleased]: https://github.com/zydo/agent-readable/compare/v0.3.0...HEAD
146
+ [Unreleased]: https://github.com/zydo/agent-readable/compare/v0.3.1...HEAD
147
+ [0.3.1]: https://github.com/zydo/agent-readable/compare/v0.3.0...v0.3.1
138
148
  [0.3.0]: https://github.com/zydo/agent-readable/compare/v0.2.1...v0.3.0
139
149
  [0.2.1]: https://github.com/zydo/agent-readable/compare/v0.2.0...v0.2.1
140
150
  [0.1.2]: https://github.com/zydo/agent-readable/compare/v0.1.1...v0.1.2
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: agent-readable
3
- Version: 0.3.0
3
+ Version: 0.3.1
4
4
  Summary: A lightweight Python protocol for agent-oriented documentation
5
5
  Project-URL: Repository, https://github.com/zydo/agent-readable
6
6
  Project-URL: Issues, https://github.com/zydo/agent-readable/issues
@@ -46,7 +46,7 @@ npx skills add zydo/skills --skill agent-readable
46
46
 
47
47
  ## Quickstart
48
48
 
49
- See [Getting started](docs/getting-started.md) for installation, one-off CLI usage with `uvx`, `uv tool run`, or `pipx`, and full CLI examples.
49
+ See [Getting started](docs/getting-started.md) for installation and one-off CLI usage in two parallel series — uv and pip.
50
50
 
51
51
  ```python
52
52
  from agent_readable import agent_help
@@ -19,7 +19,7 @@ npx skills add zydo/skills --skill agent-readable
19
19
 
20
20
  ## Quickstart
21
21
 
22
- See [Getting started](docs/getting-started.md) for installation, one-off CLI usage with `uvx`, `uv tool run`, or `pipx`, and full CLI examples.
22
+ See [Getting started](docs/getting-started.md) for installation and one-off CLI usage in two parallel series — uv and pip.
23
23
 
24
24
  ```python
25
25
  from agent_readable import agent_help
@@ -16,29 +16,35 @@ Requires Python 3.10+. No runtime dependencies.
16
16
 
17
17
  ## One-off CLI use
18
18
 
19
- If you only want to print readable documentation for a Python target and do not want to add `agent-readable` to the current environment, run it in a temporary tool environment:
19
+ Two parallel series — pick whichever matches your tooling. Each one-off command creates an isolated tool environment on first use, caches it for instant repeat runs, and never touches the current environment. Replace `sqlite3:Connection` with any importable class, module, function, or method.
20
20
 
21
- The examples below use `sqlite3:Connection` as the target; replace it with any importable class, module, function, or method.
22
-
23
- With `uvx`:
21
+ ### uv series
24
22
 
25
23
  ```bash
26
- uvx --from agent-readable agent-readable sqlite3:Connection
27
- ```
24
+ # One-off — isolated tool environment, cached by uv
25
+ uvx agent-readable sqlite3:Connection
28
26
 
29
- With `uv tool run`:
27
+ # One-off for a third-party package — --with adds it to the environment
28
+ uvx --with requests agent-readable requests:Session
30
29
 
31
- ```bash
32
- uv tool run --from agent-readable agent-readable sqlite3:Connection
30
+ # Repeated use — install once, then run the bare command
31
+ uv tool install agent-readable
32
+ agent-readable sqlite3:Connection
33
33
  ```
34
34
 
35
- With `pipx`:
35
+ ### pip series
36
36
 
37
37
  ```bash
38
+ # One-off — pipx builds and caches an isolated environment
38
39
  pipx run --spec agent-readable agent-readable sqlite3:Connection
39
- ```
40
40
 
41
- `uvx` is shorthand for `uv tool run`, and `python -m agent_readable` works identically wherever the package is installed. These commands are useful for standard-library targets and packages available inside the temporary environment. For your own project classes, run from an environment where that project is importable.
41
+ # Repeated use — install once with pipx (isolated, on PATH)
42
+ pipx install agent-readable
43
+ agent-readable sqlite3:Connection
44
+
45
+ # Plain pip — persistent install into any environment you choose
46
+ pip install agent-readable
47
+ ```
42
48
 
43
49
  To let your coding agent automatically call `agent_help()` before using an unfamiliar API, install the companion skill:
44
50
 
@@ -46,6 +52,22 @@ To let your coding agent automatically call `agent_help()` before using an unfam
46
52
  npx skills add zydo/skills --skill agent-readable
47
53
  ```
48
54
 
55
+ ## Your own project
56
+
57
+ The one-off environments above cannot import your own project's code. Run the CLI from an environment where the project is importable:
58
+
59
+ ```bash
60
+ uv add --dev agent-readable
61
+ uv run agent-readable my_package.temperature:CalibratedSensor
62
+ ```
63
+
64
+ Or with pip, install into the project's environment and run the bare command:
65
+
66
+ ```bash
67
+ pip install agent-readable
68
+ agent-readable my_package.temperature:CalibratedSensor
69
+ ```
70
+
49
71
  ## Quickstart
50
72
 
51
73
  `agent_help()` works on any Python class, module, function, or method with no opt-in required. Point it at a stdlib class:
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "agent-readable"
7
- version = "0.3.0"
7
+ version = "0.3.1"
8
8
  description = "A lightweight Python protocol for agent-oriented documentation"
9
9
  readme = "README.md"
10
10
  license = "MIT"
File without changes