eagle.cool api wrapper
Project description
eagle-wrap
wrapper for eagle.cool
install
pip install eagle-wrap
features
api wrapper
provides eagle api methods inapi.py
from https://api.eagle.cool/cli
offers a command-line interface to bridge plugins into a Python environment
plugin bridging
use
eaglewrap pyscript [ctx] [script path]
to create the ctx, use or adapt the following snippet in your plugin
async function stringifyEagleContext(eagle) {
const ctx = {};
// await for eagle.item.getSelected();
ctx.items = [];
for (const item of await eagle.item.getSelected()) {
ctx.item.push(item.id);
}
ctx.folders = [];
for (const folder of await eagle.folder.getSelected()){
ctx.folders.push(folder.id);
}
return JSON.stringify(ctx);
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
eagle_wrap-0.1.0.tar.gz
(6.8 kB
view details)
Built Distribution
File details
Details for the file eagle_wrap-0.1.0.tar.gz
.
File metadata
- Download URL: eagle_wrap-0.1.0.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a89069adf4171a3c60b39114c3b5a36cece98fd558e094d8b74cae4db9eb2b3 |
|
MD5 | 207aa89e872ba1eafe870a240c4fc078 |
|
BLAKE2b-256 | 774aa7da7bc712e3b971bc5cd529e6abd3b64c7f4264fb8eb96d16bbe11faf70 |
File details
Details for the file eagle_wrap-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: eagle_wrap-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d6ee47870e54fd764f48e5e0c02fee660316c9fc25a1a51b65b51dc3265818b |
|
MD5 | 31cbeb8228e6ef76d9d2abf4f130e5a4 |
|
BLAKE2b-256 | 3f2617c556092e5d74383c19b3bb304ab29ea58b7440c11b6e4f9d59666555f5 |