Metadata-Version: 2.1
Name: phytograph
Version: 0.99.0.post1
Summary: Headless Python scripting API for Phytograph (LiDAR point clouds and plant architecture).
License: MIT
Requires-Python: >=3.9
Requires-Dist: httpx>=0.24
Requires-Dist: numpy>=1.22
Provides-Extra: progress
Requires-Dist: tqdm; extra == "progress"
Provides-Extra: test
Requires-Dist: pytest; extra == "test"
Description-Content-Type: text/markdown

# phytograph (Python)

A headless scripting API for [Phytograph](https://plantsimulationlab.github.io/Phytograph/).
It needs only `httpx` and `numpy`. The processing itself runs in the backend that the
installed Phytograph app ships with.

```python
import phytograph as pg

with pg.Backend(progress=True) as be:
    cloud = be.open("plot.laz")
    cloud.crop([0, 0, -5], [20, 20, 40])
    cloud.export("plot-cropped.laz")
```

```bash
pip install phytograph
```

The desktop app doesn't need to be installed. On first use the package downloads the
matching processing engine (about 400 MB, verified, cached per user). Run
`python -m phytograph download` to fetch it ahead of time. If a Phytograph app of the
same version is installed, its engine is used instead. See
[Scripting with Python](https://plantsimulationlab.github.io/Phytograph/guide/scripting/) for
the user guide, and `docs/docs/developers/architecture/scripting-client.md` for how it works.

**AI coding agents.** The package ships an agent skill that matches its version.
Run `python -m phytograph agent-files` in your project to write an `AGENTS.md` (and a
`CLAUDE.md` that imports it) for Claude Code, Codex and Cursor, or
`python -m phytograph skills install` to copy the skill into `.claude/skills/`.

Run the tests with `npm run test:python` from the repo root. They launch a real backend.
