Skip to main content

Use your photos to design and try on outfits

Project description

Looking Glass

Use your photos to design and try on outfits — powered by OpenAI's image editing API.

Installation

uv tool install .

Or run directly from the repo:

uv run glass --help

Quick Start

# 1. Set your OpenAI API key
glass config set api_key sk-your-key-here

# 2. Add a photo of yourself
glass photo add ~/selfie.jpg --name me

# 3. Add outfit descriptions (plain text files)
echo "Elegant navy suit, white dress shirt, silk tie" > formal.txt
glass outfit add formal.txt

echo "Hawaiian shirt, cargo shorts, flip-flops" > beach.txt
glass outfit add beach.txt --name beach-vibes

# 4. Run interactive mode — pick a photo, pick outfits, generate!
glass

Commands

Command Description
glass Interactive mode — select a photo and outfits, then generate images
glass photo add <file> [--name NAME] Add a photo
glass photo list List stored photos
glass photo remove <name> Remove a photo
glass outfit add <file> [--name NAME] Add an outfit description
glass outfit create --name NAME Create an outfit description in your default editor
glass outfit list List stored outfits
glass outfit remove <name> Remove an outfit
glass config set <key> <value> Set a config value
glass config show Show current config

Options

  • --output, -o PATH — Directory for generated images (default: current directory)
  • --version — Show version

Configuration

Key Description Default
api_key OpenAI API key
max_workers Max parallel image generations 4

Set values with glass config set <key> <value>.

How It Works

  1. Photos and outfit files are stored in ~/.looking-glass/
  2. Outfits are plain .txt files — the filename is the name, the content is the description
  3. In interactive mode, select a photo and one or more outfits
  4. For each outfit, the app sends your photo + a prompt to OpenAI's Image Edit API (gpt-image-1)
  5. Generated images are saved as {photo}_{outfit}.png

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

looking_glass_cli-1.0.1.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

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

looking_glass_cli-1.0.1-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file looking_glass_cli-1.0.1.tar.gz.

File metadata

  • Download URL: looking_glass_cli-1.0.1.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","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 looking_glass_cli-1.0.1.tar.gz
Algorithm Hash digest
SHA256 26822846e06bfcee92c0143bfc4b715c8dce7d867ccfcb851a171cfd46b16def
MD5 2a68b1a7385347ac2122067ec90fb352
BLAKE2b-256 95d978fd0521e9115dc34626537788702a3439c4ab3f81dec861ad2e6e7cbcd8

See more details on using hashes here.

File details

Details for the file looking_glass_cli-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: looking_glass_cli-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","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 looking_glass_cli-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 eafa406c87f2e291f0b16931663b9b4b0a05f0484d4bfba7413c489871bc345c
MD5 a1033ad4d13e87c1c7baf7d245fd00c1
BLAKE2b-256 b42a8404ff9dbe1e9b9167ca144cd59c303a6178617e2ef65ab295a90d32952a

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