create directories by template
Project description
cookdir
Initializing directories and files by recipe(template)
Installation
pip install cookdir
Functions:
- create directories and files by a template name or a self-defined template yaml file.
- Usage:
cookdir cook pypkg pkgname --destination=your_pathcookdir cook template_file_path name
- Usage:
- list all existing template, or show the content of a particular template
- Usage:
cookdir listcookdir list pypkg
- Usage:
- template shortcut
- support file content template so files will be initilized with some content rather than empty
Template:
A template file looks like:
# this template is used for python package
DEFAULT:
- DEFAULT:
- __init__.py
- tests
- setup.py: pypkg_setup.tpl
A string followed by a colon means it is parent directory of the directories/files. Strings following "-" means these directories are in the same level. A filename followed by a colon and another template file means that the file will be initiated with the content in the template.
You can easily defined your own recipe(template) according the rules.
Wanting:
Anyone who has some useful recipe(template) can commit PR, and anyone has some function suggestion can commit PR or issues.
I appreciate all of you.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cookdir-0.1.5.tar.gz.
File metadata
- Download URL: cookdir-0.1.5.tar.gz
- Upload date:
- Size: 23.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f12c5be5f21974fe1d359ab0edf6a42efc6abea7ff01e5f912fa5231850a2c89
|
|
| MD5 |
e02f8fa9a09e96972ba879f6ccf0804c
|
|
| BLAKE2b-256 |
60a3c8715e992f72f28cacf85e08e5242cff343fa9dd44e719544251d0a3c371
|
File details
Details for the file cookdir-0.1.5-py3-none-any.whl.
File metadata
- Download URL: cookdir-0.1.5-py3-none-any.whl
- Upload date:
- Size: 24.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20b6b250ec453e01d15e2cbf879c8a3bb6fee2033498ca16560070df8e4153bc
|
|
| MD5 |
da1fbc413f8b3c847f00b3ee5799c915
|
|
| BLAKE2b-256 |
e6298e501f9526a8cbe05df46d717331de8d1596c5f92489409b8cee10fd4880
|