# This is Python API for ElephantRobotics product


[](https://pypi.org/project/pigit)
This is a python API for serial communication with mycobot and controlling it.
[](https://www.elephantrobotics.com/en/myCobot-en/)
## Installation
**Notes**:
> Make sure that `Atom` is flashed into the top Atom, `Transponder` is flashed into the base Basic. <br>
> The firmware `Atom` and `Transponder` download address: [https://github.com/elephantrobotics/myCobot/tree/main/Software](https://github.com/elephantrobotics/myCobot/tree/main/Software)<br>
> You also can use myStudio to flash them, myStudio address: [https://github.com/elephantrobotics/myStudio/releases](https://github.com/elephantrobotics/myStudio/releases)
### Pip
```bash
pip install pymycobot --upgrade
```
<!--
**Notes:**
> Now only the version is `Atom2.4` or later is supported. If you use an earlier version, please install `pymycobot 1.0.7`.
```bash
pip install pymycobot==1.0.7 --user
```
-->
### Source code
```bash
git clone https://github.com/elephantrobotics/pymycobot.git <your-path>
cd <your-path>/pymycobot
# Install
[sudo] python2 setup.py install
# or
[sudo] python3 setup.py install
```
Or the more modern form:
```bash
# Install
pip install .
# Uninstall
pip uninstall .
```
## Usage:
```python
# for mycobot 280 machine
from pymycobot import MyCobot280
from pymycobot import MyCobot280Socket
# for mycobot 320 machine
from pymycobot import MyCobot320
from pymycobot import MyCobot320Socket
# for mecharm 270 machine
from pymycobot import MechArm270
from pymycobot import MechArmSocket
# for mypalletizer 260 machine
from pymycobot import MyPalletizer260
from pymycobot import MyPalletizerSocket
# for ultraArm P340 machine
from pymycobot import ultraArmP340
```
The [`demo`](./demo) directory stores some test case files.
You can find out which interfaces pymycobot provides in `pymycobot/README.md`.
Please go to [here](./docs/README.md).
> Note: Version v3.6.0 differentiates interfaces by model. Starting from this version, the MyCobot class will no longer be maintained. For new usage, please refer to the document:
 
[MyCobot 280 API说明](./docs/MyCobot_280_zh.md) | [MyCobot 280 API Description](./docs/MyCobot_280_en.md)
[MyCobot 320 API说明](./docs/MyCobot_320_zh.md) | [MyCobot 320 API Description](./docs/MyCobot_320_en.md)
[MechArm 270 API说明](./docs/MechArm_270_zh.md) | [MechArm 270 API Description](./docs/MechArm_270_en.md)
[MyPalletizer 260 API说明](./docs/MyPalletizer_260_zh.md) | [MyPalletizer 260 API Description](./docs/MyPalletizer_260_en.md)
[myAGV API说明](./docs/myAGV_zh.md) | [myAGV API Description](./docs/myAGV_en.md)
[myArm_M&C API说明](./docs/myArm_M&C_zh.md) | [myArm_M&C API Description](./docs/myArm_M&C_en.md)
[ultraArm P340 API说明](./docs/ultraArm_P340_zh.md) | [ultraArm P340 API Description](./docs/ultraArm_P340_en.md)
[MyBuddy API说明](./docs/MyBuddy_zh.md) | [MyBuddy API Description](./docs/MyBuddy_en.md)
[MyBuddyEmoticon API说明](./docs/mybuddy_emoticon_zh.md) | [MyBuddyEmoticon API Description](./docs/mybuddy_emoticon_en.md)# pymycobot
**This is python API for ElephantRobotics product**
We support Python2, Python3.5 or later.
 
[MyCobot 280 API说明](./MyCobot_280_zh.md) | [MyCobot 280 API Description](./MyCobot_280_en.md)
[MyCobot 320 API说明](./MyCobot_320_zh.md) | [MyCobot 320 API Description](./MyCobot_320_en.md)
[MechArm 270 API说明](./MechArm_270_zh.md) | [MechArm 270 API Description](./MechArm_270_en.md)
[MyPalletizer 260 API说明](./MyPalletizer_260_zh.md) | [MyPalletizer 260 API Description](./MyPalletizer_260_en.md)
[myAGV API说明](./myAGV_zh.md) | [myAGV API Description](./myAGV_en.md)
[myArm_M&C API说明](./myArm_M&C_zh.md) | [myArm_M&C API Description](./myArm_M&C_en.md)
[ultraArm P340 API说明](./ultraArm_P340_zh.md) | [ultraArm P340 API Description](./ultraArm_P340_en.md)
[MyBuddy API说明](./MyBuddy_zh.md) | [MyBuddy API Description](./MyBuddy_en.md)
[MyBuddyEmoticon API说明](./mybuddy_emoticon_zh.md) | [MyBuddyEmoticon API Description](./mybuddy_emoticon_en.md)
<details>
<summary>Catalogue:</summary>
<!-- vim-markdown-toc GFM -->
- [pymycobot](#pymycobot)
<!-- vim-markdown-toc -->
</details>
---
More demo can go to [here](../demo).
Raw data
{
"_id": null,
"home_page": "https://github.com/elephantrobotics/pymycobot",
"name": "pymycobot",
"maintainer": null,
"docs_url": null,
"requires_python": "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,>=2.7",
"maintainer_email": null,
"keywords": null,
"author": "Elephantrobotics",
"author_email": "weiquan.xu@elephantrobotics.com",
"download_url": "https://files.pythonhosted.org/packages/0f/14/e7a9207d2b5e4c4b0de454b401a76fea851118dcf239f55415f8906cfc2e/pymycobot-4.0.0.tar.gz",
"platform": null,
"description": "# This is Python API for ElephantRobotics product\r\n\r\n\r\n\r\n[](https://pypi.org/project/pigit)\r\n\r\nThis is a python API for serial communication with mycobot and controlling it.\r\n\r\n[](https://www.elephantrobotics.com/en/myCobot-en/)\r\n\r\n## Installation\r\n\r\n**Notes**:\r\n\r\n> Make sure that `Atom` is flashed into the top Atom, `Transponder` is flashed into the base Basic. <br>\r\n> The firmware `Atom` and `Transponder` download address: [https://github.com/elephantrobotics/myCobot/tree/main/Software](https://github.com/elephantrobotics/myCobot/tree/main/Software)<br>\r\n> You also can use myStudio to flash them, myStudio address: [https://github.com/elephantrobotics/myStudio/releases](https://github.com/elephantrobotics/myStudio/releases)\r\n\r\n### Pip\r\n\r\n```bash\r\npip install pymycobot --upgrade\r\n```\r\n\r\n<!--\r\n**Notes:**\r\n\r\n> Now only the version is `Atom2.4` or later is supported. If you use an earlier version, please install `pymycobot 1.0.7`.\r\n\r\n```bash\r\npip install pymycobot==1.0.7 --user\r\n```\r\n-->\r\n\r\n### Source code\r\n\r\n```bash\r\ngit clone https://github.com/elephantrobotics/pymycobot.git <your-path>\r\ncd <your-path>/pymycobot\r\n# Install\r\n[sudo] python2 setup.py install\r\n# or\r\n[sudo] python3 setup.py install\r\n```\r\n\r\nOr the more modern form:\r\n\r\n```bash\r\n# Install\r\npip install .\r\n# Uninstall\r\npip uninstall .\r\n```\r\n\r\n## Usage:\r\n\r\n```python\r\n# for mycobot 280 machine\r\nfrom pymycobot import MyCobot280 \r\nfrom pymycobot import MyCobot280Socket\r\n# for mycobot 320 machine\r\nfrom pymycobot import MyCobot320\r\nfrom pymycobot import MyCobot320Socket \r\n# for mecharm 270 machine\r\nfrom pymycobot import MechArm270 \r\nfrom pymycobot import MechArmSocket \r\n# for mypalletizer 260 machine\r\nfrom pymycobot import MyPalletizer260 \r\nfrom pymycobot import MyPalletizerSocket\r\n# for ultraArm P340 machine\r\nfrom pymycobot import ultraArmP340\r\n```\r\n\r\nThe [`demo`](./demo) directory stores some test case files.\r\n\r\nYou can find out which interfaces pymycobot provides in `pymycobot/README.md`.\r\n\r\nPlease go to [here](./docs/README.md).\r\n\r\n\r\n> Note: Version v3.6.0 differentiates interfaces by model. Starting from this version, the MyCobot class will no longer be maintained. For new usage, please refer to the document: \r\n\r\n \r\n\r\n[MyCobot 280 API\u8bf4\u660e](./docs/MyCobot_280_zh.md) | [MyCobot 280 API Description](./docs/MyCobot_280_en.md)\r\n\r\n[MyCobot 320 API\u8bf4\u660e](./docs/MyCobot_320_zh.md) | [MyCobot 320 API Description](./docs/MyCobot_320_en.md)\r\n\r\n[MechArm 270 API\u8bf4\u660e](./docs/MechArm_270_zh.md) | [MechArm 270 API Description](./docs/MechArm_270_en.md)\r\n\r\n[MyPalletizer 260 API\u8bf4\u660e](./docs/MyPalletizer_260_zh.md) | [MyPalletizer 260 API Description](./docs/MyPalletizer_260_en.md)\r\n\r\n[myAGV API\u8bf4\u660e](./docs/myAGV_zh.md) | [myAGV API Description](./docs/myAGV_en.md)\r\n\r\n[myArm_M&C API\u8bf4\u660e](./docs/myArm_M&C_zh.md) | [myArm_M&C API Description](./docs/myArm_M&C_en.md)\r\n\r\n[ultraArm P340 API\u8bf4\u660e](./docs/ultraArm_P340_zh.md) | [ultraArm P340 API Description](./docs/ultraArm_P340_en.md)\r\n\r\n[MyBuddy API\u8bf4\u660e](./docs/MyBuddy_zh.md) | [MyBuddy API Description](./docs/MyBuddy_en.md)\r\n\r\n[MyBuddyEmoticon API\u8bf4\u660e](./docs/mybuddy_emoticon_zh.md) | [MyBuddyEmoticon API Description](./docs/mybuddy_emoticon_en.md)# pymycobot\r\n\r\n**This is python API for ElephantRobotics product**\r\n\r\nWe support Python2, Python3.5 or later.\r\n\r\n \r\n\r\n[MyCobot 280 API\u8bf4\u660e](./MyCobot_280_zh.md) | [MyCobot 280 API Description](./MyCobot_280_en.md)\r\n\r\n[MyCobot 320 API\u8bf4\u660e](./MyCobot_320_zh.md) | [MyCobot 320 API Description](./MyCobot_320_en.md)\r\n\r\n[MechArm 270 API\u8bf4\u660e](./MechArm_270_zh.md) | [MechArm 270 API Description](./MechArm_270_en.md)\r\n\r\n[MyPalletizer 260 API\u8bf4\u660e](./MyPalletizer_260_zh.md) | [MyPalletizer 260 API Description](./MyPalletizer_260_en.md)\r\n\r\n[myAGV API\u8bf4\u660e](./myAGV_zh.md) | [myAGV API Description](./myAGV_en.md)\r\n\r\n[myArm_M&C API\u8bf4\u660e](./myArm_M&C_zh.md) | [myArm_M&C API Description](./myArm_M&C_en.md)\r\n\r\n[ultraArm P340 API\u8bf4\u660e](./ultraArm_P340_zh.md) | [ultraArm P340 API Description](./ultraArm_P340_en.md)\r\n\r\n[MyBuddy API\u8bf4\u660e](./MyBuddy_zh.md) | [MyBuddy API Description](./MyBuddy_en.md)\r\n\r\n[MyBuddyEmoticon API\u8bf4\u660e](./mybuddy_emoticon_zh.md) | [MyBuddyEmoticon API Description](./mybuddy_emoticon_en.md)\r\n\r\n<details>\r\n<summary>Catalogue:</summary>\r\n\r\n<!-- vim-markdown-toc GFM -->\r\n\r\n- [pymycobot](#pymycobot)\r\n \r\n<!-- vim-markdown-toc -->\r\n</details>\r\n\r\n---\r\nMore demo can go to [here](../demo).\r\n",
"bugtrack_url": null,
"license": null,
"summary": "Python API for serial communication of MyCobot.",
"version": "4.0.0",
"project_urls": {
"Homepage": "https://github.com/elephantrobotics/pymycobot"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "058142405943a0da5873d1727762d148b77452bc6ada827d4720cce70230bf2a",
"md5": "5ac9d590ab6b367c073bb57b6b54abee",
"sha256": "056fd39e4d9fdc9b1617a5cdfb7288e188fbf096b3568df4e0ef379da6eb11a7"
},
"downloads": -1,
"filename": "pymycobot-4.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "5ac9d590ab6b367c073bb57b6b54abee",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,>=2.7",
"size": 271498,
"upload_time": "2025-07-15T07:19:24",
"upload_time_iso_8601": "2025-07-15T07:19:24.274428Z",
"url": "https://files.pythonhosted.org/packages/05/81/42405943a0da5873d1727762d148b77452bc6ada827d4720cce70230bf2a/pymycobot-4.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "0f14e7a9207d2b5e4c4b0de454b401a76fea851118dcf239f55415f8906cfc2e",
"md5": "2affadb6c95687c3bd7c07c5d43ecbfe",
"sha256": "1a65851b8cfc3ca53514ae76e5ffc875aea35ab9bd870e53ef5b290f7ce72935"
},
"downloads": -1,
"filename": "pymycobot-4.0.0.tar.gz",
"has_sig": false,
"md5_digest": "2affadb6c95687c3bd7c07c5d43ecbfe",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,>=2.7",
"size": 199849,
"upload_time": "2025-07-15T07:19:26",
"upload_time_iso_8601": "2025-07-15T07:19:26.018527Z",
"url": "https://files.pythonhosted.org/packages/0f/14/e7a9207d2b5e4c4b0de454b401a76fea851118dcf239f55415f8906cfc2e/pymycobot-4.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-15 07:19:26",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "elephantrobotics",
"github_project": "pymycobot",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [
{
"name": "pyserial",
"specs": []
},
{
"name": "python-can",
"specs": []
},
{
"name": "pytest",
"specs": []
},
{
"name": "flake8",
"specs": []
},
{
"name": "opencv-python",
"specs": []
},
{
"name": "numpy",
"specs": []
},
{
"name": "crc",
"specs": []
},
{
"name": "bleak",
"specs": [
[
"~=",
"0.22.3"
]
]
}
],
"lcname": "pymycobot"
}