Coder Social home page Coder Social logo

boxed_cli's Introduction

boxed_cli

Spark / java utils to simplify writing programs in interacting black box paradigm

BOX

Google JSon - allows to read / save objects with fields annotated with @Expose to json format. Still there is a problem - JSon - knows nothing of type of saved object. To be able to save / read objects in JSon format - added Class Box

It have field "TYPE" - where class name is stored. This allows to save / read arbitrary class child of BOX, in json format (not knowing its type in advance)

Usage can be found in tests: org.boxed.cli.json.BoxTest

CLI

For command line usage - using args4j under the hood. Added sugar to simplify usage for java / scala Adds -h - auto help parameter generation, -d - debug level settings for the program simplify multi task job jeneration

single task - example in org.boxed.cli.run.Sample

multi task job - example in org.boxed.cli.run.MultiSample

( akka git - with different modes: brunch / clone / ... - all of them having help, descriptioni and params)

To run examples use cd $REPODIR mvn install java -cp target/boxed_cli-1.0.1-jar-with-dependencies.jar org/boxed/cli/run/{Sample,MultiSample}

Examples show main object content after parameter parsing using Box functionality.

boxed_cli's People

Contributors

pyal avatar

Watchers

 avatar Kostas Georgiou 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.