Skip to main content

FastIoT (fastiot)

FastIoT is a framework for rapid development of IIoT-Systems using Python as main programming language. It helps to set up a micro-service architecture and create services. The development has been started as basis for various research projects at Fraunhofer IVV, Dresden, Germany.

To get started quickly it is equipped with a powerful command line interface (CLI): fiot. This helps setting up a new project, create new services and run tests. It also supports creating cross-architecture Docker-containers and deployment configurations with docker-compose files and Ansible playbooks to bring the software to the systems they belong. Run fiot --help for a full list of features.

As for now the overall framework has only been used and tested on Linux systems.

A full documentation is available at https://fastiot.readthedocs.io (or at http://docs.dev.ivv-dd.fhg.de/fastiot/_latest/ within the Fraunhofer IVV)

If you use this framework in your scientific projects please cite:

Tilman Klaeger, Konstantin Merker, "FastIoT – A Holistic Approach for Rapid Development of IIoT Systems", 2022. https://doi.org/10.48550/arXiv.2201.13243.

License

Copyright 2022 Fraunhofer IVV, Dresden and contributors

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Requirements

These are the requirements you need to setup:

  • Python 3.9 or newer and the possibility to create virtual environments.

If you want to build services or do integration tests with databases or other services you also need to have a working docker setup:

  • Docker
  • docker-compose

If you want to use Ansible for deploying your services you also need to Ansible installed.

Getting started

It is always recommended to use a separate virtual environment for each project, so let’s create one: python3 -m venv venv and use it: source venv/bin/activate

Afterwards you can install FastIoT: python3 -m pip install "fastiot[dev]"

To set up a new project with the name my_first_project you can now run: fiot create new-project my_first_project

Within this repository you can find some sample services to use as template. Or you can simply ask the CLI to create a new services: fiot create new-service my_first_service. You should now find a service stub in your project to be extended with your application logic. The service will be added to the deployment "full" automatically.

You can now also create deployment configurations (e.g. a docker-compose.yaml) using fiot config and build containers for your project using fiot build.

As the service has been added to a deployment automatically you now start the service (with broker) with the command fiot start full. You should see the log messages from sending and receiving data. To cancel just press [Ctrl]+[C].

For a more comprehensive list of features, a guide to the project structure please refer to the complete documentation.

To run services locally, in your IDE or within a container you may also refer to the complete documentation.

Developing FastIoT

Simply check out this project and install the dependencies listed in requirements.txt. To run all tests and sample services you may also install additional packages listed in requirements/requirements.all.txt. Do NOT install fastiot when developing within this code. This will produce duplicates and may show weird errors. If in doubt run pip uninstall fastiot.

To make sure you can run commands like fiot you must add the src-directory to your Python Path: export PYTHONPATH="$(pwd)/src:$PYTHONPATH"

Project structure

A detailed structure for all projects based on FastIoT is listed in the documentation. Here just the few most important parts are listed:

  • src/fastiot: The core library and base with CLI, message handling, …
  • src/fastiot_core_services: Core Services to use directly in any project
  • src/fastiot_sample_services: Some examples about how to write services. Maybe used as copy and paste template for
  • own services.

Release process

Currently, and subject to change, new commits in the main-branch will rise the version number automatically and count from the last tag set.

Once the interfaces are proven to be stable, development will take place in specific dev branches and only be merged to main for a new release.

Metadata

Release files for fastiot 1.1.23

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

Source distribution (sdist)

Source distribution for fastiot 1.1.23
File Size Uploaded
fastiot-1.1.23.tar.gz 95.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fastiot 1.1.23
File Interpreter ABI Platform
fastiot-1.1.23-py3-none-any.whl Python 3 none any Details

Total release size: 215.5 kB

Release files / fastiot-1.1.23.tar.gz

Download URL fastiot-1.1.23.tar.gz
Size 95.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e186d0d0cdcc76059b8bc7db3c25ff3b54e03fefc6f1767c726aafa389251537
BLAKE2b-256 checksum
How to use checksums
e93ae05a9f56d71d1fa20a7f95877212d5fa6d1a8434772323012215c564db6e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / fastiot-1.1.23-py3-none-any.whl

Download URL fastiot-1.1.23-py3-none-any.whl
Size 119.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f6cb2c0a7cfe7c59a5201509105679c82e4977228f2929ce1e796c59c5d54dc8
BLAKE2b-256 checksum
How to use checksums
ef77d355bac799b7b96a2b8bf65f723cbbf7ceb8c62db983673eb842c604287b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

1.1.23 This release

2 release files

1.1

2 release files

1.0

2 release files

0.9

2 release files

0.8.24

2 release files

0.8

2 release files

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