Metadata-Version: 2.4
Name: dynamixel-async
Version: 0.1.0
Summary: High-level Python library for Dynamixel servos with async support
Project-URL: Homepage, https://github.com/yongjaewon/dynamixel-async
Project-URL: Repository, https://github.com/yongjaewon/dynamixel-async.git
Project-URL: Documentation, https://github.com/yongjaewon/dynamixel-async/tree/main/docs
Project-URL: Bug Tracker, https://github.com/yongjaewon/dynamixel-async/issues
Author-email: Yongjae Won <yongwony@gmail.com>
License: MIT License
        
        Copyright (c) 2024 Your Name
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE. 
License-File: LICENSE
Keywords: async,dynamixel,motor,robotics,servo
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: System :: Hardware :: Hardware Drivers
Requires-Python: >=3.7
Requires-Dist: dynamixel-sdk>=3.7.0
Requires-Dist: pyserial>=3.5
Provides-Extra: dev
Requires-Dist: black>=22.0.0; extra == 'dev'
Requires-Dist: isort>=5.0.0; extra == 'dev'
Requires-Dist: mypy>=0.900; extra == 'dev'
Requires-Dist: pytest-asyncio>=0.18.0; extra == 'dev'
Requires-Dist: pytest>=7.0.0; extra == 'dev'
Description-Content-Type: text/markdown

# Dynamixel-Async

High-level Python library for Dynamixel servos with async support.

## Features

- Async/await support for non-blocking operation
- High-level Pythonic interface
- Automatic model detection and configuration
- Unit conversion (degrees, RPM, etc.)
- Comprehensive error handling
- Support for multiple Dynamixel models

## Installation

```bash
pip install dynamixel-async
```

## Development Setup

1. Clone the repository:
```bash
git clone https://github.com/yourusername/dynamixel-async.git
cd dynamixel-async
```

2. Create and activate a virtual environment:
```bash
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
```

3. Install development dependencies:
```bash
pip install -e ".[dev]"
```

## Basic Usage

```python
import asyncio
from dynamixel_async import DynamixelController

async def main():
    # Create controller instance
    controller = DynamixelController(baudrate=57600)
    
    # Connect and scan for servos
    await controller.connect()
    
    # Get servo with ID 1
    servo = controller.get_servo(1)
    if servo:
        # Move to 180 degrees
        servo.set_position(180.0)
        
        # Wait for movement to complete
        await controller.wait_for_servos()

if __name__ == "__main__":
    asyncio.run(main())
```

## Project Structure

```
src/
└── dynamixel_async/        # Main package
    ├── __init__.py        # Package initialization
    ├── constants.py       # Constants and enums
    ├── controller.py      # Main controller class
    ├── servo.py          # Servo interface
    └── models/           # Servo model definitions
        ├── __init__.py
        ├── base.py       # Base model class
        └── xm430.py      # XM430 model implementation
```

## Contributing

1. Fork the repository
2. Create a feature branch
3. Make your changes
4. Run tests: `pytest`
5. Submit a pull request

## License

This project is licensed under the MIT License - see the LICENSE file for details. 