grizzly_io 3.0.1 copy "grizzly_io: ^3.0.1" to clipboard
grizzly_io: ^3.0.1 copied to clipboard

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

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
15
likes
150
points
221
downloads

Publisher

unverified uploader

Weekly Downloads

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

http, intl

More

Packages that depend on grizzly_io