You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
LEdoian 21e6a121a7 | 8 months ago | |
---|---|---|
triditko | 8 months ago | |
.gitignore | 8 months ago | |
README.md | 8 months ago | |
pyproject.toml | 8 months ago |
README.md
A PyGame powered tool for quickly sorting stuff into categories
This is a simple tool that will somehow present items of various types and allow categorising them interactively.
Installation
Run pip install -e .
in the project directory. You should probably use venv
or similar.
(This is PoC-stage, so no fancy packaging as of now.)
Usage
./TODO <stuff -c category1,category2,... -o result.json [-r renderer]
or
./TODO -i stuff -c category1,category2,... -o result.json [-r renderer]
The default renderer only displays the item as the text. The API for custom renderer is:
class Whatever(triditko.Renderer):
def render(itemname: str, w: int, h: int) -> pygame.Surface: ...
The renderer is passed as the fully qualified class name (i.e. if that code is
in file renderers.py
, pass renderers:Whatever
)