Antelope Exchange database
This is a REST HTTP server for hosting LCA data according to the Antelope interface. This repo contains a deployable antelope server that is exposed via a REST API. All the exchange data are static, so a REST model is appropriate.
The server is linked to an authentication and authorization mechanism that would evaluate each request in terms of the requester's access level. Every query must be accompanied by an authorization token that has been computed as indicated in xdb_tokens.py.
The From the root directory, run:
$ MASTER_ISSUER=ANTELOPE_AUTHORITY XDB_CATALOG_ROOT=/data/LCI/xdb_8000\
XDB_DATA_ROOT=/data/LCI/aws-data uvicorn api:app --host 0.0.0.0 --port 8000 --reload
The default initialized xdb server runs a standard LcCatalog
with a local qdb. Resources are added to the catalog through etl. A default self-standing initialization would:
- Instantiate the catalog and http server
- add an exchange resource, specified by (origin)/(interface)
- obtain or create an index resource for the specified origin
- check_bg for the specified origin
- publish the resource