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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wandelbots-0.2.3.tar.gz.
File metadata
- Download URL: wandelbots-0.2.3.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9904f6723fcc6cf6dffd155b842ffe68a7fd645d39eb7c270bb776e01de48c4f
|
|
| MD5 |
b86465f40519eb2f0e01cb6f158e226a
|
|
| BLAKE2b-256 |
d11435dd495d309b408130b9375a3b4aed6d3c00dc452f4d7ca42a2c1e45b573
|
File details
Details for the file wandelbots-0.2.3-py3-none-any.whl.
File metadata
- Download URL: wandelbots-0.2.3-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cae0261e7684411fd3bffe3fb2d5387164c6ff04f7fc4fa09c92305ce9384e18
|
|
| MD5 |
d3919e7faf1f93dbff6f4e84463d6fa4
|
|
| BLAKE2b-256 |
86d705d7b853940ad99837e0f347ee89a8a2108f43d7b69d624e2a9f29dd5e6c
|