do_dart 0.1.3

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 57

do_dart BETA #

Pub support

A Dart SDK for the DigitalOcean Api v2

dependencies:
  do_dart: ^0.1.3 #latest version

Easy to use #

To get started, you need a DigitalOcean API key with sufficient privileges for the tasks you want to perform.

Then: Initializing the client

import 'package:do_dart/do_dart.dart';

Client client = Client(<DigitalOcean API Key>);

Examples #

Initializing the client

import 'package:do_dart/do_dart.dart';

Client client = Client(<DigitalOcean API Key>);

Creating a droplet

DropletCreateRequest dcr =
        DropletCreateRequest("test-droplet", 'nyc1', 's-1vcpu-1gb', 43515152, ssh_keys: [<SSH KEY ID or Fingerprint]);

Droplet d = await client.droplet.create(dcr);

The license is MIT.

Features and bugs #

Please file feature requests and bugs at the issue tracker.

##[0.1.2]

  • Fix owner_id field type in project (thanks to @mponkin)

##[0.1.2]

  • Added a Flutter example
  • Fixed type errors in Droplet model

##[0.1.1]

  • Implemented dartfmt suggestions

[0.1.0]

  • Beta release

Resource not implemented yet: #

  • Kubernetes
  • Load Balancers
  • Databases

Use this package as a library

1. Depend on it

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


dependencies:
  do_dart: ^0.1.3

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:do_dart/do_dart.dart';
  
Version Uploaded Documentation Archive
0.1.3 Apr 27, 2019 Go to the documentation of do_dart 0.1.3 Download do_dart 0.1.3 archive
0.1.2 Feb 19, 2019 Go to the documentation of do_dart 0.1.2 Download do_dart 0.1.2 archive
0.1.1 Feb 19, 2019 Go to the documentation of do_dart 0.1.1 Download do_dart 0.1.1 archive
0.1.0 Feb 16, 2019 Go to the documentation of do_dart 0.1.0 Download do_dart 0.1.0 archive
0.0.1 Feb 16, 2019 Go to the documentation of do_dart 0.0.1 Download do_dart 0.0.1 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
20
Health:
Code health derived from static analysis. [more]
98
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
90
Overall:
Weighted score of the above. [more]
57
Learn more about scoring.

We analyzed this package on Jun 25, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.3.2
  • pana: 0.12.18

Platforms

Detected platforms: Flutter, other

Primary library: package:do_dart/do_dart.dart with components: io.

Health suggestions

Fix lib/src/client.dart. (-1.49 points)

Analysis of lib/src/client.dart reported 3 hints:

line 103 col 9: DO use curly braces for all flow control structures.

line 106 col 9: DO use curly braces for all flow control structures.

line 116 col 11: DO use curly braces for all flow control structures.

Fix lib/src/utils.dart. (-1 points)

Analysis of lib/src/utils.dart reported 2 hints:

line 8 col 9: DO use curly braces for all flow control structures.

line 10 col 9: DO use curly braces for all flow control structures.

Maintenance suggestions

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and do_dart.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 >=2.1.0 <3.0.0
dio ^2.0.0 2.1.7
dotenv ^1.0.0 1.0.0
json_annotation ^2.0.0 2.4.0
Transitive dependencies
args 1.5.2
cookie_jar 1.0.0
dart2_constant 1.0.2+dart2
meta 1.1.7
Dev dependencies
build_runner ^1.0.0
json_serializable ^2.0.0
test ^1.5.3