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.4.tar.gz (16.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.4-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cookdir-0.1.4.tar.gz
  • Upload date:
  • Size: 16.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for cookdir-0.1.4.tar.gz
Algorithm Hash digest
SHA256 45e8a70e28c0008c3c194a4c10ac0ca7b1a5d307c155500065c9073fa1c1239f
MD5 bb56ff12440ca9ce27c013d4ff0344b3
BLAKE2b-256 571fc196843f0c87d70c35f7c1015c557f3c2502534c3e36b9f805b43e0fa51f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cookdir-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 17.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for cookdir-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9f875d969aab4ccf65bd5f9f08aec9f81fa0cb8d9cbe2fead41143f2a7788e05
MD5 95e49f72d9c0767e9f215e6c2840a9bb
BLAKE2b-256 0511dcb94ad8b8907d6413e134aa955c2781b00d671f681e12533197c50aa423

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