summaryrefslogtreecommitdiffstats
path: root/src/lib/szurubooru.py
Commit message (Collapse)AuthorAgeFilesLines
* Rename booru-sync to szuruboorupyColin Wilk2023-10-091-736/+0
| | | | | | | | | Initially the project was intended as a script repository containing scripts for managing my szurubooru instance. Since most of my work was actually writing an API client, I decided to rename this repository to an API client and do the script repository later on separately. Signed-off-by: Colin Wilk <colin.wilk@tum.de>
* Add pydocstyle linter and apply suggestionsColin Wilk2023-10-091-67/+54
| | | | Signed-off-by: Colin Wilk <colin.wilk@tum.de>
* Add pydantic to dataclassesColin Wilk2023-10-021-1/+1
| | | | | | | | | | Verifies the type annotations on the classes. This commit also fixes a bug where an invalid type was returned for suggestions of a Tag. The return type was a dict of a Micro Tag Structure but it was expected to be a string (see szurubooru.py) Signed-off-by: Colin Wilk <colin.wilk@tum.de>
* Move tag into dataclass ModuleColin Wilk2023-10-011-1/+1
| | | | | | | | Additionally change the description of the Tag modules (and other dataclass modules) to match the description from the Szurubooru API reference. Signed-off-by: Colin Wilk <colin.wilk@tum.de>
* Finish implementing tags APIColin Wilk2023-10-011-0/+64
| | | | Signed-off-by: Colin Wilk <colin.wilk@tum.de>
* Add Szurubooru __delete helper functionColin Wilk2023-10-011-1/+14
| | | | Signed-off-by: Colin Wilk <colin.wilk@tum.de>
* Initial CommitColin Wilk2023-10-011-0/+672
Signed-off-by: Colin Wilk <colin.wilk@tum.de>