Skip to main content

BOAVIZTAPI Python tests main

Giving access to BOAVIZTA referenced datas and methodologies trought a RESTful API

:dart: 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.

:fast_forward: Test it yourself

:computer: 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.

:whale: Install using docker container

$ docker run ghcr.io/boavizta/boaviztapi:latest

📦 Install using pip package

$ pip3 install boaviztapi

:woman: Contributing

See contributing.md

You can build a source distribution (installable with pip) with python setup.py sdist.

:one: Versionning

We use Semantic Versioning 2.0.0

Type Description Command
MAJOR version when you make incompatible API changes make major
MINOR version when you add functionality in a backwards compatible manner make minor
PATCH version when you make backwards compatible bug fixes make patch

:scroll: License

TODO

Metadata

Release files for boaviztapi-test 0.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for boaviztapi-test 0.0.7
File Size Uploaded
boaviztapi-test-0.0.7.tar.gz 37.2 kB Details

Release files / boaviztapi-test-0.0.7.tar.gz

Download URL boaviztapi-test-0.0.7.tar.gz
Size 37.2 kB
Tags Source
SHA-256 checksum
How to use checksums
3cd66a3aa1c39c93d6c88136eb93a1859119f729735919aaa56e4d5d5f45141c
BLAKE2b-256 checksum
How to use checksums
a81bd0f1643da37e026d8d8b0ce0ee6f4033e83c0d50cb648e1e0249e0d08202
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.8.2 requests/2.27.1 setuptools/60.5.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

Release history Release notifications | RSS feed

This release

0.0.7 This release

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page