Skip to content
This repository was archived by the owner on Sep 2, 2024. It is now read-only.
/ pyboiler Public archive

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

License

Notifications You must be signed in to change notification settings

Link-/pyboiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages