Skip to main content

A wrapper around the Szurubooru API, including type-safe Query and Sort tokens

Project description

szurubooru-client

SzurubooruClient is a wrapper around the excellently-documented Szurubooru API, including type-safe (if not API-safe) Query and Sort tokens.

Creating a new client

Basic authentication

Please keep in mind that this is not the preferred method of authentication. Tokens are far superior.

use szurubooru_client::SzurubooruClient;
let client = SzurubooruClient::new_with_basic_auth("http://localhost:5001", "myuser",
    "mypassword", true).unwrap();

Token authentication

The far superior and more secure means of authentication

use szurubooru_client::SzurubooruClient;
let client = SzurubooruClient::new_with_token("http://localhost:5001", "myuser", "sz-123456", true).unwrap();

For all other methods for making the requests, see the documentation.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

szurubooru_client-0.5.0.tar.gz (60.0 kB view hashes)

Uploaded Source

Built Distributions

szurubooru_client-0.5.0-pp310-pypy310_pp73-musllinux_1_2_x86_64.whl (5.3 MB view hashes)

Uploaded PyPy musllinux: musl 1.2+ x86-64

szurubooru_client-0.5.0-pp310-pypy310_pp73-musllinux_1_2_i686.whl (5.2 MB view hashes)

Uploaded PyPy musllinux: musl 1.2+ i686

szurubooru_client-0.5.0-pp310-pypy310_pp73-musllinux_1_2_armv7l.whl (4.9 MB view hashes)

Uploaded PyPy musllinux: musl 1.2+ ARMv7l

szurubooru_client-0.5.0-pp310-pypy310_pp73-musllinux_1_2_aarch64.whl (5.6 MB view hashes)

Uploaded PyPy musllinux: musl 1.2+ ARM64

szurubooru_client-0.5.0-pp39-pypy39_pp73-musllinux_1_2_x86_64.whl (5.3 MB view hashes)

Uploaded PyPy musllinux: musl 1.2+ x86-64

szurubooru_client-0.5.0-pp39-pypy39_pp73-musllinux_1_2_i686.whl (5.2 MB view hashes)

Uploaded PyPy musllinux: musl 1.2+ i686

szurubooru_client-0.5.0-pp39-pypy39_pp73-musllinux_1_2_armv7l.whl (4.9 MB view hashes)

Uploaded PyPy musllinux: musl 1.2+ ARMv7l

szurubooru_client-0.5.0-pp39-pypy39_pp73-musllinux_1_2_aarch64.whl (5.6 MB view hashes)

Uploaded PyPy musllinux: musl 1.2+ ARM64

szurubooru_client-0.5.0-pp39-pypy39_pp73-manylinux_2_17_i686.manylinux2014_i686.whl (5.2 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ i686

szurubooru_client-0.5.0-pp38-pypy38_pp73-musllinux_1_2_x86_64.whl (5.3 MB view hashes)

Uploaded PyPy musllinux: musl 1.2+ x86-64

szurubooru_client-0.5.0-pp38-pypy38_pp73-musllinux_1_2_i686.whl (5.2 MB view hashes)

Uploaded PyPy musllinux: musl 1.2+ i686

szurubooru_client-0.5.0-pp38-pypy38_pp73-musllinux_1_2_armv7l.whl (4.9 MB view hashes)

Uploaded PyPy musllinux: musl 1.2+ ARMv7l

szurubooru_client-0.5.0-pp38-pypy38_pp73-musllinux_1_2_aarch64.whl (5.6 MB view hashes)

Uploaded PyPy musllinux: musl 1.2+ ARM64

szurubooru_client-0.5.0-cp312-none-win_amd64.whl (2.7 MB view hashes)

Uploaded CPython 3.12 Windows x86-64

szurubooru_client-0.5.0-cp312-none-win32.whl (2.4 MB view hashes)

Uploaded CPython 3.12 Windows x86

szurubooru_client-0.5.0-cp312-cp312-musllinux_1_2_x86_64.whl (5.3 MB view hashes)

Uploaded CPython 3.12 musllinux: musl 1.2+ x86-64

szurubooru_client-0.5.0-cp312-cp312-musllinux_1_2_i686.whl (5.2 MB view hashes)

Uploaded CPython 3.12 musllinux: musl 1.2+ i686

szurubooru_client-0.5.0-cp312-cp312-musllinux_1_2_armv7l.whl (4.9 MB view hashes)

Uploaded CPython 3.12 musllinux: musl 1.2+ ARMv7l

szurubooru_client-0.5.0-cp312-cp312-musllinux_1_2_aarch64.whl (5.6 MB view hashes)

Uploaded CPython 3.12 musllinux: musl 1.2+ ARM64

szurubooru_client-0.5.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.1 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

szurubooru_client-0.5.0-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (4.9 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ ppc64le

szurubooru_client-0.5.0-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl (5.2 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ i686

szurubooru_client-0.5.0-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (4.6 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ ARMv7l

szurubooru_client-0.5.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (5.3 MB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ ARM64

szurubooru_client-0.5.0-cp312-cp312-macosx_11_0_arm64.whl (2.8 MB view hashes)

Uploaded CPython 3.12 macOS 11.0+ ARM64

szurubooru_client-0.5.0-cp312-cp312-macosx_10_12_x86_64.whl (2.8 MB view hashes)

Uploaded CPython 3.12 macOS 10.12+ x86-64

szurubooru_client-0.5.0-cp311-none-win_amd64.whl (2.7 MB view hashes)

Uploaded CPython 3.11 Windows x86-64

szurubooru_client-0.5.0-cp311-none-win32.whl (2.4 MB view hashes)

Uploaded CPython 3.11 Windows x86

szurubooru_client-0.5.0-cp311-cp311-musllinux_1_2_x86_64.whl (5.3 MB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.2+ x86-64

szurubooru_client-0.5.0-cp311-cp311-musllinux_1_2_i686.whl (5.2 MB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.2+ i686

szurubooru_client-0.5.0-cp311-cp311-musllinux_1_2_armv7l.whl (4.9 MB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.2+ ARMv7l

szurubooru_client-0.5.0-cp311-cp311-musllinux_1_2_aarch64.whl (5.6 MB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.2+ ARM64

szurubooru_client-0.5.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.1 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

szurubooru_client-0.5.0-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (4.9 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ppc64le

szurubooru_client-0.5.0-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl (5.2 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ i686

szurubooru_client-0.5.0-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (4.6 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARMv7l

szurubooru_client-0.5.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (5.3 MB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARM64

szurubooru_client-0.5.0-cp311-cp311-macosx_11_0_arm64.whl (2.8 MB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

szurubooru_client-0.5.0-cp311-cp311-macosx_10_12_x86_64.whl (2.9 MB view hashes)

Uploaded CPython 3.11 macOS 10.12+ x86-64

szurubooru_client-0.5.0-cp310-none-win_amd64.whl (2.7 MB view hashes)

Uploaded CPython 3.10 Windows x86-64

szurubooru_client-0.5.0-cp310-none-win32.whl (2.4 MB view hashes)

Uploaded CPython 3.10 Windows x86

szurubooru_client-0.5.0-cp310-cp310-musllinux_1_2_x86_64.whl (5.3 MB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.2+ x86-64

szurubooru_client-0.5.0-cp310-cp310-musllinux_1_2_i686.whl (5.2 MB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.2+ i686

szurubooru_client-0.5.0-cp310-cp310-musllinux_1_2_armv7l.whl (4.9 MB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.2+ ARMv7l

szurubooru_client-0.5.0-cp310-cp310-musllinux_1_2_aarch64.whl (5.6 MB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.2+ ARM64

szurubooru_client-0.5.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.1 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

szurubooru_client-0.5.0-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (4.9 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ppc64le

szurubooru_client-0.5.0-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl (5.2 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ i686

szurubooru_client-0.5.0-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (4.6 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARMv7l

szurubooru_client-0.5.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (5.3 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

szurubooru_client-0.5.0-cp310-cp310-macosx_11_0_arm64.whl (2.8 MB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

szurubooru_client-0.5.0-cp39-none-win_amd64.whl (2.7 MB view hashes)

Uploaded CPython 3.9 Windows x86-64

szurubooru_client-0.5.0-cp39-none-win32.whl (2.4 MB view hashes)

Uploaded CPython 3.9 Windows x86

szurubooru_client-0.5.0-cp39-cp39-musllinux_1_2_x86_64.whl (5.3 MB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.2+ x86-64

szurubooru_client-0.5.0-cp39-cp39-musllinux_1_2_i686.whl (5.2 MB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.2+ i686

szurubooru_client-0.5.0-cp39-cp39-musllinux_1_2_armv7l.whl (4.9 MB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.2+ ARMv7l

szurubooru_client-0.5.0-cp39-cp39-musllinux_1_2_aarch64.whl (5.6 MB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.2+ ARM64

szurubooru_client-0.5.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.1 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

szurubooru_client-0.5.0-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (4.9 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ppc64le

szurubooru_client-0.5.0-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl (5.2 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ i686

szurubooru_client-0.5.0-cp39-cp39-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (4.6 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARMv7l

szurubooru_client-0.5.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (5.3 MB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

szurubooru_client-0.5.0-cp39-cp39-macosx_11_0_arm64.whl (2.8 MB view hashes)

Uploaded CPython 3.9 macOS 11.0+ ARM64

szurubooru_client-0.5.0-cp38-none-win_amd64.whl (2.7 MB view hashes)

Uploaded CPython 3.8 Windows x86-64

szurubooru_client-0.5.0-cp38-none-win32.whl (2.4 MB view hashes)

Uploaded CPython 3.8 Windows x86

szurubooru_client-0.5.0-cp38-cp38-musllinux_1_2_x86_64.whl (5.3 MB view hashes)

Uploaded CPython 3.8 musllinux: musl 1.2+ x86-64

szurubooru_client-0.5.0-cp38-cp38-musllinux_1_2_i686.whl (5.2 MB view hashes)

Uploaded CPython 3.8 musllinux: musl 1.2+ i686

szurubooru_client-0.5.0-cp38-cp38-musllinux_1_2_armv7l.whl (4.9 MB view hashes)

Uploaded CPython 3.8 musllinux: musl 1.2+ ARMv7l

szurubooru_client-0.5.0-cp38-cp38-musllinux_1_2_aarch64.whl (5.6 MB view hashes)

Uploaded CPython 3.8 musllinux: musl 1.2+ ARM64

szurubooru_client-0.5.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.1 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

szurubooru_client-0.5.0-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (4.9 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ppc64le

szurubooru_client-0.5.0-cp38-cp38-manylinux_2_17_i686.manylinux2014_i686.whl (5.2 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ i686

szurubooru_client-0.5.0-cp38-cp38-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (4.6 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARMv7l

szurubooru_client-0.5.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (5.3 MB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARM64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page