Python client for Gravitate's Demand & Supply optimization models
Project description
gravi-model-client
Python client for Gravitate's demand and supply optimization models.
Installation
pip install gravi-model-client
Usage
from gravi_model_client import GraviModelClient, ModelRunRequest, OptimizationInput
with GraviModelClient(api_key="your-api-key", base_url="https://...") as client:
# Health check
client.health_check()
# Run demand model
result = client.run_demand_model(request)
# Run TSD (supply) model
result = client.run_tsd_model(optimization)
Project details
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 gravi_model_client-0.1.1.tar.gz.
File metadata
- Download URL: gravi_model_client-0.1.1.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8637e5aab8857ab3bea4c61faf7e959e2c6b833d925fc91c1e6d4c8f8d9fcf7
|
|
| MD5 |
1626ed64dfa9bfcce823ad91cc7a9e23
|
|
| BLAKE2b-256 |
680526bb2befaa51bd1de353375d8b81558254e9f285b666229926e504f6db9a
|
Provenance
The following attestation bundles were made for gravi_model_client-0.1.1.tar.gz:
Publisher:
publish-gravi-model-client.yml on gravitate-energy/demand_only_model
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gravi_model_client-0.1.1.tar.gz -
Subject digest:
a8637e5aab8857ab3bea4c61faf7e959e2c6b833d925fc91c1e6d4c8f8d9fcf7 - Sigstore transparency entry: 977248924
- Sigstore integration time:
-
Permalink:
gravitate-energy/demand_only_model@39570624aa67c6fecad73c7b95d7c7fce9ac28cc -
Branch / Tag:
refs/tags/gravi-model-client-patch - Owner: https://github.com/gravitate-energy
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-gravi-model-client.yml@39570624aa67c6fecad73c7b95d7c7fce9ac28cc -
Trigger Event:
push
-
Statement type:
File details
Details for the file gravi_model_client-0.1.1-py3-none-any.whl.
File metadata
- Download URL: gravi_model_client-0.1.1-py3-none-any.whl
- Upload date:
- Size: 12.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5cd247c54436318be4f055ab20d84124b98c4c4b5f274af49d659b4caab81124
|
|
| MD5 |
e6cf1bf854d383a19620fb1bb9af049a
|
|
| BLAKE2b-256 |
6dcaa3eb352f1cd308f4c9f5c3192ee534a699c96f4db92361a6a7b9c46ebf75
|
Provenance
The following attestation bundles were made for gravi_model_client-0.1.1-py3-none-any.whl:
Publisher:
publish-gravi-model-client.yml on gravitate-energy/demand_only_model
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gravi_model_client-0.1.1-py3-none-any.whl -
Subject digest:
5cd247c54436318be4f055ab20d84124b98c4c4b5f274af49d659b4caab81124 - Sigstore transparency entry: 977248936
- Sigstore integration time:
-
Permalink:
gravitate-energy/demand_only_model@39570624aa67c6fecad73c7b95d7c7fce9ac28cc -
Branch / Tag:
refs/tags/gravi-model-client-patch - Owner: https://github.com/gravitate-energy
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-gravi-model-client.yml@39570624aa67c6fecad73c7b95d7c7fce9ac28cc -
Trigger Event:
push
-
Statement type: