Skip to main content

Eagle.cool related utility scripts.

Project description

EAGLELIZ

Python binding for eagle.cool api.

Currently only supports the following endpoints:

  • /api/application/info
  • /api/item/addFromPaths

Installation

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.

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())

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

eagleliz-0.1.0.tar.gz (45.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

eagleliz-0.1.0-py3-none-any.whl (48.0 kB view details)

Uploaded Python 3

File details

Details for the file eagleliz-0.1.0.tar.gz.

File metadata

  • Download URL: eagleliz-0.1.0.tar.gz
  • Upload date:
  • Size: 45.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for eagleliz-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c7aff1bd7d4e2ef2d6a554370c17ac767c63e75813391fb22ede2004dced87b6
MD5 1d038489757bbe3c179ec8098a62597a
BLAKE2b-256 8e667599de5fbd6e97bd6b3618413d863ac4f54dec4a5d8abd548bcc46f8145f

See more details on using hashes here.

File details

Details for the file eagleliz-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: eagleliz-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 48.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for eagleliz-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 503ffa8a2cc13723fa72562abf048d4375b2b273e2a79bfda516534f28de6540
MD5 456a32b311191da016f695ad033059a6
BLAKE2b-256 c2b6b955717483c5ce613080d088fa1f1460e08948ac8b88ff037ba2b8bb94d8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page