grizzly_io 1.2.2

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 78

Grizzly IO

Readers and writers for several file formats (CSV, TSV, JSON, YAML, etc)

Usage

Labeled TSV

Read from file system

main() async {
      final tsv = await readLTsv('data/example.tsv');
      print(tsv);
}

Read from HTTP

main() async {
      final tsv = await requestLTsv('http://localhost:8000/example.tsv');
      print(tsv);
}

Read with custom separators

main() async {
      final tsv = await readCsv('data/example.csv', fieldSep: '|', textSep: "'");
      print(tsv);
}

Write

main() async {
      final csv = await readCsv('data/example.csv');
      String encoded = encodeCsv(csv);
}

example.tsv:

Name	Age	House
Jon	25	Stark
Dany	28	Targaryan
Tyrion	40	Lannister
Elia Martell	75	Martell

example.csv:

Name,Age,House
Jon,25,Stark
Dany,28,Targaryan
Tyrion,40,Lannister
Elia Martell,75,Martell

TODO

  • [ ] Read JSON
  • [ ] Write JSON
  • [ ] Read yaml
  • [ ] Write yaml
  • [ ] Read mongo
  • [ ] Write mongo
  • [ ] Handle zip files

Changelog

1.2.2

  • Bug fix: TypeConverter.toNum

1.2.1

  • Breaking changes to LabeledTsv

0.0.4

  • Replaced LabeledTsv with parseLabTsv and toLabTsv
  • Added LabeledTable and Table to fluently morph columns in a table

0.0.3

  • Browser and dart:io based loaders to read file formats from different sources

0.0.2

  • TypeConverter to convert type of columns in List or Map table

0.0.1

  • CsvParser to parse CSV-like files
  • LabeledTsv to read/write labeled TSV files

Use this package as a library

1. Depend on it

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


dependencies:
  grizzly_io: "^1.2.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:grizzly_io/grizzly_io.dart';
  
Version Uploaded Documentation Archive
1.2.2 Apr 15, 2018 Go to the documentation of grizzly_io 1.2.2 Download grizzly_io 1.2.2 archive
1.2.1 Apr 15, 2018 Go to the documentation of grizzly_io 1.2.1 Download grizzly_io 1.2.1 archive
1.1.5 Mar 19, 2018 Go to the documentation of grizzly_io 1.1.5 Download grizzly_io 1.1.5 archive
0.0.4-dev Sep 5, 2017 Go to the documentation of grizzly_io 0.0.4-dev Download grizzly_io 0.0.4-dev archive
0.0.3-dev Sep 4, 2017 Go to the documentation of grizzly_io 0.0.3-dev Download grizzly_io 0.0.3-dev archive
0.0.2-dev Sep 3, 2017 Go to the documentation of grizzly_io 0.0.2-dev Download grizzly_io 0.0.2-dev archive
0.0.1-dev Sep 3, 2017 Go to the documentation of grizzly_io 0.0.1-dev Download grizzly_io 0.0.1-dev archive

Analysis

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

  • Dart: 2.0.0-dev.63.0
  • pana: 0.11.3

Scores

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

Platforms

Detected platforms: Flutter, web, other

No platform restriction found in primary library package:grizzly_io/grizzly_io.dart.

Suggestions

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 5 hints.

    Strong-mode analysis of lib/src/type_converter/type_converter.dart gave the following hint:

    line: 15 col: 42
    'onError' is deprecated and shouldn't be used.

  • 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 grizzly_io.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.20.1 <2.0.0
http ^0.11.3 0.11.3+16
intl ^0.15.1 0.15.6
Transitive dependencies
async 2.0.7
charcode 1.1.1
collection 1.14.10
http_parser 3.1.2
path 1.6.1
source_span 1.4.0
string_scanner 1.0.2
typed_data 1.1.5
Dev dependencies
test ^0.12.0