PyMakeMeLazyNDumb an automation tool for geekz, v0.0.3 released

The v0.0.3 of PyMakeMeLazyNDumb contains :
pygenericroutines.py is a generic python module that comprises of several general purpose routines required most of the times by python automation tools. All the components of PyMakeMeLazyNDumb are based upon it heavily. This v0.0.3 of the module is same as it was in v0.0.2 .

pycreateflswthdr.py is a python app that creates various files having .c, .h, .cpp, .hpp, .java, .py, .pl, .rb, .lua, .php, .sh, .mak, .sql extensions with appropriate commented information headers. Some of the generic fields of the commented info headers are filled automatically. So use this simple but effective app next time when you want to generate files you or others could track later on.

The version 0.0.3 of the app also supports the configuration file feature to fill some of the entries in information header. For example – if you want to generate example1.c, example2.py, example.sql files in your home directory then the command to type is :

python pycreateflswthdr.py -d ~ example1.c example2.py example3.sql

If you want to append an info header to an already existing file then the command to type is :

python pycreateflswthdr.py -a example4.mak

If you want to stuff Author, Download link & License entries (these are the common fields among generated multiple files) in the generated information header(s) as per your choice then create a text file config.conf in the current working directory with entries as shown below :

# test config file for PyGenericRoutines

[pycreateflswthdr]
Author           = Ankur Kumar Sharma
Download link = https://richnusgeeks.wordpress.com
License          = Public Domain

here pycreateflswthdr is the section name contained in the square brackets and Author, Download link & License are the entries for which you want to use
your values instead of the automatically generated values. For example – if you want to generate (for append use -a option as shown above) example5.lua, example6.cpp, example7.rb with values taken from config.conf then the command to type is :

python ptcreateflswthdr.py -c example5.lua example6.cpp example7.rb

To see the usages of the app, the command is :

python  pycreateflswthdr.py -h

The app backs up existing files both in creation and append modes with extension .bak.timestamp .This app logs all the warning and error messages in a log file named activity.log in the current working directory from where pycreateflswthdr.py is invoked. Once this log file is created, all the subsequent warnings and errors are appended to it.

The download links for the project are :

Advertisements
Post a comment or leave a trackback: Trackback URL.

Comments

  • bet365  On November 23, 2010 at 4:55 pm

    Good day I was fortunate to approach your subject in digg
    your post is exceptional
    I obtain much in your website really thank your very much
    btw the theme of you website is really fabulous
    where can find it

  • Garret Philogene  On November 26, 2010 at 2:44 pm

    Love your site man keep up the good work

  • Roscoe Audelhuk  On November 26, 2010 at 2:45 pm

    Love your site man keep up the good work

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: