Skip to main content

Hestia's set of modules for creating structured data models from LCA observations and evaluating biogeochemical aspects of specific farming cycles

Project description

Hestia Calculation Engine

Hestia's set of modules for creating structured data models from LCA observations and evaluating biogeochemical aspects of specific farming cycles

Install

  1. Install the module:
pip install hestia_earth.calculation
  1. Download the latest data:
curl https://gitlab.com/hestia-earth/hestia-calculation-engine/-/raw/master/scripts/download_data.sh?inline=false -o download_data.sh && chmod +x download_data.sh
# pip default install directory is /usr/local/lib/python<version>/site-packages
./download_data.sh <API_URL> <SEARCH_URL> <pip install directory>

To use the production-ready version of the data, please use API_URL=https://api.hestia.earth and SEARCH_URL=https://search.hestia.earth. For development version, please contact us at community@hestia.earth

Usage

from hestia_earth.calculation import CalculationEngine

# cycle is a JSONLD node cycle
# site can be provided separately or included in the Cycle
engine.import_data(cycle, site)
engine.run()
# retrieve the calculated cycle
engine.export_data()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for hestia-earth.calculation, version 0.0.11
Filename, size File type Python version Upload date Hashes
Filename, size hestia_earth.calculation-0.0.11-py3-none-any.whl (139.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size hestia_earth.calculation-0.0.11.tar.gz (94.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page