Metadata-Version: 2.4
Name: python-platerecognizer
Version: 0.1.0
Summary: Asynchronous Python client for the Plate Recognizer Snapshot Cloud and Local SDK API
Author: Zubir Jamal
License: MIT
Project-URL: Homepage, https://github.com/zubirjamal/python-platerecognizer
Project-URL: Repository, https://github.com/zubirjamal/python-platerecognizer
Project-URL: Issues, https://github.com/zubirjamal/python-platerecognizer/issues
Keywords: platerecognizer,anpr,alpr,license-plate,home-assistant
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Home Automation
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Intended Audience :: Developers
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: aiohttp>=3.9.0
Provides-Extra: test
Requires-Dist: pytest>=8.0.0; extra == "test"
Requires-Dist: pytest-asyncio>=0.23.0; extra == "test"
Requires-Dist: aresponses>=3.0.0; extra == "test"
Dynamic: license-file

# python-platerecognizer

Asynchronous Python client for the [Plate Recognizer](https://platerecognizer.com/) Snapshot Cloud API and self-hosted Local SDK.

## Installation

```bash
pip install python-platerecognizer
```

## Usage

```python
import asyncio
from platerecognizer import PlateRecognizerClient


async def main() -> None:
    async with PlateRecognizerClient(api_token="YOUR_TOKEN") as client:
        usage = await client.async_get_usage()
        print("Remaining calls:", usage.remaining if usage else None)

        with open("car.jpg", "rb") as f:
            reads = await client.async_read_plate(f.read(), regions=["my"])
        for read in reads:
            print(read.plate, read.score, read.country, read.vehicle)


asyncio.run(main())
```
