Skip to main content

create files quickly and conveniently with the 'crt' utility

Project description

Fast and convenient tool for creating files


crt - a powerful command line tool designed to create files quickly and easily, and also allows you to create projects based on predefined templates. This tool will help you save time and increase productivity by eliminating the need to manually create files and organize content.


Possibilities

  • Fast File Creation: Create files instantly with simple commands.
  • Folder Creation: Easily create nested folder structures.
  • Template support: Use and create templates for frequently used projects and file types.
  • Flexibility: Easily customize templates to suit your needs.

Сapabilities :

  • files: can create files, folders and attachments.
  • temps: can create a project using a template (templates are stored in the "templates.json" file).

Description сapabilities:

  • files: accepts a string of folder and file names(wrap the string with names in quotes '"'), for enumeration use the sign ':', to create folders use '<>' signs. ext (optional option) - after specifying the line with files, indicate the extension of all these files separated by a space

    [crt {file_name} {ext}]

  • temps: -t,--temp - specify the name of the template, by default there are the following templates: "web-front", "web-back", "app", "project", "config" .

    [crt {temp_name}]


Installation

pip install crtfiles

---> 100%

Example

1) Creating a file:

crt main.py:test.py:requirements.txt

--->
your_folder/

├── main.py
├── test.py
└── requirements.txt

2) Сreating a file with the extension option:

crt main:test py

--->
your_folder/

├── main.py
└── test.py

3) Creating a folder:

crt "src<>:image<>:models<>"

--->
your_folder/

├── src/
├── image/
└── models/

4) Creating subfolders:

crt "src<models<>:assets<>>:lib<models<>>"

--->
your_folder/

├── src/
│   ├── models/
│   └── assets/

└──  lib/
    └── models/

5) Creating attachments:

crt "app<base.py:control.py>:backends<database<models.py>:base.py>"

--->
your_folder/

├── app/
│   ├── base.py
│   └── control.py

└──  backends/
    ├── database/
    │   └── models.py
    └── base.py

6) Сreating a project using a template:

crt -t app

--->
your_folder/

├── lib/
│   ├── screens/
│   ├── widgets/
│   ├── models/
│   ├── services/
│   ├── utils/
│   ├── assets/
│   └── main.py

├──  test/
├──  build/
├──  README.md
└──  .gitignore

Attention

if you are working in the cmd console, then the request must be wrapped in quotes "" to avoid conflicts with the folder creation characters '<>'


Setting up templates

You can easily add and edit templates. To do this, write on the command line:

pip show crtfiles

--->
Location: ...\Lib\site-packages\

open the "crt" folder, then open the "data" folder and add or edit templates in the "templates.json" file to suit your needs (add templates strictly according to the examples from the file, if you make a mistake the result can be disastrous)


Feedback:

I'm always glad to hear your feedback and suggestions for improving crt. Please leave your feedback.

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

crtfiles-1.1.1.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

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

crtfiles-1.1.1-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file crtfiles-1.1.1.tar.gz.

File metadata

  • Download URL: crtfiles-1.1.1.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.2

File hashes

Hashes for crtfiles-1.1.1.tar.gz
Algorithm Hash digest
SHA256 d419d5a8e4fe96288e9dddbcf86559c05a4d5a1429d073eaf520ddec2fd4e51f
MD5 acc214345e7c1e9653c46bb03f2fc3b6
BLAKE2b-256 e6e13ac67d7d805091aa4c5a3ab313f67441711bf6f1ddf79e9a64b57e3fad78

See more details on using hashes here.

File details

Details for the file crtfiles-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: crtfiles-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.2

File hashes

Hashes for crtfiles-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 57b5097a24f85b02dbad3ffdf79762303ef29dd2ec0745feee708fc4c478c7c8
MD5 2c88cb5ba3f870b937ca5c40e74058bf
BLAKE2b-256 3dd819b9971a4680499527d0cf5b6759da1fa6e95b38c66ef79125755814dc5c

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