Skip to content

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

License

Notifications You must be signed in to change notification settings

adborbas/qBittorrentKit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Languages