Giter Club home page Giter Club logo

speedcurve2csv's Introduction

Speedcurve2csv

speedcurve2csv converts SpeedCurve tests data to CSV. If you do not want to dabble with code, you can run analysis on your data with Excel, Google Sheets or any other spreadsheet.

Tests exported from SpeedCurve are in JSON format. A JSON file containing the tests can be piped to speedcurve2csv via stdin, or passed as the first parameter. If no output flag is specified, the CSV is sent to stdout.

speedcurve2csv can also fetch data from SpeedCurve and automate the process of collecting tests and coverting them to CSV. In this case it requires the API key from speedcurve and either the --listurls flag (to see all available URLs) or the --url flag (to get the actual tests). Note that URLs each API key refers to a different group of URLs and tests on SpeedCurve). You can save your API key with --save to avoid specyfing it at every run.

Getting Started

Install the Speedcurve2csv command line tool:

npm install -g speedcurve2csv

List all available URLs:

speedcurve2csv -k myAPIkey --save -l

And then get a set of tests:

speedcurve2csv -k myAPIkey -u URLid

Or, pass a JSON file with tests previously downloaded from SpeedCurve APIs:

Also via piping, and to a file:

cat speedcurve-url-export.json | speedcurve2csv -o speedcurve-url-export.csv

Usage

Usage: speedcurve2csv <path> [<options>]

Path:
    Path to a file containing the JSON export from a SpeedCurve URL.
    This parameter is ignored when the JSON file is being piped via stdin, e.g. cat speedcurve-export.json | speedcurve2csv


Options:
    -o, --output FILE   File path to output the results of the conversion to
    -k, --apikey API    API key from Speedcurve for the site to fetch, required for --listurls and --url
    -s, --save          Saves the API key. To clear the saved key, pass a new one with -k
    -u, --url NUM       URL id from Speedcurve of the tests to fetch
    -l, --listurls      List all URLs available from Speedcurve
    -d, --days NUM      Number of days of tests to fetch (max 365, default 7)
    -v, --version       Print speedcurve2csv version number
    -h, --help          Show this help text

Credits

speedcurve2csv is more than loosely based on medic from Roland Warmerdam [medic]: https://github.com/Rowno/medic

License

Speedcurve2csv is released under the MIT license.

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.