Skip to content

Releases: reluce/szurubooru-toolkit

0.5.2

15 Apr 20:51
Compare
Choose a tag to compare

Changelog

  • Fix video upload in upload-media script

0.5.1

15 Apr 20:12
Compare
Choose a tag to compare

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 and hide_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 and convert_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, if convert_threshold size is breached
    • convert_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

03 Apr 19:40
Compare
Choose a tag to compare

Changelog

  • Add option auto_tag to config.toml. Set this to true if you want your post to be automatically tagged after uploaded with the script upload-media (#8).
  • Fix cleanup in upload-media script

0.3.0

03 Apr 18:20
Compare
Choose a tag to compare

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

03 Apr 15:17
Compare
Choose a tag to compare

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 and create-tags get added to pips bin path
    • Scripts can now be invoked simply with e.g. auto-tagger "date:today". See the updated README for more examples.
  • 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.
  • Use a TOML based config file (config.toml) now instead of a JSON based one (config.json)
    • See the README for full reference
  • 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 and character 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