Metadata-Version: 2.4
Name: gopro-sdk-py
Version: 1.0.0.dev3
Summary: A Python SDK for controlling GoPro cameras, optimized for multi-camera COHN scenarios
Project-URL: Homepage, https://github.com/sean2077/gopro-sdk-py
Project-URL: Repository, https://github.com/sean2077/gopro-sdk-py
Project-URL: Issues, https://github.com/sean2077/gopro-sdk-py/issues
Project-URL: Documentation, https://sean2077.github.io/gopro-sdk-py/
Author-email: sean2077 <sean2077@users.noreply.github.com>
License: MIT License
        
        Copyright (c) 2025 Sean
        
        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: ble,bluetooth,camera,cohn,gopro,multi-camera,sdk
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Multimedia :: Video
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.12
Requires-Dist: aiohttp>=3.13
Requires-Dist: bleak>=0.22
Requires-Dist: open-gopro>=0.22
Requires-Dist: protobuf>=6.33
Requires-Dist: requests>=2.32
Requires-Dist: rich>=14.2.0
Provides-Extra: dev
Requires-Dist: poethepoet>=0.37; extra == 'dev'
Requires-Dist: pre-commit>=4.5; extra == 'dev'
Requires-Dist: pytest-asyncio>=1.3; extra == 'dev'
Requires-Dist: pytest-cov>=7.0; extra == 'dev'
Requires-Dist: pytest>=9.0; extra == 'dev'
Requires-Dist: python-dotenv>=1.2; extra == 'dev'
Requires-Dist: ruff>=0.14; extra == 'dev'
Provides-Extra: docs
Requires-Dist: mkdocs-git-revision-date-localized-plugin>=1.5; extra == 'docs'
Requires-Dist: mkdocs-material>=9.7; extra == 'docs'
Requires-Dist: mkdocs>=1.6; extra == 'docs'
Requires-Dist: mkdocstrings[python]>=0.30; extra == 'docs'
Description-Content-Type: text/markdown

# GoPro SDK for Python

A production-ready Python SDK for controlling GoPro cameras, specifically designed and optimized for multi-camera COHN (Camera on Home Network) scenarios.

## Features

- **Multi-Camera Support**: Efficient concurrent control of multiple GoPro cameras
- **Persistent COHN Configuration**: Save and restore COHN settings without reconfiguration
- **Optimized Connection Management**: Eliminate unnecessary connection cycles and resource waste
- **Robust State Tracking**: Accurate connection state management for COHN mode
- **Production-Ready Error Handling**: Comprehensive exception handling and recovery mechanisms

See [Why This SDK?](https://sean2077.github.io/gopro-sdk-py/why-this-sdk/) for detailed rationale and comparison with OpenGoPro.

## Quick Start

```bash
uv add gopro-sdk-py
# Or use pip
pip install gopro-sdk-py
```

```python
import asyncio
from gopro_sdk import GoProClient

async def main():
    client = GoProClient(identifier="GoPro 1234")
    await client.open_ble()
    await client.configure_cohn(ssid="your-wifi", password="password")
    await client.set_shutter(on=True)
    await client.close()

asyncio.run(main())
```

## Documentation

📖 **[Full Documentation](https://sean2077.github.io/gopro-sdk-py/)**

- [Quick Start Guide](https://sean2077.github.io/gopro-sdk-py/quickstart/) - Installation and basic usage
- [API Reference](https://sean2077.github.io/gopro-sdk-py/api/overview/) - Complete API documentation
- [Development Guide](https://sean2077.github.io/gopro-sdk-py/development/) - Setup, testing, and contribution guidelines

## Contributing

Contributions are welcome! Please check out our [documentation](https://sean2077.github.io/gopro-sdk-py/development/) for development setup and guidelines.

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

## Support

- [GitHub Issues](https://github.com/sean2077/gopro-sdk-py/issues) - Bug reports and feature requests
- [GitHub Discussions](https://github.com/sean2077/gopro-sdk-py/discussions) - Questions and community discussion

## Related Projects

- [OpenGoPro](https://github.com/gopro/OpenGoPro) - Official GoPro Open SDK and protocol specifications
- [OpenGoPro Python SDK](https://gopro.github.io/OpenGoPro/python_sdk/) - Official Python implementation

**Note**: This SDK builds upon OpenGoPro's protocol specifications and reuses its protobuf definitions, BLE UUIDs, and command constants. We acknowledge and appreciate GoPro's excellent work in documenting and open-sourcing the camera control protocol.
