Metadata-Version: 2.4
Name: eagleliz
Version: 0.0.27
Summary: Eagle.cool related utility scripts.
Author-email: Gabliz <gabliz.dev@gmail.com>
Requires-Python: >=3.12
Description-Content-Type: text/markdown
Requires-Dist: pylizlib[media]>=0.3.70
Requires-Dist: typer>=0.9.0
Requires-Dist: rich>=13.0.0
Requires-Dist: tqdm>=4.66.0
Requires-Dist: requests>=2.32.5
Requires-Dist: python-dotenv>=1.2.1
Requires-Dist: httpx>=0.28.1

# EAGLELIZ
Python binding for [eagle.cool api](https://api.eagle.cool).

Currently only supports the following endpoints:
- /api/application/info
- /api/item/addFromPaths

## Installation
```bash
pip install eagleliz
```

## Async file upload helper

The package now includes `AsynchEagleApiExtended`, which extends
`AsyncEagleAPI` and adds `add_item_from_file(path, name, tags)`.

It reads a local image, converts it to a base64 data URI, and uploads it via
`POST /api/item/addFromURL`.

```python
import asyncio

from eagleliz.api import AsynchEagleApiExtended


async def main():
	client = AsynchEagleApiExtended()
	item_id = await client.add_item_from_file(
		path="/absolute/path/to/image.png",
		name="Imported from file",
		tags=["local", "upload"],
	)
	print(item_id)


asyncio.run(main())
```

