Releases: reluce/szurubooru-toolkit
Releases · reluce/szurubooru-toolkit
0.5.2
0.5.1
Changelog
- New script:
import-from-booru
(#11)- Imports posts from various Boorus (Danbooru, Gelbooru, Konachan and Yandere or all) based on your input search query
- Default search limit is 100, can be cautiously increased with
--limit
argument - Two options in
config.toml
:deepbooru_enabled
to tag posts additionally with Deepbooru andhide_progress
- See the updated Readme for more information on how to use this script
- Additional new options for
config.toml
:max_similarity
,convert_to_jpg
andconvert_threshold
max_similarity
: Upload posts only up to specified treshold (0.00-1.00, 1 being 100% similar, but not necessarily the same image)convert_to_jpg
: Convert PNG images to JPG format, ifconvert_threshold
size is breachedconvert_threshold
: Accepts human readable sizes between KB or MB. E.g."2MB"
converts PNG images which size is greater than 2MBs. This only affects the uploaded post and not the local files.
- Improved Docstrings, type annotations and script logic
0.4.0
0.3.0
Changelog
Change the package name from szuru-toolkit to szurubooru-toolkit.
This change primarily improves visiblity on GitHub.
The package on PyPI has been updated as well: https://pypi.org/project/szurubooru-toolkit/
0.2.0
Migration notes
Existing users have to migrate their config.json
to the updated config.toml
file. An example file config_sample.toml
is provided with all options.
It's also recommended to clone the repo from scratch instead of pulling the changes since I altered the git history.
Changelog
- Rename project from szurubooru-scripts to szuru-toolkit (thanks to @Manicarus for the name suggestion)
- Rename upload-images to upload-media
- This project now uses Poetry to manage its dependencies and packaging
- Introduce pre-commit to check commits before pushing
- This project is now available on PyPI: https://pypi.org/project/szuru-toolkit
- If the package is installed via pip/PyPi, the scripts
auto-tagger
,upload-media
andcreate-tags
get added to pipsbin
path- Scripts can now be invoked simply with e.g.
auto-tagger "date:today"
. See the updatedREADME
for more examples.
- Scripts can now be invoked simply with e.g.
- The auto-tagger script is now faster with large queries, since results are now being yielded. Before, all results were being parsed before tagging started.
- The auto-tagger script has two new command line arguments:
--add-tags
and--remove-tags
- As the names suggest, you can add/remove your own tags which will be applied to all posts matching your query. Tags specified with
--remove-tags
will be applied after tagging has finished, so you can remove potential unwanted tags returned from SauceNAO/Deepbooru.
- As the names suggest, you can add/remove your own tags which will be applied to all posts matching your query. Tags specified with
- Use a TOML based config file (
config.toml
) now instead of a JSON based one (config.json
)- See the
README
for full reference
- See the
- Implement logging (to a log file) with loguru. Can be configured in
config.toml
. (#6) - Improved error handling (#6)
- Fixed issues with unused Deepbooru/Tensorflow imports (#9)
- Added support for tagging with Konachan and Yandere
- If the post is being tagged with Deepbooru and has relations, copy
series
,artist
andcharacter
tags from these relation posts (useful for Fanbox sets where the main post is uploaded to a booru but not the variations) - Added support to tag posts with SauceNAO and Deepbooru (option
deepbooru_forced
) - Szuru token does now not have to be converted to base64 beforehand (#2, #3)
- Start using pyszuru package for interacting with the szuru API
- Majority of the szuru API calls are still using my own implementation because of speed issues
- Code and wording improvements
- If the SauceNAO API limit has been hit, the script continues to tag with Deepbooru if
deepbooru_enabled
is set