Python module for demography and agriculture-related GIS.
Project description
bw_hestia_bridge
Installation
You can install bw_hestia_bridge via [pip] from [PyPI]:
$ pip install bw_hestia_bridge
Functions
def search_hestia(element: str, filter_type) -> list[dict[str, str]]:
''' Search the Hestia database. '''
def get_hestia_node(node: dict[str, str]) -> dict:
''' Download the Hestia node associated to `node`. '''
def login_to_hestia(email: str, password: str) -> None:
''' Register to Hestia and set the token '''
def set_hestia_token(token: str) -> None:
''' Set the token to call the Hestia API '''
Using the Hestia API
API key for development: 6t7B6uAwwZYjF5SJKGwLz5XmArsz894N8gio1UKVrj9K
Programmatic overview: https://www.hestia.earth/docs/#overview
Swagger: https://api.hestia.earth/swagger/
API Base URL: https://api-staging.hestia.earth/
Get a basic JSON LD:
import requests
cycle_id = "help me!"
URL = "https://api-staging.hestia.earth/cycles/{cycle_id}/cycles"
requests.get(URL).json()
Contributing
Contributions are very welcome. To learn more, see the Contributor Guide.
License
Distributed under the terms of the MIT license, bw_hestia_bridge is free and open source software.
Issues
If you encounter any problems, please [file an issue] along with a detailed description.
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
bw_hestia_bridge-0.1.0.tar.gz
(7.2 kB
view hashes)
Built Distribution
Close
Hashes for bw_hestia_bridge-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6cb70bbdf0b75212daa87d3c904dc2a17b8eb699db372ba04058273170b6f337 |
|
MD5 | a8d851895a191607fcedb17c38e9c632 |
|
BLAKE2b-256 | 82e791cd8b01ea5c812af64420122162482f56bc51e2e021d0560cb3e6c9e698 |