Skip to main content

A CLI tool to create project folder structures from a markdown file.

Project description

Nirman-cli

PyPI Version License

A simple and powerful CLI tool to create project folder and file structures from a Markdown tree.

Stop creating files and folders manually. Define your project's skeleton in a readable Markdown file and let nirman build it for you in seconds.

Key Features

  • Intuitive Input: Uses a visual, tree-style Markdown format.
  • Safe by Default: Includes a --dry-run mode to preview changes.
  • Flexible: Supports overwriting files with the --force flag.
  • Simple & Lightweight: No external dependencies.

Installation

You can install Nirman-cli directly from PyPI:

pip install Nirman-cli

Usage

  1. Create a Markdown file (e.g., structure.md) defining your desired project layout:

    my-python-app/
    ├── src/
    │   ├── __init__.py
    │   └── main.py
    ├── tests/
    │   └── test_main.py
    ├── .gitignore
    └── README.md
    
  2. Run the nirman command from your terminal:

    nirman structure.md
    

    This will create the my-python-app/ directory and all its contents in your current location.

Command-Line Options

usage: nirman [-h] [-o OUTPUT] [--dry-run] [-f] input_file

Build a project structure from a Markdown tree file.

positional arguments:
  input_file            Path to the Markdown file containing the project structure.

options:
  -h, --help            show this help message and exit
  -o OUTPUT, --output OUTPUT
                        Target directory where the structure will be created (default: current directory).
  --dry-run             Print the actions that would be taken without creating any files or directories.
  -f, --force           Overwrite existing files if they are encountered.

License

This project is licensed under the MIT License. See the LICENSE file for details.

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

nirman_cli-0.1.1.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

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

nirman_cli-0.1.1-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file nirman_cli-0.1.1.tar.gz.

File metadata

  • Download URL: nirman_cli-0.1.1.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for nirman_cli-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9c0d6e2f2ab1459db26e0e385def2e7e6f0e8b790e0efaff79313b385c2ea5b8
MD5 98310a07bf7295dba1ec0286d2fdadbd
BLAKE2b-256 24f67b97658ef0b5cafb03bf5ce3661e232e31562006afab97005f2ad7c78922

See more details on using hashes here.

File details

Details for the file nirman_cli-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: nirman_cli-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for nirman_cli-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3b5188446fe13826af829f79e450193ec4a4dea911139b5811757075df9b19c2
MD5 aa055d1f5a46adc797c6664d30d838a0
BLAKE2b-256 2fac1d97dff02b06b63c3a89e8d29019a3e70cd519da66de8e76cf6cf9d20836

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