Coder Social home page Coder Social logo

shovel's Introduction

shovel

Tools suite for DevOps, build by Python

[TOC]

feature list

  • VSC tools
  • elasticsearch tools
    • data compare between indices
    • data reindex migration from index to another
  • file tools
    • transform csv to json
    • transform json to csv
  • monitor tools
    • cron job manage
  • mail tools
    • new mail receive trigger
  • others
    • ...

Build Guide

how to install

  • install requirements: python2 -m pip install -r requirements.txt
  • install shovel: python2 setup.py install
  • create tar.gz: python2 setup.py sdist --formats=gztar
  • create zip: python2 setup.py sdist --formats=zip
  • install from zip: python2 -m pip install shovel-0.0.1.zip

how to Unit Testing

  • run all tests: python -m unittest discover tests "Test*.py"
  • run specific tests: python tests/TestFileTransform.py

Usage Guide

create your configuration file

configuration items are locate in configuration file shovel_config.yaml.

init your own configuration, follow steps:

  1. copy shovel_config_template.yaml as shovel_config.yaml
    • python2 setup.py install will auto created shovel_config.yaml
  2. set configuration value in shovel_config.yaml

tools usage samples

  • python2 scripts/p4integratebyjob.py -j MyP4JobId
  • python2 scripts/elasticsearchcompare.py --leftIndex=codeworks_2018.* --rightIndex=codeworks_compare_2018.* --queryStmtFile=samples/es-query-stmt-sample.json --keyFields=timestamp,user_email
  • python2 scripts/csv2json.py --source=a.csv --target=a.json
  • python2 scripts/json2csv.py --source=b.json --target=b.csv

references

shovel's People

Contributors

codeworkscn 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.