Skip to content

Add tools/pixellab — PixelLab CLI wrappers (first vendor slice from #23) - #115

Open
Lifecharger wants to merge 1 commit into
Donchitos:mainfrom
Lifecharger:tools-pixellab
Open

Add tools/pixellab — PixelLab CLI wrappers (first vendor slice from #23)#115
Lifecharger wants to merge 1 commit into
Donchitos:mainfrom
Lifecharger:tools-pixellab

Conversation

@Lifecharger

Copy link
Copy Markdown

First single-vendor slice of the tools/ contribution discussed in #23, split one-tool-at-a-time as requested.

What's in this PR

tools/pixellab/ — 7 Python CLI wrappers around PixelLab's official API + SDK:

Script Purpose
pixellab_generate_image.py text → pixel art sprite
pixellab_generate_ui.py UI elements (buttons, icons, frames)
pixellab_generate_background.py backgrounds (6 presets)
pixellab_image_to_pixelart.py image → pixel art conversion
pixellab_edit_image.py edit / inpaint
pixellab_balance.py credit balance check
pixellab_client.py shared client (key resolution, HTTP, base64 helpers)

Plus tools/README.md (folder tour + skill integration notes), tools/pixellab/README.md, a pinned tools/requirements.txt (just requests + pixellab for this slice), and a .gitignore entry so per-vendor config.json key files can never be committed.

11 files, ~620 lines. Rebased on current main (v1.0.0) — the /asset-spec + /art-bible integration story from #23 applies unchanged.

Key handling

Env-var-first (PIXELLAB_SECRET) with gitignored tools/pixellab/config.json fallback. No secrets committed.

Example

python tools/pixellab/pixellab_generate_image.py \
  --prompt "knight idle pose, side view" -W 128 -H 128 -o knight.png

License

MIT, matching CCGS (dual-licensed from Auto Game Builder as stated in #23).

Follow-up slices (tools/meshy/, tools/tripo/, …) will come as separate PRs after this one lands — proposed order is in the #23 thread.

🤖 Generated with Claude Code

…os#23)

First single-vendor slice of the tools/ contribution from issue Donchitos#23,
split per maintainer request. Adds 7 PixelLab CLI scripts
(text-to-pixel-art, UI elements, backgrounds, image-to-pixel,
edit/inpaint, balance check), a per-vendor README, pinned
requirements, and a .gitignore entry for per-vendor config.json
key files.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant