Skip to main content

Materials-MarketPlace Standard App API

Project description

README

About

This repository contains the specification of the Materials MarketPlace Standard App API. The API is used as basis for the interaction between apps on the Materials MarketPlace platform.

This repository contains the API version: 0.1.0.

Authors

Specification

The repository contains both a programmatic definition of the API (implemented via Pydantic and FastAPI) within the marketplace_standard_app_api.main module as well as an equivalent OpenAPI representation in the openapi.json file. Programmatic checks are performed to ensure that both representations remain synchronized and conflict-free. In case that the definition within the Python module and the OpenAPI JSON-file are conflicting with each other for whatever reason, the former must be considered authoritive.

Tip: You can use the marketplace-standard-app-api show command to generate the OpenAPI file from the Python module (requires the cli extra).

Installation

Note: Users should use the MarketPlace Python SDK for app development.

You can install this package from source with:

pip install git+https://github.com/materials-marketplace/standard-app-api

To install extras, first clone the repository, e.g.,:

git clone https://github.com/materials-marketplace/standard-app-api
cd standard-app-api/
pip install '.[cli]'

Tests

Tests for this repository are implemented via pytest. To run these tests, first install the test dependencies with

pip install '.[tests]'

and then run the tests with the pytest command.

Contributing

Contributions in the form of issues, comments, and pull request are very welcome.

To make code contributions, please fork this repository, and then create a pull request. For development you will need to setup a Python environment (with a recent Python version), install the development requiremments, and the pre-commit hooks with:

pip install pre-commit==2.17.0
pre-commit install

Acknowledgements

This work is supported by the MarketPlace project funded by Horizon 2020 under the H2020-NMBP-25-2017 call (Grant No. 760173).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

marketplace-standard-app-api-0.1.0.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file marketplace-standard-app-api-0.1.0.tar.gz.

File metadata

File hashes

Hashes for marketplace-standard-app-api-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f7701e0fc842b29df45f881c74f611d72c03c7f94524b431dfc3e01229e5789d
MD5 8e270eb981ccdf8f31a950afd405d951
BLAKE2b-256 1b0fbb6ca3dac5bdfb6a2e2ec36f66c7eae204d393d7091eb82ab94ad5e6972a

See more details on using hashes here.

File details

Details for the file marketplace_standard_app_api-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for marketplace_standard_app_api-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2d93e39eb3fb8985288a4727440dd350bd88ed717753631e7c8faac5c9b66aa4
MD5 d52cd38fae40346fa6a36434f4358ebc
BLAKE2b-256 3ff2fd26f2803eff26609f85a8f75a63fb11fe3fc6cc4a5ab9f2d29e7c6443c2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page