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.
Metadata
Release files for cookdir 0.1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| cookdir-0.1.7.tar.gz | 25.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cookdir-0.1.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 53.9 kB
Release files / cookdir-0.1.7.tar.gz
| Download URL | cookdir-0.1.7.tar.gz |
|---|---|
| Size | 25.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fc60200a82494412389f011e26470a4bd3b1903f410955217ca85bb21f902a7f
|
|
BLAKE2b-256 checksum How to use checksums |
e6116c4a84b8dd7ac997c4e360de1de575d9b189d115be47c08725242e4c1b61
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.4
|
Release files / cookdir-0.1.7-py3-none-any.whl
| Download URL | cookdir-0.1.7-py3-none-any.whl |
|---|---|
| Size | 28.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5d343e653d711bbe2bfdb7f759ed318bde43a52d2d8630f06473937a1254c8e5
|
|
BLAKE2b-256 checksum How to use checksums |
f5e4af8692740311305317276b7f194d566fd2b05c7e9a289718d5acb7e9d435
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.4
|
Security for cookdir 0.1.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.