Metadata-Version: 2.4
Name: uam-05lp
Version: 0.1.0
Summary: Python communication library for the Hokuyo UAM-05LP safety laser scanner (UAM protocol)
Project-URL: Homepage, https://www.hokuyo-aut.co.jp/
Project-URL: Repository, https://git.kristou.com/hokuyo/safety_library_lp_python
Author-email: Mehrez Kristou <kristou@hokuyo-aut.jp>
License-Expression: BSD-3-Clause
License-File: LICENSE
Keywords: hokuyo,laser-scanner,lidar,safety,uam-05lp
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: System :: Hardware :: Hardware Drivers
Classifier: Typing :: Typed
Requires-Python: >=3.10
Provides-Extra: dev
Requires-Dist: mypy>=1.0; extra == 'dev'
Requires-Dist: pytest>=7.0; extra == 'dev'
Requires-Dist: ruff>=0.4; extra == 'dev'
Provides-Extra: docs
Requires-Dist: mkdocs-material>=9.0; extra == 'docs'
Requires-Dist: mkdocstrings[python]>=0.24; extra == 'docs'
Provides-Extra: serial
Requires-Dist: pyserial>=3.5; extra == 'serial'
Description-Content-Type: text/markdown

# uam-05lp

Python communication library for the Hokuyo UAM-05LP safety laser scanner (UAM protocol).

## Installation

```bash
pip install uam-05lp
```

For serial/USB connections:

```bash
pip install uam-05lp[serial]
```

## Quick Start

```python
from uam_05lp import UAM05LP

with UAM05LP("192.168.0.10") as sensor:
    # Single scan
    scan = sensor.get_distance()
    print(f"Got {len(scan.distances)} distance points")
    print(f"Area: {scan.safety.area_number}, Error: {scan.safety.error_detected}")

    # Continuous scanning
    with sensor.iter_distance() as stream:
        for scan in stream:
            print(scan.distances[540])  # Front-center distance
```

## Requirements

- Python 3.10+
- No dependencies for Ethernet (TCP) connections
- `pyserial` for USB/Serial connections (install with `[serial]` extra)

## License

BSD-3-Clause
