Skip to main content

Pixel Console Image Renderer, Editor & Module

A simple renderer for images in the terminal using the .pci file format

Installation & Usage

Installing Via PyPI

Run this command to install PCI

$ pip install pci

Then to run PCI, run the following in your terminal

$ pci

Installing Via GitHub

$ git clone https://github.com/El1teWatermelonGames/pci.git
$ cd pci
$ python setup.py install

Then to run PCI, run the following in your terminal

$ pci

Usage in code

Rendering an image file

To render an existing image file you have to use the renderImage() function

image.pci

FFF000FFF00FFF
F0F00F000000F0
FFF00F000000F0
F0000F000000F0
F00000FFF00FFF

example.py

from pci.rem import renderImage

renderImage("image.pci")

Rendering image data

This time you reformat the image yourself as a list in python & put it through a seperate function, renderData()

example.py

from pci.rem import renderData

image = [
    "FFF000FFF00FFF",
    "F0F00F000000F0",
    "FFF00F000000F0",
    "F0000F000000F0",
    "F00000FFF00FFF"
]

renderData(image)

Download files

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

Source Distribution

pixel_console_image-1.0.4.tar.gz (8.6 kB view details)

Uploaded Source

File details

Details for the file pixel_console_image-1.0.4.tar.gz.

File metadata

  • Download URL: pixel_console_image-1.0.4.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for pixel_console_image-1.0.4.tar.gz
Algorithm Hash digest
SHA256 619c76806b803ccac55d475a87fb521c817171dad8f3f0552e1750c0513910c8
MD5 a5a22e984decada41c8ea0f42e72d562
BLAKE2b-256 6313dce867ca222a87432028376434460c260b4722429648e2da5d6ff9458c74

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.4 This release

1 file

1.0.3

1 file

1.0.2

2 files

1.0.1

1 file

1.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page