grizzly_io 0.0.4-dev

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 49

Grizzly IO

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

Usage

Labeled TSV

Read

main() {
      final file = new File('data/labeled_tsv/normal.tsv');
      final tsv = new LabeledTsv.parse(file.readAsStringSync());
      expect(tsv.labels, ['Name', 'Age', 'House']);
      expect(tsv.data, hasLength(4));
      expect(tsv.data[0], {'Name': 'Jon', 'Age': '25', 'House': "Stark"});
      expect(tsv.data[1], {'Name': 'Dany', 'Age': '28', 'House': "Targaryan"});
      expect(
          tsv.data[2], {'Name': 'Tyrion', 'Age': '40', 'House': "Lannister"});
      expect(tsv.data[3],
          {'Name': 'Elia Martell', 'Age': '75', 'House': "Martell"});
}

normal.tsv:

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

TODO

  • [x] Read tsv
  • [ ] Write tsv
  • [ ] Read csv
  • [ ] Write csv
  • [ ] Read JSON
  • [ ] Write JSON
  • [ ] Read yaml
  • [ ] Write yaml
  • [ ] Read mongo
  • [ ] Write mongo
  • [ ] Handle zip files

Changelog

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

1. Depend on it

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


dependencies:
  grizzly_io: "^0.0.4-dev"

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:grizzly_io/grizzly_io.dart';
        
Version Uploaded Documentation 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

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 3, 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]
0 / 100
Health:
Code health derived from static analysis. [more]
99 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
98 / 100
Overall score:
Weighted score of the above. [more]
49

Platforms

Detected platforms: Flutter, web, other

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

Suggestions

  • Package is pre-release.

    Pre-release versions should be used with caution, their API may change in breaking ways.

  • 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 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.2
Transitive dependencies
async 2.0.3
charcode 1.1.1
collection 1.14.5
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
test ^0.12.0