qBittorrentKit is a light-weight qBittorrent client for iOS/macOS.
- Initialize the client
let qBittorrent = qBittorrentWebAPI(scheme: .http,
host: "myservice.local",
authentication: .bypassed)
- Call any of the supported features
qBittorrent.torrents(hash: nil).sink { completion in
print("torrents received")
} receiveValue: { torrents in
print(torrents)
}
- List torrents
- Get torrent generic parameters
- Set file priority
- Get torrent content
- Add torrent
- Delete torrent
- List categories
- Get app preferences
- Get webAPIVersion
- Using Xcode go to File > Add Packages...
- Paste the project URL:
https://github.com/adborbas/qBittorrentKit
- Click on next and select the project target
-
Start test by:
swift test --filter UnitTests
-
Start qBittorrent server in Docker by:
docker-compose -f ./Resources/docker-compose.yml up -d
-
Run the tests
swift test --filter IntegrationTests