Skip to main content

A simple library to visualize lists.

Project description

Visualist

This is a very simple library to visualize lists in Python.

It was created mainly to support the creation of tutorials for Neps Academy (amazing website :D).

Usage

The minimal example is shown below. It supposes that we want to create an image 640x180 pixels from the list [1, 2, -4, 2, -2, 5] and highlight the indexes [2, 4].

from visualist import Visualist

visualist = Visualist((640, 180))

img = visualist.img_from_list([1, 2, -4, 2, -2, 5], [2, 4])

img.show()

The result of this code would be

example

If you want to save the image change img.show() to img.save('my_dear_list.png').

Building the library

To build the library you need the wheel module:

pip install wheel

and run the following command:

python setup.py sdist bdist_wheel

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

visualist-0.2.1.tar.gz (71.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page