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.6.tar.gz (25.3 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.6-py3-none-any.whl (28.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cookdir-0.1.6.tar.gz
  • Upload date:
  • Size: 25.3 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.6.tar.gz
Algorithm Hash digest
SHA256 95b06a25001af334e40d3d5595b3d471253fc18d27a8a91ecff267acac45b4b7
MD5 58a6bec85844aa67370a939b55aa5c89
BLAKE2b-256 a079bd7b0d3276f8b5ad54f1aac6b0b8793fe7a7ecf8a71ed22efe7020267847

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cookdir-0.1.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 63088924c2126d04692ff9839c1463fdbfdbb3626bd184361591c649f2484b63
MD5 69b9f50bee57b56d8246b13bc1225e34
BLAKE2b-256 a4afeb91585be60a3a737b25a42d019a560cb72ad8d7868a07fa3dfc52013554

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