Skip to main content

Motor module for exosuit

Project description

Motor Control Software for Soft Exoskeleton

Coverage Status Docker Image CI

Install

To install the library run:

uv install motor_python

OR

uv install git+https://github.com/TUM-Aries-Lab/motor_python.git@<specific-tag>  

Publishing

It's super easy to publish your own packages on PyPI. To build and publish this package run:

  1. Update the version number in pyproject.toml and imu_module/init.py
  2. Commit your changes and add a git tag "<new.version.number>"
  3. Push the tag git push --tag

The package can then be found at: https://pypi.org/project/motor_python

Module Usage

"""Basic docstring for my module."""

from loguru import logger

from motor_python import definitions

def main() -> None:
    """Run a simple demonstration."""
    logger.info("Hello World!")

if __name__ == "__main__":
    main()

Program Usage

uv run python -m motor_python

Testing

Unit Tests (No Hardware Required)

Run unit tests without hardware (using mocks):

make test          # Run unit tests only (no hardware required)
make test-hardware # Run hardware integration tests (requires motor connected)
make test-all      # Run all tests including hardware tests (full coverage)

Note: Hardware tests are skipped automatically if motor hardware is not available.

Structure

├── src
│   └── motor_python
│       ├── config
│       ├── __init__.py
│       ├── __main__.py
│       ├── cube_mars_motor.py
│       ├── definitions.py
│       ├── examples.py
│       ├── motor_status_parser.py
│       └── utils.py
├── tests
│   ├── __init__.py
│   ├── conftest.py
│   ├── cube_mars_motor_test.py
│   ├── hardware_test.py
│   ├── motor_status_parser_test.py
│   └── utils_test.py
├── .dockerignore
├── .gitignore
├── .pre-commit-config.yaml
├── .python-version
├── CONTRIBUTING.md
├── Dockerfile
├── LICENSE
├── Makefile
├── README.md
├── pyproject.toml
├── repo_tree.py
└── uv.lock

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

motor_python-0.0.4.tar.gz (16.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

motor_python-0.0.4-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

Details for the file motor_python-0.0.4.tar.gz.

File metadata

  • Download URL: motor_python-0.0.4.tar.gz
  • Upload date:
  • Size: 16.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for motor_python-0.0.4.tar.gz
Algorithm Hash digest
SHA256 da8407802d6062ef79fad4031ce2f09cb81daca85f518f2362413fd59bac9942
MD5 29a33e9dd654ce0627f7b13eaf4c9d87
BLAKE2b-256 aab6b4df9022c664b0401e4be96a83fd8ab64ac4be97a675412350cade6c528b

See more details on using hashes here.

Provenance

The following attestation bundles were made for motor_python-0.0.4.tar.gz:

Publisher: pypi-publish.yml on TUM-Aries-Lab/motor-module

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file motor_python-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: motor_python-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 17.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for motor_python-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 54794021d920ded93c882b4317a1005ed9d1a37e50fe2ea93b9e7f8b6babac5c
MD5 e12f40b4edc67ca3a53d3acdcdc2d3e8
BLAKE2b-256 8c86d413cf0ac466df5d4f7c751a006e413f051e5e09955ce468ad94d88565f1

See more details on using hashes here.

Provenance

The following attestation bundles were made for motor_python-0.0.4-py3-none-any.whl:

Publisher: pypi-publish.yml on TUM-Aries-Lab/motor-module

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page