A Python package for running the HOLOS 4.0 CLI.
Project description
PyHolos
A Python wrapper for the HOLOS 4.0 CLI - enabling estimations of Canadian agricultural greenhouse gas emissions.
Overview
PyHolos provides a Python interface to the HOLOS CLI, allowing you to:
- Launch HOLOS simulations from Python scripts
- Model farm systems with minimal input data (PyHolos estimates missing parameters)
- Generate structured input files for the HOLOS CLI
- Process and visualize simulation results
Features
- Farm Modeling: Support for livestock (beef, dairy, sheep) and land management systems (crops, carbon sequestration)
- Data Integration: Automatic integration with Soil Landscapes of Canada (SLC) data
- Flexible Input: Work with JSON configurations or pre-structured farm data
- Post-processing: Built-in tools for analyzing and plotting simulation results
Requirements
- Python >= 3.12
- Dependencies:
geojson,shapely,pandas,pydantic
Installation
For detailed installation instructions including prerequisites (Git, conda, PyCharm setup), see the documentation.
Quick Start
from pathlib import Path
from pyholos import launching
# Launch HOLOS using a JSON farm configuration
launching.launch_holos(
path_dir_farms=Path('path/to/farm_data'),
name_farm_json='farm.json',
path_dir_outputs=Path('path/to/outputs'),
id_slc_polygon=851003
)
See the examples directory for more usage patterns.
Documentation
Full documentation is available in the documentation directory. Build it locally using Sphinx or refer to individual .rst files for:
License
This project is licensed under the terms specified in LICENSE.
Contributing
Contributions are welcome! Please submit issues and pull requests via the GitHub repository.
Support
For questions or issues, please open an issue on the issue tracker.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyholos-0.3.1.tar.gz.
File metadata
- Download URL: pyholos-0.3.1.tar.gz
- Upload date:
- Size: 97.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
35adb7f23c494f189cdc38f5b15cbc06cbd9c40dc3da3237d6d344be2884d192
|
|
| MD5 |
bd1dfa87acc29e3d722f0d0ee31b7a33
|
|
| BLAKE2b-256 |
db767889ac60a4c40669610c460b7a5e28e236bbe45286ccb600ad099922dacb
|
Provenance
The following attestation bundles were made for pyholos-0.3.1.tar.gz:
Publisher:
main.yml on holos-aafc/pyholos
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyholos-0.3.1.tar.gz -
Subject digest:
35adb7f23c494f189cdc38f5b15cbc06cbd9c40dc3da3237d6d344be2884d192 - Sigstore transparency entry: 848933901
- Sigstore integration time:
-
Permalink:
holos-aafc/pyholos@05da1660d8d08e17aa43c5a01c4cb4e21522e3c3 -
Branch / Tag:
refs/tags/v0.3.1 - Owner: https://github.com/holos-aafc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
main.yml@05da1660d8d08e17aa43c5a01c4cb4e21522e3c3 -
Trigger Event:
push
-
Statement type:
File details
Details for the file pyholos-0.3.1-py3-none-any.whl.
File metadata
- Download URL: pyholos-0.3.1-py3-none-any.whl
- Upload date:
- Size: 97.4 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61c4179e21ba3e30bc021e8216a221498139df0893c49400b96f289a358a844f
|
|
| MD5 |
c88ee77b120529e7a78823c54630902a
|
|
| BLAKE2b-256 |
e7f27ed2c9fd2943cb2a9ed22ccec882e98ff16808b06b49ba9c9669e40774d7
|
Provenance
The following attestation bundles were made for pyholos-0.3.1-py3-none-any.whl:
Publisher:
main.yml on holos-aafc/pyholos
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyholos-0.3.1-py3-none-any.whl -
Subject digest:
61c4179e21ba3e30bc021e8216a221498139df0893c49400b96f289a358a844f - Sigstore transparency entry: 848933904
- Sigstore integration time:
-
Permalink:
holos-aafc/pyholos@05da1660d8d08e17aa43c5a01c4cb4e21522e3c3 -
Branch / Tag:
refs/tags/v0.3.1 - Owner: https://github.com/holos-aafc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
main.yml@05da1660d8d08e17aa43c5a01c4cb4e21522e3c3 -
Trigger Event:
push
-
Statement type: