Skip to main content

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_path
      • cookdir cook template_file_path name
  • list all existing template, or show the content of a particular template
    • Usage:
      • cookdir list
      • cookdir list pypkg
  • 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cookdir-0.1.7.tar.gz (25.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cookdir-0.1.7-py3-none-any.whl (28.7 kB view details)

Uploaded Python 3

File details

Details for the file cookdir-0.1.7.tar.gz.

File metadata

  • Download URL: cookdir-0.1.7.tar.gz
  • Upload date:
  • Size: 25.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.4

File hashes

Hashes for cookdir-0.1.7.tar.gz
Algorithm Hash digest
SHA256 fc60200a82494412389f011e26470a4bd3b1903f410955217ca85bb21f902a7f
MD5 f3606dc567fdfb8a854e97535d78b112
BLAKE2b-256 e6116c4a84b8dd7ac997c4e360de1de575d9b189d115be47c08725242e4c1b61

See more details on using hashes here.

File details

Details for the file cookdir-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: cookdir-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 28.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.4

File hashes

Hashes for cookdir-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 5d343e653d711bbe2bfdb7f759ed318bde43a52d2d8630f06473937a1254c8e5
MD5 484a0c59942786c714a1c912eee17ee3
BLAKE2b-256 f5e4af8692740311305317276b7f194d566fd2b05c7e9a289718d5acb7e9d435

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page