Link-/pyboiler


PyBoiler is a simple python 2.7 script to create a project template in a given directory.

License: WTFPL

Language: Python


PyBoiler

PyBoiler is a simple python 2.7 script to create a project template in a given directory.

Version

alpha-0.3.0

Installation

pip install pyboiler

Usage

PyBoiler is extremely simple to use.

Create a JSON file to match the folder structure you desire:
$: nano structure.json 

# Paste the below into your file and modify as you desire
[{'folder': 'source'}, 
 {'file': 'source/file1.txt'}, # Nested file
 {'folder': 'sublime'}, 
 {'file': 'sublime/file2.txt'}, 
 {'folder': 'docs'}, 
 {'file': 'docs/file3.txt'}, 
 {'file': 'docs/file4.txt'},
 {'file': 'README.md'}]
How to execute
usage: pyboiler.py [-h] -o PROJECT_PATH

required arguments:
	-o PROJECT_PATH, --project-directory PROJECT_PATH 
			Project's absolute path where the structure will be created  		
                    	
optional arguments:
  	-h, --help 	
  			Show this help message and exit
  			
    -s FOLDER_STRUCTURE, --folder-structure FOLDER_STRUCTURE
            JSON file containing the template folder/file
            structure to be created

Note: If the argument -i is not specified the script will use the default template (hardcoded)

Change Log

alpha-0.3.0

  • Input file argument changed to -s instead of -i
  • Temporarily removed jparser.py in order to make room for further serializers in future releases (XML, yaml etc...)
  • Code refactoring and cleanup

alpha-0.2.0

  • Folder and File structure template can be imported from a JSON file
  • Added jparser.py to parse and validate the JSON file

Tests

This script has been tests on Mac OS X 10.9.4 only. There is no guarantee it will perform as expected on other Operating Systems.

LICENSE

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE

		Version 2, December 2004

Copyright (C) 2014 Bassem Dghaidi <bd@bassemdy.com>

Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.

	DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
	TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

0. You just DO WHAT THE FUCK YOU WANT TO.

Project Statistics

Sourcerank 4
Repository Size 36.1 KB
Stars 11
Forks 1
Watchers 2
Open issues 5
Dependencies 0
Contributors 2
Tags 3
Created
Last updated
Last pushed

Top Contributors See all

Omar Abou Mrad Bassem Dghaidy

Recent Tags See all

alpha-0.3.0 November 21, 2015
alpha-0.2.0 January 02, 2015
alpha-0.1.4 January 02, 2015

Something wrong with this page? Make a suggestion

Last synced: 2017-05-09 16:58:05 UTC

Login to resync this repository