streampipes / streampipes-client-python
AGENTS.md756 starsChanged 52 days agoApache-2.0View on GitHub
Applies to streampipes-client-python/. Root AGENTS.md applies for repository-wide rules; the Java/Maven build commands there do not apply here. - Poetry manages the environment: poetry install --with dev (add docs,stubs,deployment for everything). Install the hook once: poetry run pre-commit install (.pre-commit-config.yaml). - Python 3.8 compatibility is enforced (pyupgrade --py38). - flake8 with --max-line-length 120; black with line-length = 120 (pyproject.toml). - mypy on streampipes and tests ([tool.mypy] in pyproject.toml). - pytest --cov=streampipes --cov-fail-under=90 — coverage below 90 % fails the build.…
We split this AGENTS.md into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 33
Write unit tests alongside the change.
- Very specific: line 34
Every .py file carries the ASF license header.
≈ “Common” is an estimate: at least 1 in 5 of the 36,368 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS Guide (Python Client)
Scope
Applies to streampipes-client-python/. Root AGENTS.md applies for repository-wide
rules; the Java/Maven build commands there do not apply here.
Toolchain
- Poetry manages the environment:
poetry install --with dev(adddocs,stubs,deploymentfor everything). Install the hook once:poetry run pre-commit install(.pre-commit-config.yaml). - Python 3.8 compatibility is enforced (
pyupgrade --py38).
Gates (all enforced in CI and by the pre-commit hook)
make check # = make mypy + make lint + make unit-tests
make reformat-all # pyupgrade, autoflake, isort, black — run before committingflake8with--max-line-length 120;blackwithline-length = 120(pyproject.toml).mypyonstreampipesandtests([tool.mypy]inpyproject.toml).pytest --cov=streampipes --cov-fail-under=90— coverage below 90 % fails the build.interrogaterequires 100 % docstring coverage (fail-under = 100); every public module, class and function needs a docstring.
Conventions (from DEVELOPMENT.md)
- numpy-style docstrings; the mkdocs site (
make doc,make livedoc) is generated from them. - Mirror the Java client's API (
streampipes-client/.../StreamPipesClient.java) so the clients stay consistent. - Write unit tests alongside the change; the 90 % gate is per run, not per file.
- Every
.pyfile carries the ASF license header.
Layout
streampipes/— package source;tests/— unit tests;docs/+mkdocs.yml— site.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 28,693 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository22 other files it gives its agents.
- AGENTS.mdAGENTS.md
- streampipes-client-go/AGENTS.mdAGENTS.md
- streampipes-extensions/AGENTS.mdAGENTS.md
- streampipes-pipeline-management/AGENTS.mdAGENTS.md
- streampipes-resource-management/AGENTS.mdAGENTS.md
- streampipes-rest/AGENTS.mdAGENTS.md
- streampipes-service-core/AGENTS.mdAGENTS.md
- streampipes-storage-couchdb/AGENTS.mdAGENTS.md
- streampipes-user-management/AGENTS.mdAGENTS.md
- ui/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- streampipes-client-go/CLAUDE.mdCLAUDE.md
- streampipes-client-python/CLAUDE.mdCLAUDE.md
- streampipes-extensions/CLAUDE.mdCLAUDE.md
- streampipes-pipeline-management/CLAUDE.mdCLAUDE.md
- streampipes-resource-management/CLAUDE.mdCLAUDE.md
- streampipes-rest/CLAUDE.mdCLAUDE.md
- streampipes-service-core/CLAUDE.mdCLAUDE.md
- streampipes-storage-couchdb/CLAUDE.mdCLAUDE.md
- streampipes-user-management/CLAUDE.mdCLAUDE.md
- ui/CLAUDE.mdCLAUDE.md
- security-triageSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

