Skip to main content

A small Python module for userpics creation

Project description

Userpic Generator

PyPI version

Getting Started

Installing

tiny-userpic can be installed using pip:

pip install tiny-userpic

Usage

To test that installation was successful, try:

python -m userpic --output img.png

tiny-userpic can be used both from the command line and as a Python library.

from userpic import make_userpic
data = make_userpic(
    cells_count=7,
    cell_size=32,
    offset=16,
    data_format="svg",
)
with open("output.svg", "wb") as file:
    file.write(data)

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

tiny-userpic-0.2.0.tar.gz (4.2 kB view hashes)

Uploaded Source

Built Distribution

tiny_userpic-0.2.0-py3-none-any.whl (4.9 kB view hashes)

Uploaded Python 3

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