Skip to main content

Embed images into portable text files and extract them back

Project description

PixelFuse Backend

FastAPI service that embeds images into portable text files and extracts them back.

Docs

# File Description
001 Overview What PixelFuse does and the text file format
002 API Reference Endpoint contracts, fields, and error codes
003 Configuration Env vars and CLI flags
004 Development Local setup, tests, lint, Docker
005 Deployment Render, CI, self-hosted Docker

Endpoints

Method Path Description
POST /convert-embed/ Upload images → download base64 text file
POST /extract-images/ Upload text file → download ZIP of images

Supports JPEG, PNG, and HEIC formats. Max 10 files per request (configurable).

No distortion. Embed → extract is lossless. Raw image bytes are base64-encoded and decoded back exactly — no re-encoding at any stage.

Quickstart

pip install -e ".[dev]"
pixelfuse serve --reload

Configuration

All settings are overridable via environment variables prefixed PIXELFUSE_:

Variable Default Description
PIXELFUSE_HOST 0.0.0.0 Bind host
PIXELFUSE_PORT 8000 Bind port
PIXELFUSE_LOG_LEVEL info Uvicorn log level
PIXELFUSE_MAX_UPLOAD_FILES 10 Max files per request
PIXELFUSE_ALLOWED_ORIGINS (required) CORS origins (JSON array)

Copy .env.example to .env for local overrides.

Development

# Lint
flake8 src tests

# Type check
mypy src

# All environments
tox

Deployment

Deployed on Render via render.yaml. CI runs on every push via GitHub Actions.

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

bh_pixelfuse-0.0.4.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

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

bh_pixelfuse-0.0.4-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file bh_pixelfuse-0.0.4.tar.gz.

File metadata

  • Download URL: bh_pixelfuse-0.0.4.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for bh_pixelfuse-0.0.4.tar.gz
Algorithm Hash digest
SHA256 9587d38dfe715bb46dba367c6ad8d6f7633ea74a63d58800aa766c2de8f9b418
MD5 e599eed3c4c01aecee2d18530d7cdee2
BLAKE2b-256 9c9b3b584c181ba9cd0bc1b68c58d58160bf8bd62fe2deef3df234f46eb1ed15

See more details on using hashes here.

Provenance

The following attestation bundles were made for bh_pixelfuse-0.0.4.tar.gz:

Publisher: release.yml on abin-m/pixelfuse-backend

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file bh_pixelfuse-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: bh_pixelfuse-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for bh_pixelfuse-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6e25b0e9b21cb8c5850535c21846c5c135f3c38c0590c331ca830647c657d11a
MD5 826684fdade402bf8331337cd686dba6
BLAKE2b-256 15a054e7fd81ba3b6e32f4d402e5b3c4002d503204e0d84c183a7168ddb0bdaf

See more details on using hashes here.

Provenance

The following attestation bundles were made for bh_pixelfuse-0.0.4-py3-none-any.whl:

Publisher: release.yml on abin-m/pixelfuse-backend

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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