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.3.tar.gz (16.1 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.3-py3-none-any.whl (17.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cookdir-0.1.3.tar.gz
  • Upload date:
  • Size: 16.1 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.3.tar.gz
Algorithm Hash digest
SHA256 d1f1d489e6fb3c94d3e3cae9669006adad2ad99b7cdf4d65f5f83c7000ccae0e
MD5 ab0f1cd4e0bcaadcd7bb621152177fae
BLAKE2b-256 f09721ef4c05115b03c0211640e68dff9f3f13af023bb10b708510a24becdf58

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cookdir-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 17.3 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3684372c769cdd361d8aeac6a1612473ff4c617c8352cf834262ce5910216b7c
MD5 df74be0aa9c90172c2ef165060a45089
BLAKE2b-256 a5f6f6bec8b9fe5984f085236e21d70e430ecefd9c1ba98e72e06eb516e77bfb

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