Python library for eLabFTW REST API.
This repository allows generating a python library to interact with eLabFTW REST API v2. It uses Swagger Codegen to generate it based on the OpenApi specification of eLabFTW REST API v2.
As such, it doesn't contain the generated code, but only instructions on how to generate it for local development.
Users should install the library with pip
, as described below.
# create a virtual environment
python -m venv elab
# activate it
source elab/bin/activate
# on Windows
# C:\> elab\Scripts\activate.bat
# install the library
pip install elabapi-python
See the examples folder.
From TU Graz, Shared RDM Project:
# generate the library
./helper.sh generate
# generate from local file: openapi.yaml must be in current dir
./helper.sh generate-from-local
# build packages
./helper.sh build
./helper.sh install-dev
- Bump version in config.json
- Commit and push
- Tag and push --tags
- Create release on GitHub
MIT, see license file.