torrento 0.1.0

  • Readme
  • Changelog
  • Installing
  • 50

Torrential-lib #

A Dart package that wraps various Web APIS for controlling and managing torrent clients.

Supported Torrent Clients : #

  • ╬╝Torrent
  • BitTorrent
  • qBittorrent

Changelog #

Unreleased #

[0.1.0] - 2020-01-23 #

exporte exceptions to lib user. added await inside all async methods

[0.0.4] - 2020-01-20 #

Changed some of the method names in the interface

[0.0.1] - 2020-01-18 #

Changed #

  • Interface Refactor

Added #

  • Documentation

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  torrento: ^0.1.0

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:torrento/torrento.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
7
Health:
Code health derived from static analysis. [more]
90
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
50
Learn more about scoring.

We analyzed this package on Apr 7, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.6

Health suggestions

Fix lib/src/torrent_client_controllers/u_torrent/u_torrent_controller.dart. (-5.36 points)

Analysis of lib/src/torrent_client_controllers/u_torrent/u_torrent_controller.dart reported 11 hints, including:

line 58 col 7: DO use curly braces for all flow control structures.

line 74 col 47: DO use curly braces for all flow control structures.

line 112 col 12: Use isNotEmpty instead of length

line 134 col 12: Use isNotEmpty instead of length

line 156 col 12: Use isNotEmpty instead of length

Fix lib/src/torrent_client_controllers/qbittorrent/qbittorrent_controller.dart. (-2.96 points)

Analysis of lib/src/torrent_client_controllers/qbittorrent/qbittorrent_controller.dart reported 6 hints, including:

line 547 col 5: Future results in async function bodies must be awaited or marked unawaited using package:pedantic.

line 552 col 5: Future results in async function bodies must be awaited or marked unawaited using package:pedantic.

line 557 col 5: Future results in async function bodies must be awaited or marked unawaited using package:pedantic.

line 562 col 5: Future results in async function bodies must be awaited or marked unawaited using package:pedantic.

line 704 col 5: Future results in async function bodies must be awaited or marked unawaited using package:pedantic.

Fix lib/src/core/contracts/qbittorrent_controller/qbittorrent_controller.dart. (-0.50 points)

Analysis of lib/src/core/contracts/qbittorrent_controller/qbittorrent_controller.dart reported 1 hint:

line 10 col 12: Unnecessary new keyword.

Fix additional 9 files with analysis or formatting issues. (-1 points)

Additional issues in the following files:

  • lib/src/core/exceptions/exceptions.dart (1 hint)
  • lib/src/torrent_client_controllers/qbittorrent/session.dart (1 hint)
  • lib/src/core/constant.dart (Run dartfmt to format lib/src/core/constant.dart.)
  • lib/src/core/contracts/qbittorrent_controller/qbittorrent_session.dart (Run dartfmt to format lib/src/core/contracts/qbittorrent_controller/qbittorrent_session.dart.)
  • lib/src/core/contracts/session.dart (Run dartfmt to format lib/src/core/contracts/session.dart.)
  • lib/src/core/contracts/torrent_interface.dart (Run dartfmt to format lib/src/core/contracts/torrent_interface.dart.)
  • lib/src/core/contracts/utorrent_controller/utorrent_controller.dart (Run dartfmt to format lib/src/core/contracts/utorrent_controller/utorrent_controller.dart.)
  • lib/src/torrent_client_controllers/qbittorrent/utils.dart (Run dartfmt to format lib/src/torrent_client_controllers/qbittorrent/utils.dart.)
  • lib/torrento.dart (Run dartfmt to format lib/torrento.dart.)

Maintenance suggestions

Maintain an example.

None of the files in the package's example/ directory matches known example patterns.

Common filename patterns include main.dart, example.dart, and torrento.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.20.1 <3.0.0
html ^0.14.0+2 0.14.0+3
http ^0.12.0+2 0.12.0+4
Transitive dependencies
async 2.4.1
charcode 1.1.3
collection 1.14.12
csslib 0.16.1
http_parser 3.1.4
meta 1.1.8
path 1.6.4
pedantic 1.9.0
source_span 1.7.0
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6
Dev dependencies
test ^1.11.0