comliner

Command Line Interface Wrapper for Python Functions. Wrap your Python functions with a simple command line interface, so that they can be run directly from the command line, just like any shell command. This is achieved by simply adding a decorator in front of the function and creating a small standardized executible script.


License
GPL-3.0
Install
pip install comliner==0.4.1

Documentation

frog

Make programs out of your Python functions that can be run from the command line by simply adding a decorator in front of the function. The programs will have a commandline interface based on the optparse module, and load data from and save data to files (HDF5 format).

Copyright notice

Copyright (C) 2013-2014 Daniel Jung. Contact: djungbremen@gmail.com

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.