Skip to main content

No project description provided

Project description

Pixel Lab Python SDK

PyPI version Python

This Python client simplifies interaction with the Pixel Lab developer API.

Create characters and items, animate them, and generate rotated views. Useful for game development and other pixel art projects.

For questions or discussions, join us on Discord.

Features

  • Generate Image (Pixflux): Create characters, items, and environments from text descriptions
  • Generate Image (Bitforge): Use reference images to match a specific art style
  • Animation with Skeletons: Animate bi-pedal and quadrupedal characters and monsters with skeleton-based animations
  • Animation with Text: Animate with text prompts
  • Inpainting: Edit existing pixel art
  • Rotation: Generate rotated views of characters and objects

With much more functionality coming soon.

Installation

Use your preferred package manager:

pip install pixellab

or

poetry add pixellab

Usage

import pixellab

client = pixellab.Client.from_env_file(".env.development.secrets")
# client = pixellab.Client.from_env()
# client = pixellab.Client(secret="my-secret")

# create image
response = client.generate_image_pixflux(
    description="cute dragon",
    image_size = {"width": 64, "height": 64},
)

response.image.pil_image()

See more client usage examples in the Pixel Lab API Docs.

Development

Install Dependencies

poetry install

Run Tests

poetry run pytest -s

Support

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

pixellab-1.0.5-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

Details for the file pixellab-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: pixellab-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 15.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.1 CPython/3.9.22 Linux/6.11.0-1013-azure

File hashes

Hashes for pixellab-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 e4eeda8bd2ea46f57583cecd9c4dea4afdcd1256fd1cbaea1b326b01d3bc68df
MD5 bd32e642bc11f2d730d337ca99e1eb7b
BLAKE2b-256 5350ac5cb434b6019cdb926382a4cf4467c306afa6b14a37ef85f2d70f066ac8

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