Skip to content

Latest commit

 

History

History
76 lines (51 loc) · 1.46 KB

README.md

File metadata and controls

76 lines (51 loc) · 1.46 KB

qBittorrentKit

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
    print(torrents)
}

Features

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