grizzly_io 1.2.2

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 0

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

Alternatively, your editor might support pub 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
Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
--
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
--
Overall:
Weighted score of the above. [more]
0
Learn more about scoring.

The package version is not analyzed, because it does not support Dart 2. Until this is resolved, the package will receive a health and maintenance score of 0.

Analysis issues and suggestions

Support Dart 2 in pubspec.yaml.

The SDK constraint in pubspec.yaml doesn't allow the Dart 2.0.0 release. For information about upgrading it to be Dart 2 compatible, please see https://www.dartlang.org/dart-2#migration.

Maintenance issues and suggestions

Running dartdoc failed. (-10 points)

Make sure dartdoc runs without any issues.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.20.1 <2.0.0