Skip to main content

Official Python client for the Wandelbots API

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

@wandelbots/wandelbots-python

Binder

This library provides a wrapper around the Wandelbots API. Under the hood it queries the API endpoints directly, not using wandelbots_api_client (which is still required as dependencies since the auto-generated types are used from the package for type-checking convenience).

The wrapper is meant to ease the interaction with the Wandelbots API by providing a simpler interface for initializing a MotionGroup and interacting with it. For the full feature set of our API please refer to the official documentation and use the wandelbots_api_client package directly.

You can try the features of this library in a Jupyter notebook by clicking the Binder badge above. Create a new Instance by registering on the Wandelbots website and use the credentials to interact with the API.

Current Features:

  • Sync and Async Planning and Execution
  • Pose Transformations

Table Of Contents

Requirements

This library requires

  • Python >=3.9

Installation

To use the library, first install it using the following command

pip install wandelbots

Then import the library in your code

from wandelbots import Instance, MotionGroup, Planner

Development

To install the development dependencies, run the following command

poetry install

To remove an old virtual environment and create a new one, first get the name of the old environment by running

poetry env info

Then remove the old environment and create a new one with the following commands

poetry env remove <name-of-env>
poetry install

Run the poetry shell to activate the virtual environment

poetry shell

Build

To build the package locally, run the following command

poetry build

This will create a dist/ directory with the built package (.tar.gz and .whl files).

Installation

pip install wandelbots
Install a development branch in Poetry
wandelbots = { git = "https://github.com/wandelbotsgmbh/wandelbots-python.git", branch = "feature/set-ios-on-path" }

Basic Usage

The wrapper provides a simple interface for initializing a Instance, MotionGroup and a Planner object, which can be used to interact with the Wandelbots API:

from wandelbots import Instance, MotionGroup, Planner

my_instance = Instance(
    url=https://<my-instance-url>,
    user=<username>,
    password=<password>
)

my_robot = MotionGroup(
    instance=my_instance,
    cell="cell",
    motion_group="0@motion_group",
    default_tcp="Flange"
)

For further examples take a look at the examples.

Testing

poetry run pytest -rs -v

Integration Tests

By default integration tests will be skipped. To run them localy create an env file at envs/.env.tests with your values.

WANDELAPI_BASE_URL=
NOVA_ACCESS_TOKEN=
CELL_ID=
MOTION_GROUP=
TCP=

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

wandelbots-0.5.5.tar.gz (19.1 kB view details)

Uploaded Source

Built Distribution

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

wandelbots-0.5.5-py3-none-any.whl (24.8 kB view details)

Uploaded Python 3

File details

Details for the file wandelbots-0.5.5.tar.gz.

File metadata

  • Download URL: wandelbots-0.5.5.tar.gz
  • Upload date:
  • Size: 19.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for wandelbots-0.5.5.tar.gz
Algorithm Hash digest
SHA256 42b6eb53569fa259883f67095102482d088865b7e23d964f77add6dc7ec13e20
MD5 4a7353e8f7f581de0b9f006084390399
BLAKE2b-256 b7f96a3ff09ce747bb438a6196d8a6a2bd49abf107be2cf63dd694485aca3f75

See more details on using hashes here.

File details

Details for the file wandelbots-0.5.5-py3-none-any.whl.

File metadata

  • Download URL: wandelbots-0.5.5-py3-none-any.whl
  • Upload date:
  • Size: 24.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for wandelbots-0.5.5-py3-none-any.whl
Algorithm Hash digest
SHA256 e49493b326d856ab8deffa2c621ef6c3f1e600758d7dbe5c6c9123f295ad3a7c
MD5 0e0848208a981b2f8deb6882ae398852
BLAKE2b-256 54565eaadf3c78a6425dd372bad444f37c08f3a4946bd112734265de69cf9c80

See more details on using hashes here.

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