aws_client 0.1.2

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 79

High-level APIs for Amazon Web Services (AWS) in Dart

Warning: incomplete, untested, but we accept pull requests :-)

Usage

A simple usage example:

import 'package:aws_client/aws_client.dart';
import 'package:http_client/console.dart';

main() async {
  var httpClient = newHttpClient();
  var credentials = new Credentials(accessKey: 'MY_ACCESS_KEY', secretKey: 'MY_SECRET_KEY');
  var aws = new Aws(credentials: credentials, httpClient: httpClient);
  var queue = aws.sqs.queue('https://my-queue-url/number/queue-name');
  await queue.sendMessage('Hello from Dart client!');
  httpClient.close();
}

How to contribute

This library is not an official library from Amazon or Google. It is developed by best effort, in the motto of "Scratch your own itch!", meaning we have APIs here that we care about. Looking for contributions:

  • tests:

    • never put AWS credentials inside the code
    • read AWS credentials from environment variables in the beginning
    • provide description what setup it needs upfront
  • API documentation

  • New API contribution:

    • please open an issue ticket first about what you are planning to implement
    • take a look at the implementation of the others, most of the API calls will be similar
    • always include a link to AWS API docs

Changelog

0.1.2

  • Dart 2 support.

0.1.1

  • Updated to use http_client 0.3.0.

0.1.0

Breaking changes:

  • Updated to use http_client 0.2.0, which has a slightly different API to initialize the HTTP Client.

0.0.2

  • Enable url-form-encoding (for POST requests).
  • Use POST request for SQS methods (enables larger messages to be sent).

0.0.1

  • Initial version.
  • Support for 3 methods in SQS.

Use this package as a library

1. Depend on it

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


dependencies:
  aws_client: ^0.1.2

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

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

3. Import it

Now in your Dart code, you can use:


import 'package:aws_client/aws_client.dart';
  
Version Uploaded Documentation Archive
0.1.2 Sep 9, 2018 Go to the documentation of aws_client 0.1.2 Download aws_client 0.1.2 archive
0.1.1 Mar 15, 2018 Go to the documentation of aws_client 0.1.1 Download aws_client 0.1.1 archive
0.1.0 Mar 24, 2017 Go to the documentation of aws_client 0.1.0 Download aws_client 0.1.0 archive
0.0.2 Mar 17, 2017 Go to the documentation of aws_client 0.0.2 Download aws_client 0.0.2 archive
0.0.1 Mar 8, 2017 Go to the documentation of aws_client 0.0.1 Download aws_client 0.0.1 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
69
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
70
Overall:
Weighted score of the above. [more]
79
Learn more about scoring.

We analyzed this package on Oct 10, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0
  • pana: 0.12.4

Platforms

Detected platforms: Flutter, other

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

Health suggestions

Fix lib/s3.dart. (-0.50 points)

Analysis of lib/s3.dart reported 1 hint:

line 12 col 8: Unused import: 'package:xml/xml.dart'.

Maintenance suggestions

The description is too short. (-20 points)

Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use aws_client.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
crypto ^2.0.1 2.0.6
http_client ^0.5.0 0.5.0
xml ^3.0.0 3.2.3
Transitive dependencies
charcode 1.1.2
collection 1.14.11
convert 2.0.2
executor 2.1.2
path 1.6.2
petitparser 2.0.2
stack_trace 1.9.3
typed_data 1.1.6