Metadata-Version: 2.4
Name: pyvolca
Version: 0.1.0
Summary: Python client for VoLCA — Life Cycle Assessment engine
Author-email: Christophe Combelles <ccomb@free.fr>
License-Expression: MIT
Project-URL: Repository, https://github.com/ccomb/volca/tree/main/pyvolca
Classifier: Development Status :: 3 - Alpha
Classifier: Topic :: Scientific/Engineering
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests>=2.28
Provides-Extra: dev
Requires-Dist: pytest; extra == "dev"
Dynamic: license-file

# pyvolca

Python client for [VoLCA](https://github.com/ccomb/volca), a Life Cycle Assessment engine.

## Install

```bash
pip install pyvolca
```

## Quick start

```python
from volca import Client

c = Client(db="agribalyse-3.2", password="1234")

# Search activities
plants = c.search_activities(name="at plant")

# Supply chain
chain = c.get_supply_chain(plants[0].process_id, name="at farm")

# LCIA with substitutions (Sherman-Morrison rank-1 updates)
subs = [{"from": old_pid, "to": new_pid, "consumer": consumer_pid}]
result = c.get_lcia(pid, method_id, substitutions=subs)
```

## License

MIT
