Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

Hestia Engine Orchestrator

Orchestrate your different models to run on a Cycle, an ImpactAssessment or a Site.

Install

  1. Install the library:
pip install hestia_earth.orchestrator

You can now install your own models or follow the steps below to use the default Hestia models.

Install the Hestia Models

If you want to use the hestia default models, follow these steps:

  1. Install the library:
pip install hestia_earth_models
  1. Install the config library:
pip install hestia_earth_config

Using your own models

You can create your own models in addition (or instead of) the default set of models provided by Hestia.

The model needs to expose only one method:

def run(key: str, data): ...

It will be given the data that has been given to the orchestrator, i.e. by calling:

from hestia_earth.orchestrator import run

my_data = {'@type': 'Cycle', 'inputs': []}
config = {
  "models": [{
    "key": "inputs",
    "model": "my_model",
    "value": "my_model_value",
    "runStrategy": "add_if_missing_key"
  }]
}
run(my_data, config)

Will be calling in your own model my_model.py:

def run('my_model_value', my_data: dict): ...

Usage

# will work with either Cycle or Site
from hestia_earth.orchestrator import run
from hestia_earth.config import load_config

# cycle is a JSONLD node cycle
cycle = {'@type': 'Cycle', ...}
result = run(cycle, load_config(cycle))
print(result)

Metadata

Release files for hestia-earth-orchestrator 0.6.20

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hestia-earth-orchestrator 0.6.20
File Size Uploaded Provenance Actions
hestia-earth-orchestrator-0.6.20.tar.gz 16.6 kB Without provenance Details for hestia-earth-orchestrator-0.6.20.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hestia-earth-orchestrator 0.6.20
File Interpreter ABI Platform Actions
hestia_earth_orchestrator-0.6.20-py3-none-any.whl Python 3 none any Details for hestia_earth_orchestrator-0.6.20-py3-none-any.whl

Total release size: 41.1 kB

Release files / hestia-earth-orchestrator-0.6.20.tar.gz

Download URL hestia-earth-orchestrator-0.6.20.tar.gz
Size 16.6 kB
Tags Source
SHA-256 checksum
How to use checksums
385f944cb7322d86f2cc31df6fda7cc38e1e8d555fdd496665bfae71873f99f8
BLAKE2b-256 checksum
How to use checksums
9b8384698e752cedecdc547df7ce80ebb0eaf655497f773af979f2ed415fb8bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.9.21

Release files / hestia_earth_orchestrator-0.6.20-py3-none-any.whl

Download URL hestia_earth_orchestrator-0.6.20-py3-none-any.whl
Size 24.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
985f072d4a684e669d84f060c6d758cb508264ec3b3de15e496a66aa925cb23c
BLAKE2b-256 checksum
How to use checksums
fe36f769214b511ae1b3dbb1f75524a9a9440305f83c60d2454470dfb56d9914
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.9.21

Security for hestia-earth-orchestrator 0.6.20

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page