Init python project
parent
2e73cf249a
commit
892140c313
@ -0,0 +1,24 @@
|
||||
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.
|
||||
|
||||
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:
|
||||
|
||||
```python3
|
||||
class Whatever(triditko.Renderer):
|
||||
def render(itemname: str) -> 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`)
|
@ -0,0 +1,17 @@
|
||||
[project]
|
||||
name = 'triditko'
|
||||
description = 'A PyGame powered tool for quickly sorting stuff into categories'
|
||||
dynamic = ['version']
|
||||
readme = './README.md'
|
||||
|
||||
# Maybe relax requirement later, idk what I use.
|
||||
requires-python = '~=3.11'
|
||||
dependencies = [
|
||||
]
|
||||
|
||||
[project.gui-scripts]
|
||||
triditko = 'triditko.__main__:main'
|
||||
|
||||
[build-system]
|
||||
requires = ['flit_core >=3.2,<4']
|
||||
build-backend = 'flit_core.buildapi'
|
@ -0,0 +1 @@
|
||||
__version__ = '0.0.1a1'
|
@ -0,0 +1,5 @@
|
||||
|
||||
def main():
|
||||
print('hi')
|
||||
|
||||
if __name__ == '__main__': main()
|
Loading…
Reference in New Issue