Swiftpack.co - adborbas/qBittorrentKit as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by adborbas.
adborbas/qBittorrentKit 0.1.3
qBittorrentKit is a light-weight qBittorrent client for iOS and macOS.
⭐️ 0
🕓 2 weeks ago
iOS macOS
.package(url: "https://github.com/adborbas/qBittorrentKit.git", from: "0.1.3")


qBittorrentKit is a light-weight qBittorrent client for iOS/macOS.

Getting started

  1. Initialize the client
let qBittorrent = qBittorrentWebAPI(scheme: .http,
                                    host: "myservice.local",
                                    authentication: .bypassed)
  1. Call any of the supported features
qBittorrent.torrents(hash: nil).sink { completion in
    print("torrents received")
} receiveValue: { torrents in


WebAPI methods of qBittorrent

Torrent properties

  • List torrents
  • Get torrent generic parameters
  • Set file priority
  • Get torrent content

Manage torrents

  • Add torrent
  • Delete torrent

qBittorent config

  • List categories
  • Get app preferences
  • Get webAPIVersion

Install via SPM

  1. Using Xcode go to File > Add Packages...
  2. Paste the project URL: https://github.com/adborbas/qBittorrentKit
  3. Click on next and select the project target

Running tests

Unit tests

  1. Start test by:

    swift test --filter UnitTests

Integration tests

  1. Install Docker

  2. Start qBittorrent server in Docker by:

    docker-compose -f ./Resources/docker-compose.yml up -d
  3. Run the tests

    swift test --filter IntegrationTests


Stars: 0
Last commit: 2 weeks ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.


Release Notes

2 weeks ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics