shpaker / tiny-userpic

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)

About


Languages

Language:Python 100.0%