grpc 0.3.0

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 84

The Dart implementation of gRPC: A high performance, open source, general RPC framework that puts mobile and HTTP/2 first.

Build Status

Usage

See the route_guide example for an example on how to use this package.

Status

This package is currently in beta: It is available for general usage, and is considered feature complete.

If you experience issues, or if you have feature requests, please open an issue.

Notes

This library requires Dart SDK version 1.24.3 or later.

0.3.0 - 2018-02-05

  • Added authentication metadata providers, optimized for use with Google Cloud.
  • Added service URI to metadata provider API, needed for Json Web Token generation.
  • Added authenticated cloud-to-prod interoperability tests.
  • Refactored connection logic to throw initial connection errors early.

0.2.1 - 2018-01-18

  • Updated generated code in examples using latest protoc compiler plugin.
  • Dart 2.0 fixes.
  • Changed license to Apache 2.0.

0.2.0 - 2017-12-15

  • Implemented support for per-RPC metadata providers. This can be used for authentication providers which may need to obtain or refresh a token before the RPC is sent.

0.1.0 - 2017-10-12

The API is shaping up, but may still change as more advanced features are implemented.

0.0.1 - 2017-07-05

  • Initial version.

This package is in a very early and experimental state. We do not recommend using it for anything but experiments.

1. Depend on it

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


dependencies:
  grpc: "^0.3.0"

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 packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:grpc/grpc.dart';
        
Version Uploaded Documentation Archive
0.3.0 Feb 5, 2018 Go to the documentation of grpc 0.3.0 Download grpc 0.3.0 archive
0.2.1 Jan 18, 2018 Go to the documentation of grpc 0.2.1 Download grpc 0.2.1 archive
0.2.0 Dec 15, 2017 Go to the documentation of grpc 0.2.0 Download grpc 0.2.0 archive
0.1.0 Oct 12, 2017 Go to the documentation of grpc 0.1.0 Download grpc 0.1.0 archive
0.0.1 Jul 5, 2017 Go to the documentation of grpc 0.0.1 Download grpc 0.0.1 archive

Analysis

This feature is new.
We welcome feedback.
More details: scoring.

We analyzed this package, and provided a score, details, and suggestions below.

  • completed on Feb 5, 2018
  • Dart: 2.0.0-dev.20.0
  • pana: 0.10.1

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
69 / 100
Health:
Code health derived from static analysis. [more]
100 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100 / 100
Overall score:
Weighted score of the above. [more]
84

Platforms

Detected platforms: Flutter, other

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

Suggestions

  • The description is too short.

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

  • Package is pre-v1 release.

    While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction API.

  • Maintain an example.

    None of the files in your example/ directory matches a known example patterns. Common file name patterns include: main.dart, example.dart or you could also use grpc.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.24.3 <2.0.0
async ^1.13.3 1.13.3 2.0.3
googleapis_auth ^0.2.3+6 0.2.4
http2 ^0.1.7 0.1.7
meta ^1.0.5 1.1.2
Transitive dependencies
charcode 1.1.1
collection 1.14.5
convert 2.0.1
crypto 2.0.2+1
http 0.11.3+16
http_parser 3.1.1
path 1.5.1
source_span 1.4.0
string_scanner 1.0.2
typed_data 1.1.5
Dev dependencies
mockito ^2.0.2
test ^0.12.0