Metadata-Version: 2.4
Name: phytkit
Version: 0.1.0
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Rust
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
License-File: LICENSE
Summary: Plant physiology model fitting: photosynthesis, stomatal conductance, hydraulics and soil water retention.
Keywords: plant physiology,photosynthesis,FvCB,stomatal conductance,curve fitting,LI-6800,LI-600
Author: PlantSimulationLab
License: MIT
Requires-Python: >=3.9
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Documentation, https://plantsimulationlab.github.io/PhytKit/
Project-URL: Issues, https://github.com/PlantSimulationLab/PhytKit/issues
Project-URL: Source, https://github.com/PlantSimulationLab/PhytKit

# PhytKit

Plant physiology model fitting, written in Rust: photosynthesis (FvCB C3 and C4, empirical light
response), stomatal conductance (BTA, Medlyn), xylem vulnerability, pressure–volume curves, soil
water retention, and LI-600 porometer tools.

```bash
pip install phytkit
```

This installs the `phytkit` Python package and the `pk` command-line tool. Both return the same
JSON.

```bash
pk describe fvcb
pk fit photosynthesis leaf.csv --model fvcb
pk fit soil soil.csv --group-by sample --units kPa
pk li600 correct porometer.csv --sidedness 1.5
```

```python
import phytkit as pk

pk.fit("photosynthesis", "leaf.csv", model="fvcb", fix=["gm"], max_iter=400)  # same as `pk fit`
pk.fit_arrays("fvcb", {"Ci": ci, "Q": q, "T": t_kelvin}, a)                   # data in memory
pk.fit_many("fvcb", [(x1, y1), (x2, y2)], threads=8)                        # parallel batch
pk.predict("fvcb", {"Vcmax25": 90}, {"Ci": ci, "Q": q, "T": t_kelvin})
```

Failures raise `phytkit.PhytKitError`, with a stable `.code` and a `.hint`.

- Documentation: <https://plantsimulationlab.github.io/PhytKit/>
- Source and issues: <https://github.com/PlantSimulationLab/PhytKit>

MIT licensed.

