brightway-lca / bw_hestia_bridge

Consume the HESTIA API in Brightway
https://docs.brightway.dev/projects/hestiabridge/
MIT License
1 stars 0 forks source link

Proposed structure for to get data from hestia #6

Closed tfardet closed 1 year ago

tfardet commented 1 year ago
_hestia_api/
    __init__.py
    query.py
        search_hestia(element: str)
        get_hestia_node(node_id: str)
    credentials.py
        login_to_hestia(email: str, pwd: str)
        set_token(token: str)
utils/
    __init__.py
    version.py
    appdirs.py

appdirs (MIT) is to get folders to store the token and cache requests

I'd propose to load everything from _hestia_api into the main __init__.py.

cmutel commented 1 year ago

Some comments from my side: