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.
⭐️ 8
🕓 1 year ago
iOS macOS
.package(url: "https://github.com/adborbas/qBittorrentKit.git", from: "0.1.3")

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
    

GitHub

link
Stars: 8
Last commit: 1 year ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Dependencies

Release Notes

v0.1.3
1 year ago

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