🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

csv2api

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

csv2api

0.2.1
Version published
Maintainers
1
Created

CSV2API

Build Status Gem Version Dependency Status Code Climate security Inline docs Gitter chat

Auto-create json and xml APIs from csv files. Instant endpoints without any hassle.

Why should I use this?

  • Your boss/client hates you so they insist on sending you .csv files for their data.
  • You need to do a quick prototype and don't want to waste time importing / converting
  • You're bored and want to write an app with pre-historical data that you found on a floppy!
  • Your life depends on it (Disclaimer: Use at your own risk, jk you should be fine!)

Installation

Install it running:

$ gem install csv2api

Usage

Basic Example Code

To read from the current directory, run the following command

$ csv2api

Starting CSV2API...

2 csv files detected. Creating API endpoints...

tasks.csv - http://localhost:3000/tasks
weather.csv - http://localhost:3000/weather

Note: Endpoints can be accessed with the filename (spreadsheet view) or their .json, .xml extensions.

Spreadsheet View

csv2api_small

Load a specific folder

$csv2api -d office_stuff/sad_csvs/

Command-Line Application

Options:

  • -d, --directory - load csv files from directory
  • -v, --version - display the version
  • -h, --help - print help

TODO

Soon

  • Load single files
  • REST Support
  • WebUI

Author

Discussion

If you have any questions, ideas or a good joke:

Gitter chat

Contributing

Is it worth it? let me fork it

I put my thing down, flip it and debug it

Ti gubed dna ti pilf nwod gniht ym tup I

Ti gubed dna ti pilf nwod gniht ym tup I

FAQs

Package last updated on 06 Aug 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts