PyBoiler is a simple python 2.7 script to create a project template in a given directory.
alpha-0.3.0
pip install pyboiler
PyBoiler is extremely simple to use.
$: 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'}]
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)
- 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
- Folder and File structure template can be imported from a JSON file
- Added jparser.py to parse and validate the JSON file
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.
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.