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.0.27.tar.gz (41.3 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.0.27-py3-none-any.whl (47.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: eagleliz-0.0.27.tar.gz
  • Upload date:
  • Size: 41.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.1 {"installer":{"name":"uv","version":"0.11.1","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.0.27.tar.gz
Algorithm Hash digest
SHA256 80d2a9d51d117bcb3e3924282344df5032afba9ec905158416dc8b86d3cc7fec
MD5 0bea783273cea865e50ed5f2f9c031de
BLAKE2b-256 196b556665b02ace4f2b636e3f7581ee806a29e0e7a12c4a4840597793791b49

See more details on using hashes here.

File details

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

File metadata

  • Download URL: eagleliz-0.0.27-py3-none-any.whl
  • Upload date:
  • Size: 47.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.1 {"installer":{"name":"uv","version":"0.11.1","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.0.27-py3-none-any.whl
Algorithm Hash digest
SHA256 e44574ceca9a1e1a3a25bb16b71c8f4880ecb38a08fb53f195b53d01275af731
MD5 1c9662c807e3c3e7120395356552f1df
BLAKE2b-256 137d9d4ec3706c103c1c282c613dae7d1f861d06fed71d8d0bc629cf5cdc80ef

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