This repository contains the Eclipse fog05 Client API for Python
With this API you can interact with Eclipse fog05 nodes and deploy your application components
pip
to be able to build this source distribution, there some prerequisites:
pip
version 19.3.1 minimum (for full support of PEP 517). (if necessary upgrade it with command:'sudo pip install --upgrade pip'
)- Have a Rust toolchain installed (instructions at https://rustup.rs/)
fog05-python has been tested with Python 3.6, 3.7, 3.8 and 3.9.
It relies on the fog05 Rust API which require the full std
library. See the list Rust supported platforms here: https://doc.rust-lang.org/nightly/rustc/platform-support.html .
Currently only the following platforms have been tested:
- Linux
- MacOS X
Requirements:
- Python >= 3.5
- A virtual environement such as venv, miniconda or Conda
- Rust and Cargo.
Then install the nighlty toolchain running:
rustup toolchain install nightly
- maturin. Install it with:
pip install maturin
Steps:
- Make sure your shell is running in a Python virtual environment.
python3 -m venv ../venv source ../venv/bin/activate
- Build fog05-python using maturin
cd fog05-python maturin develop --release
Maturin will automatically build the fog05 Rust API, as well as the fog05-python API and install it in your Python virtual environement.
Documentation is available here: readthedocs.io
Examples are available in the examples repository