Skip to main content

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 .parquet file
    • A Hugging Face dataset (can be public or private).

Installation

  1. Install Poetry if you haven't already:

    pip install poetry
    
  2. Clone this repo or download the source, then inside the folder:

   poetry install
  1. (Optional) You can install it system-wide using:

    pipx install .
    

    Then you'll have the eagle-export command 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 has images/ inside).

  • --s5cmd <FILE> (optional): Path to the s5cmd log file (with lines like cp 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).
  • --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 click for the command line, pandas for data manipulation, and datasets for pushing to Hugging Face.

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

eagle_exporter-0.1.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

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

eagle_exporter-0.1.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

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

Hashes for eagle_exporter-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c497b7625fe79900d0862010da305e165b815a08ecdc89cf98cf2ab23c2f14d1
MD5 8387b1f018628000442f25343799ccd6
BLAKE2b-256 9376569c01440a670ac84b0155240b0879be057f34648e0c82f2360132ca8e31

See more details on using hashes here.

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

Hashes for eagle_exporter-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2d1e0f1d69e0f44d3e51de63288b98e3dc2a235f86b29a13b087788b11d77121
MD5 c148e6bc014fcba522727f23610ed109
BLAKE2b-256 d285f0de3e04ce1a1a68791d158e2ddb885cd0b563e7e32ba23d5c8fe84dfb09

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