CLI tool and library for exporting metadata from Eagle app JSON into parquet or huggingface dataset.
Reason this release was yanked:
buggy
Project description
Eagle Exporter
Eagle Exporter is a command-line utility (and Python library) to parse image metadata JSON files from an Eagle library directory and export them to either a local Parquet file or a Hugging Face Dataset repository.
Features
- Recursively scans an Eagle library's
images/folder for JSON files. - Extracts tags, star ratings, palette info, etc.
- Optionally merges with s5cmd logs to provide S3 URIs for each file.
- Exports to either:
- A local
.parquetfile - A Hugging Face dataset (can be public or private).
- A local
Installation
-
Install Poetry if you haven't already:
pip install poetry
-
Clone this repo or download the source, then inside the folder:
poetry install
-
(Optional) You can install it system-wide using:
pipx install .Then you'll have the
eagle-exportcommand available globally.
Usage
Example command to export an Eagle library to Hugging Face:
eagle-export path/to/my_eagle.library --to myuser/my_hf_dataset --hf-private
Or export to a local .parquet file:
eagle-export path/to/my_eagle.library --to /tmp/output.parquet
Optionally include an s5cmd file to attach S3 URIs:
eagle-export path/to/my_eagle.library --s5cmd /path/to/s5cmd.txt --to /tmp/output.parquet
Command-Line Arguments
-
EAGLE_DIR(positional): The path to your Eagle library directory (the folder that hasimages/inside). -
--s5cmd <FILE>(optional): Path to the s5cmd log file (with lines likecp localfile s3://bucket/...) -
--to <DEST>(required):- If
<DEST>ends with.parquet, will export to Parquet. - Otherwise, treats
<DEST>as a Hugging Face dataset name (e.g.username/datasetname).
- If
-
--hf-private(optional): If exporting to Hugging Face, mark it as private. -
--help: Show the help message.
Developer Notes
- The core functionality resides in
src/eagle_export/core.py. - The CLI is in
src/eagle_export/cli.py. - The library uses
clickfor the command line,pandasfor data manipulation, anddatasetsfor pushing to Hugging Face.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file eagle_exporter-0.1.0.tar.gz.
File metadata
- Download URL: eagle_exporter-0.1.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c497b7625fe79900d0862010da305e165b815a08ecdc89cf98cf2ab23c2f14d1
|
|
| MD5 |
8387b1f018628000442f25343799ccd6
|
|
| BLAKE2b-256 |
9376569c01440a670ac84b0155240b0879be057f34648e0c82f2360132ca8e31
|
File details
Details for the file eagle_exporter-0.1.0-py3-none-any.whl.
File metadata
- Download URL: eagle_exporter-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d1e0f1d69e0f44d3e51de63288b98e3dc2a235f86b29a13b087788b11d77121
|
|
| MD5 |
c148e6bc014fcba522727f23610ed109
|
|
| BLAKE2b-256 |
d285f0de3e04ce1a1a68791d158e2ddb885cd0b563e7e32ba23d5c8fe84dfb09
|