No description
  • Rust 95.2%
  • Python 4.7%
  • Shell 0.1%
Find a file
Scott Lyons 5786aad1fe
Merge pull request #3 from slyons/dev/py37
Adding support for Python 3.7
2024-09-05 22:29:27 -07:00
.github/workflows ci(ci_yaml): fixing crates.io publishing step 2024-09-05 17:04:58 -07:00
docs docs(pydocs): full python wrapper documentation 2024-09-05 14:33:45 -07:00
szurubooru-client bump: version 0.5.0 → 0.6.0 2024-09-05 21:44:54 -07:00
tests feat(pyproject_toml): enabling python 3.7 support so this will work on my raspberry pi 2024-09-05 21:44:14 -07:00
.cz.toml ci(cz): adding commitizen config 2024-08-10 18:04:07 -07:00
.gitignore docs(gitignore): ignoring python docs build artifacts 2024-09-05 11:33:41 -07:00
.pre-commit-config.yaml fix(models): fixing parsing of snapshot data 2024-08-11 13:36:39 -07:00
Cargo.lock docs(changelog): updating changelog for 0.6 2024-09-05 21:45:28 -07:00
Cargo.toml test(szurubooru-integration-test): removing old integration test, relocated to /tests directory 2024-08-21 07:32:42 -07:00
CHANGELOG.md docs(changelog): updating changelog for 0.6 2024-09-05 21:45:28 -07:00
cliff.toml docs: Adding changelog 2024-08-10 00:42:58 -07:00
LICENSE docs(license): adding MIT license 2024-09-05 15:31:54 -07:00
README.md Reorganizing and documenting 2024-08-09 09:18:12 -07:00

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.