Giving access to BOAVIZTA referenced datas and methodologies trought a RESTful api
Project description
Tools-API
Giving access to BOAVIZTA referenced datas and methodologies trought a RESTful API
Objective
As part of Boavizta's desire to improve the quality of the measurement of the environmental impacts of ICTs in organizations, this project aims at giving access to the group's work to as many people as possible in an automated and industrialized way.
The various data and methodologies integrated by Boavizta are aggregated and made available via an API.
In the interest of transparency and scientific popularization, the opening of the code, the versioning of the impact factors and the documentation of the project are critical points.
The system is developed in layers according to a bottom-up principle. The first layer implemented is equipment, starting with the servers (MVP). The second layer is the measurement of the impact of digital services or systems. The measurement of the global impact is currently outside the scope.
Test it yourself
-
Test the API : TODO
-
Dev documentation server : http://149.202.185.115/
-
Dev API server: http://149.202.185.115:5000
Setup project locally with pipenv
Setup pipenv
Install pipenv globally
$ sudo pip3 install pipenv
Install dependencies and create a python virtual environment.
$ pipenv install -d
$ pipenv shell
Launch a development server
Once in the pipenv environment
Development server uses uvicorn and fastapi, you can launch development server with the uvicorn
CLI.
$ uvicorn boaviztapi.main:app --host=localhost --port 5000
You can run the tests with pytest
.
API Swagger
Once API server is launched API swagger is available at http://localhost:5000/docs.
Install using docker container
$ docker run ghcr.io/boavizta/boaviztapi:latest
Install using pip package
$ pip3 install boaviztapi
Contributing
See contributing.md
You can build a source distribution (installable with pip) with python setup.py sdist
.
License
TODO
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
File details
Details for the file boaviztapi-0.0.1.tar.gz
.
File metadata
- Download URL: boaviztapi-0.0.1.tar.gz
- Upload date:
- Size: 30.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbe58b3bd1ee9fc43b8bd2de263b2675e66770d5b3a589c1a33677bcc96d90e4 |
|
MD5 | 105e5d3de26b3207d85a47a47b85d66f |
|
BLAKE2b-256 | 79fba2e89886f13c8af8e2e3cb6234667a88dbc915aabb475d2784c8b5c2626b |