Giter Site home page Giter Site logo

bane's Introduction

Bane The Reckoning of CSV Files

I have 3 goals for this project

1.  Create an interface that makes it easy for users to manipulate data expressed in a 2D matrix (csv and excel files)
	written in Go, giving them to tools to automate IO when it comes to csv files

2.  A lot csv files that I have worked with have a lot of garbage that you can throw away. Sure, you can just open your
	spreadsheet editor of choice but why not do this from the command line?  Simply specify the columns you want and it 
	will out a new csv file of those contents.  I would like to add more functionality that could be chained together
	with pipes.
	
3.	Sometimes it is not a matter of keeping/removing columns.  You need more power. You need to query these csv files, I
	chose SQL since it is what I am familar with,  Currently, it would be more be more robust to use a CLI provided by your
	database of choice, but writing create table statements for a large file is too much for me! You could use this to 
	generate a Create table statement automatically but it currently only supports strings and integers, however a lot of
	the time that is all you need.  As a work around you currently have to write queries to fit the SQL ie seperating
	the queries and values.  I would like to eventually move away from this as I don't care about risk of database 
	injections because this is intended to run locally and the table is deleted when the program exits.  
	I may have to write my own driver for this but I will do more research.

Cut with ./bane -c 2,3,4 (columns of choice) *.csv

Query with ./bane -db -t (table name) *.csv. NOTE you will have to change the database variables in main.go Check it out, fork it, make changes!

bane's People

Contributors

njr8392 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.