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

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.

Current Features:

  • Sync and Async Planning and Execution
  • Pose Transformations

Table of contents

Requirements

This library requires

  • Python >=3.9

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 dist/wandelbots-python-0.5.0-py3-none-any.whl

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

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.2.1.tar.gz (16.3 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.2.1-py3-none-any.whl (21.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for wandelbots-0.2.1.tar.gz
Algorithm Hash digest
SHA256 1dfe8940a28612e9f8245a8f7434f03d54a2e7c61226af592f904de0df2d44ba
MD5 35a6f0300d3cda3662367759550fca76
BLAKE2b-256 254b9010cf6a5d8f27970ca7c4b77bd792160939a800cbd7989b383d19983a6b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wandelbots-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 21.5 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.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d3b1029023c4ca891b5c7ebec145c409f37e3f2bd75c2e32ddd8a25b80907545
MD5 dced7e37394562809bd0a09383b78fc3
BLAKE2b-256 a248ab5f94bade86ae27c08c00a76d859a99f12f58f6dc0fd0f69c9c5b21e513

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