Giter VIP home page Giter VIP logo

simplifiedapp's Issues

Class methods

Add support for class methods. Class methods should be treated like regular callables since the class shouldn't be instantiated.

Tests!

Add tests to the code. Cover as much as possible.

Main's everything is optional switch

Add a switch to the main function that would convert all parameters into optional parameters. The idea is that you might want to add all those parameters in a configuration file and feed just that to your code. That's currently not possible since argparse will complain that you're missing parameters.

Handle input

Parse input data and add it to the configuration dictionary.

Implement the --input-file switch, to pull the input from a file. It will consume two arguments; first the file path and second a file format. Initially support config_file and json. By using argparse.FileType it will enable the use of the standard input using the special file name "-".

Move the "--config-file" logic to one of this input file.

Multipass argparse tree calculation

Load the input files specified in the command line and populate an initial configuration dict. Calculate the parameters still required based on that initial configuration dict. The idea is that you could have you required parameters on a file and feed them to your program, removing the need to provide it in the command line. You could still provide it as an optional parameter, to override the value provided in the input files.

Portable module

Convert the module into a single file distribution so it's easier to bundle

Improve output handling

Replace the current --json switch with the pair:
--output-format switch would change the way the result gets out and will accept: human (pprint), print (for anal devs), debug (repr) and json, for now. Maybe YAML and others could be added in the future.
--output-file switch will add the possibility of redirecting the result to a file instead of stdout. The stderr output won't be part of this, so it would use the console output (all that logging code)

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.