A tiny package for writing Mac OS X text-only dock icons
Project description
Generate text-centric icons for your Mac OS X dock.
Examples:
Usage instructions
pip install icon-writer
from icon_writer import write_icon
image = write_icon("VSCODE", bgcolor=(0, 102, 185), fontcolor="white")
image.save("icon.png")
The function signature for write_icon
shows the arguments and their defaults:
write_icon(text, size=80, bgcolor="white", fontcolor="black")
Development instructions
Install requirements:
pip install -e requirements-dev.txt
Install pre-commit hook:
pre-commit install
Run tests:
black . tests/
Deployment steps
First, update the version in pyproject.toml
. Then run:
rm -rf dist/
python3 -m build
python3 -m twine upload dist/*
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
icon_writer-0.0.3.tar.gz
(86.1 kB
view hashes)
Built Distribution
Close
Hashes for icon_writer-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aaa66f087a2e9b9073f3fd03d7d70011998542ba8066e2b9f2c81c30fde9c4cf |
|
MD5 | 3bd16f076ed1a1471459ea807eeaf13e |
|
BLAKE2b-256 | 75f547cd7764547e415629076b3024491071e8a48dd14f3d95438ab1009baa38 |