Skip to main content

Unofficial CLI and Python client for the Kaizoku.NET API

Project description

kaizoku-client

CI PyPI Python Versions License: MIT

Unofficial CLI and Python client for the Kaizoku.NET API.

This project is not affiliated with, endorsed by, or maintained by the Kaizoku.NET project.

Naming

  • PyPI package: kaizoku-client
  • Import package: kaizoku
  • CLI command: kaizoku

Usage

Prerequisite: a running Kaizoku.NET server with its API reachable from your machine. The default API base URL is http://127.0.0.1:9833.

Run without installing permanently:

uvx --from kaizoku-client kaizoku --help

Install as a persistent CLI tool:

uv tool install kaizoku-client
kaizoku --help

Other install options:

pipx install kaizoku-client
pip install kaizoku-client

Override the API endpoint with --url or KAIZOKU_URL.

KAIZOKU_URL=http://127.0.0.1:9833 kaizoku metrics
kaizoku --url http://127.0.0.1:9833 providers --table
kaizoku --version

CLI Examples

kaizoku --help
kaizoku metrics
kaizoku providers --table
kaizoku search-sources --table
kaizoku search "Absolute Regression" --languages en --table
kaizoku library --table
kaizoku downloads --status waiting --table

Destructive commands are guarded. retry, delete, and cleanup --yes mutate the Kaizoku.NET server download queue; this CLI does not directly delete local files.

kaizoku delete "<download-id>" --yes
kaizoku cleanup --status completed
kaizoku cleanup --status completed --yes

cleanup is a dry run unless --yes is passed. Cleaning up running downloads requires --force-running.

Python Client

from kaizoku import KaizokuClient

client = KaizokuClient()
print(client.metrics())

Pass a custom base URL explicitly:

from kaizoku import KaizokuClient

client = KaizokuClient("http://127.0.0.1:9833")

Development

uv run kaizoku --help
uv run --group dev ruff check .
uv run --group dev ruff format --check .
uv run --group dev mypy
uv run --group dev pytest
uv build

Release

Releases are published from GitHub Actions with trusted publishing.

Before running the release workflow, manually bump version in pyproject.toml, run uv lock, update CHANGELOG.md, and commit those changes. The release workflow publishes exactly the version already committed to pyproject.toml; it does not bump versions automatically.

The workflow fails if the version already exists as a git tag, GitHub Release, TestPyPI release, or PyPI release.

Configure these GitHub environments before the first release:

  • testpypi
  • pypi

Configure trusted publishers for .github/workflows/release.yml on both TestPyPI and PyPI. The release workflow publishes to TestPyPI first, verifies an install with uvx, then publishes the same artifacts to PyPI.

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

kaizoku_client-0.1.0.tar.gz (43.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kaizoku_client-0.1.0-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file kaizoku_client-0.1.0.tar.gz.

File metadata

  • Download URL: kaizoku_client-0.1.0.tar.gz
  • Upload date:
  • Size: 43.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.18 {"installer":{"name":"uv","version":"0.11.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for kaizoku_client-0.1.0.tar.gz
Algorithm Hash digest
SHA256 19f282be13df7bfd752a54713fe61dfdfcf5520c3400fe0e113a79c019694591
MD5 af3023f3e8718301a788b06214fffeec
BLAKE2b-256 18570423f95a8148ac59bf2a72d8d89318b4876850d80a42316657aad32cdeaf

See more details on using hashes here.

File details

Details for the file kaizoku_client-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: kaizoku_client-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.18 {"installer":{"name":"uv","version":"0.11.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for kaizoku_client-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4acdfaf6c1618e476a9078cf7e704df27aebc3bdae05c310eeebde5d3e9c48b8
MD5 ff83979bb50da18a48ac562ca4fe7e21
BLAKE2b-256 f4b4d153658a93ef4259c38283dacf7a020f4827ae4e13d02a058f31553fea48

See more details on using hashes here.

Supported by

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