Skip to main content

Python libraries to talk to IQ Motion Control devices

Project description

IQ Motion Python API

Python Build codecov tag release

This library is to talk to any IQ Control devices.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Installing with Pip

You can install this library using "pip":

pip install iqmotion

Installing locally

You can also use this library by cloning this repository.

Prerequisites

RECOMMENDED: All the prerequisits can be installed with pipenv:

pipenv install

All the prerequisits can also be installed from "requirements.txt".

pip install requirements.txt

Running the tests

You will need the following packages to run the tests:

  • pytest
  • pytest-cov

These should be installed automatically with pipenv or requirements.txt.
But you can also install these packages with pip:

pip install pytest
pip install pytest-cov

Software tests

You can then run the software tests with the following command:

pytest ./iqmotion/tests/ --cov-config=.coveragerc --cov=iqmotion --cov-fail-under=100

The test will fail if coverage is under 100%

Hardware tests

These tests need a module connected to your computer in order to run. You can run the test for different modules.
You can run the hardware tests with the following commands:

python run_hardware_tests.py speed --usb_handle=/dev/tty/USB0
python run_hardware_tests.py servo --usb_handle=/dev/tty/USB0
python run_hardware_tests.py step_dir --usb_handle=/dev/tty/USB0

Make sure to chose the right IQ-module and the correct usb_handle for your computer.

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Here is an example on how to create a new version change before pushing

semversioner add-change --type patch --description "my_changes"
semversioner add-change --type minor --description "my_changes"
semversioner add-change --type major --description "my_changes"

After being merged into master, you can bump the version and tag by running the following bash script:

./bump_version_and_tag.sh

Authors

  • Raphael Van Hoffelen

See also the list of contributors who participated in this project.

License

This project is licensed under the GPLv3 License - see the LICENSE file for details

Acknowledgments

  • Matt Piccoli for helping out debugging the architecture and continuously testing the API.

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

iqmotion-0.4.0.tar.gz (31.3 kB view hashes)

Uploaded Source

Built Distribution

iqmotion-0.4.0-py2.py3-none-any.whl (53.8 kB view hashes)

Uploaded Python 2 Python 3

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