https://github.com/shpaker/tiny-userpic
Oversimplified Github-like userpics generation python library
https://github.com/shpaker/tiny-userpic
avatar avatar-generator userpic
Last synced: 8 months ago
JSON representation
Oversimplified Github-like userpics generation python library
- Host: GitHub
- URL: https://github.com/shpaker/tiny-userpic
- Owner: shpaker
- License: mit
- Created: 2021-07-01T08:55:37.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2025-01-01T19:14:22.000Z (over 1 year ago)
- Last Synced: 2025-01-07T22:46:26.355Z (over 1 year ago)
- Topics: avatar, avatar-generator, userpic
- Language: Python
- Homepage:
- Size: 47.9 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Userpic Generator
[](https://pypi.org/project/tiny-userpic/)
## Getting Started
## Installing
tiny-userpic can be installed using pip:
```bash
pip install tiny-userpic
```
## Usage
To test that installation was successful, try:
```bash
python -m userpic --output img.png
```
tiny-userpic can be used both from the command line and as a Python library.
```python
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)
```