mr54ndm4n / Groot

Just a CSV Util Package! keep it simple, let's groot do it for you!

Home Page:https://www.nuget.org/packages/Groot/1.0.0#

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

I am Groot

Build Status codecov

https://www.nuget.org/packages/Groot/1.0.0#

Just a CSV Util Package! keep it simple, let's groot do it for you!

Features

Input Examples (CSV Format)

  name, tree_height
  groot, 36.468
  another_groot, 24.128
  more_groot, 24.35
  • Csv file to List of Key-Value (string, string) Dictionary
  var iamGroots = Groot.GetDictFromCsv(path);
  
  Console.WriteLine($"Groot's height is {iamGroots[0]["height"]}");
  • Csv file to List of Objects
  #Tree
  public class Tree
  {
        [GrootField("name")]
        public string name { get; set; }
        
        [GrootField("tree_height")]
        public decimal Height { get; set; }
  }
  
  //GrootField is the header column in csv files
  
  var iamGroots = Groot.GetObjectFromCsv<Tree>(path);
  Console.WriteLine($"Groot's height is {iamGroots[0].height}");
  

About

Just a CSV Util Package! keep it simple, let's groot do it for you!

https://www.nuget.org/packages/Groot/1.0.0#

License:Apache License 2.0


Languages

Language:C# 100.0%