1. Library Installation
1.1. Global Installation
The intelino trainlib library is available on PyPi and can be installed globally on your system with pip:
$ python3 -m pip install intelino-trainlib-async
Project page on PyPi: https://pypi.org/project/intelino-trainlib-async
This is the preferred installation method for intelino trainlib, and it will always install the latest stable release of the library.
1.2. Local Environment Installation
If you prefer to do a local environment installation of this library, follow the steps described below.
First, create a new directory/folder where you’d like to install the library. Then navigate to this directory in the terminal and run the following commands to setup the library environment, activate it and install the library:
$ python3 -m venv .env
$ source .env/bin/activate
$ python3 -m pip install intelino-trainlib-async
Note that when using a locally-installed library, you will always need to first go to the library’s root directory and activate the environment by running source .env/bin/activate
(whenever you open a new terminal window) for the library to work.
1.3. Requirements and Dependencies
This library is supported on machines running Windows 10, macOS and Linux operating systems equipped with Bluetooth 4.0 or greater.
Note
intelino trainlib requires Python 3.7 (or higher) and
pip
package-management system
If you have an older version of Python or don’t have pip on your system, you may see errors while installing the library on your machine. To resolve the baseline setup issues and install the required software packages, refer to this Python installation guide which will guide you through the process. Then try installing the intelino trainlib library again.
- Bleak library
- “Bleak is an acronym for Bluetooth Low Energy platform Agnostic Klient.”
Supports Windows 10, version 16299 (Fall Creators Update) or greater
Supports Linux distributions with BlueZ >= 5.43
OS X/macOS support via Core Bluetooth API, from at least OS X version 10.11
homepage: https://github.com/hbldh/bleak
- ReactiveX (Rx) library
- “ReactiveX is a library for composing asynchronous and event-based programs by using observable sequences.”
OS independent
homepage: http://reactivex.io/
git repo: https://github.com/ReactiveX/RxPY
1.4. Local Development and Testing
For local development and testing, clone the library repository and setup your environment:
$ git clone git://github.com/intelino-code/intelino-trainlib-async-py
$ cd intelino-trainlib-async-py
$ python3 -m venv .env
$ source .env/bin/activate
$ python3 -m pip install -r requirements.txt
$ python3 -m pip install -r requirements-dev.txt
$ python3 -m pip install -e .