Skip to content

Commit

Permalink
rename szuru_toolkit to szurubooru_toolkit
Browse files Browse the repository at this point in the history
improves visibility on github to use the full name
  • Loading branch information
reluce committed Apr 3, 2022
1 parent e60b8fe commit c6d3578
Show file tree
Hide file tree
Showing 14 changed files with 37 additions and 37 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<p align="center">
<img src="https://cdn-icons-png.flaticon.com/512/2581/2581053.png"
alt="szuru-toolkit icon"
alt="szurubooru-toolkit icon"
width="128" height="128">
</p>

Expand All @@ -15,7 +15,7 @@ You can find a sample config file in the [git repository](https://github.com/rel

## Installation
This package is available on [PyPI](https://pypi.org/project/szuru-toolkit/) and can be installed with pip:
`pip install szuru-toolkit`
`pip install szurubooru-toolkit`

Alternatively, you can clone the package from GitHub and set everything up with [Poetry](https://python-poetry.org/docs/). In the root directory of this repository, execute `poetry install`.

Expand Down Expand Up @@ -60,7 +60,7 @@ Note that path names have to be specified with forward slashes (/) if you're usi
| upload_media | cleanup | Set this to true if images in the `src_path` should be deleted after upload | `false` |
| upload_media | tags | These tags will get set for all uploaded posts. Separate them by a comma. | `["tagme", "tag1", "tag2", "tagN"]` |
| logging | log_enabled | If logging to a log file should be enabled | `false` |
| logging | log_file | Specify the path of the log file | `"C:/Users/Foo/Desktop/szuru_toolkit.log"` |
| logging | log_file | Specify the path of the log file | `"C:/Users/Foo/Desktop/szurubooru_toolkit.log"` |
| logging | log_level | Specify the log level. `DEBUG` logs the most information | `"DEBUG"\|"INFO"\|"WARNING"\|"ERROR"\|"CRITICAL"` |
| logging | log_colorized | If the log file should be colorized. Requires compatible viewer (e.g. `less -r <log_file>`). | `true` |
</details>
Expand Down
22 changes: 11 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ ignore-init-method = true
line_length = 120
lines_after_imports = 2
sections = ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]
known_first_party = ["szuru_toolkit"]
known_local_folder = ["src/szuru_toolkit"]
known_first_party = ["szurubooru_toolkit"]
known_local_folder = ["src/szurubooru_toolkit"]
multi_line_output = 3
force_single_line = true

Expand All @@ -37,20 +37,20 @@ disallow_untyped_defs = true


[tool.poetry]
name = "szuru-toolkit"
version = "0.2.0"
description = "Python package and script collection to manage szurubooru"
name = "szurubooru-toolkit"
version = "0.3.0"
description = "Python package and script collection to manage szurubooru."
authors = ["reluce <reluce@fkosquad.moe>"]
license = "GPL-3.0-only"
readme = "README.md"
repository = "https://github.com/reluce/szurubooru-scripts"
documentation = "https://github.com/reluce/szurubooru-scripts"
keywords = ["szurubooru", "szuru", "booru"]
repository = "https://github.com/reluce/szurubooru-toolkit"
documentation = "https://github.com/reluce/szurubooru-toolkit"
keywords = ["szurubooru", "szuru", "booru", "saucenao", "deepbooru"]

[tool.poetry.scripts]
auto-tagger = 'szuru_toolkit.scripts.auto_tagger:main'
upload-media = 'szuru_toolkit.scripts.upload_media:main'
create-tags = 'szuru_toolkit.scripts.create_tags:main'
auto-tagger = 'szurubooru_toolkit.scripts.auto_tagger:main'
upload-media = 'szurubooru_toolkit.scripts.upload_media:main'
create-tags = 'szurubooru_toolkit.scripts.create_tags:main'

[tool.poetry.dependencies]
python = ">=3.8,<3.11"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from pathlib import Path
from time import sleep

from szuru_toolkit.utils import convert_rating
from szurubooru_toolkit.utils import convert_rating


os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
from pysaucenao import SauceNao as PySauceNao
from syncer import sync

from szuru_toolkit import Danbooru
from szuru_toolkit import Gelbooru
from szuru_toolkit.utils import audit_rating
from szuru_toolkit.utils import collect_sources
from szuru_toolkit.utils import convert_rating
from szuru_toolkit.utils import resize_image
from szuru_toolkit.utils import scrape_sankaku
from szurubooru_toolkit import Danbooru
from szurubooru_toolkit import Gelbooru
from szurubooru_toolkit.utils import audit_rating
from szurubooru_toolkit.utils import collect_sources
from szurubooru_toolkit.utils import convert_rating
from szurubooru_toolkit.utils import resize_image
from szurubooru_toolkit.utils import scrape_sankaku


class SauceNao:
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
from loguru import logger
from tqdm import tqdm

from szuru_toolkit import SauceNao
from szuru_toolkit import Szurubooru
from szuru_toolkit import config
from szuru_toolkit.utils import collect_sources
from szuru_toolkit.utils import sanitize_tags
from szuru_toolkit.utils import scrape_sankaku
from szuru_toolkit.utils import statistics
from szurubooru_toolkit import SauceNao
from szurubooru_toolkit import Szurubooru
from szurubooru_toolkit import config
from szurubooru_toolkit.utils import collect_sources
from szurubooru_toolkit.utils import sanitize_tags
from szurubooru_toolkit.utils import scrape_sankaku
from szurubooru_toolkit.utils import statistics


sys.tracebacklimit = 0
Expand Down Expand Up @@ -122,7 +122,7 @@ def main() -> None:
sauce = SauceNao(config)

if config.auto_tagger['deepbooru_enabled']:
from szuru_toolkit import Deepbooru
from szurubooru_toolkit import Deepbooru

deepbooru = Deepbooru(config.auto_tagger['deepbooru_model'])

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from loguru import logger

from szuru_toolkit import Config
from szuru_toolkit import Szurubooru
from szuru_toolkit import setup_logger
from szurubooru_toolkit import Config
from szurubooru_toolkit import Szurubooru
from szurubooru_toolkit import setup_logger


def main():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
from loguru import logger
from tqdm import tqdm

from szuru_toolkit import Post
from szuru_toolkit import Szurubooru
from szuru_toolkit import config
from szurubooru_toolkit import Post
from szurubooru_toolkit import Szurubooru
from szurubooru_toolkit import config


def get_files(upload_dir):
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from loguru import logger
from PIL import Image

from szuru_toolkit import Config
from szurubooru_toolkit import Config


# Keep track of total tagged posts
Expand Down

0 comments on commit c6d3578

Please sign in to comment.