A CLI tool to create project folder structures from a markdown file.
Project description
Nirman-cli
A simple and powerful CLI tool to create project folder and file structures from Markdown and YAML tree definitions.
Stop creating files and folders manually. Define your project’s skeleton in a readable Markdown or YAML file, and let nirman build it for you in seconds.
Key Features
-
Two Input Formats:
- Markdown (
.md,.markdown) - YAML (
.yml,.yaml)
- Markdown (
-
Readable Tree Syntax: Write clean collapsible structures.
-
Safe Execution: Preview actions with
--dry-run. -
Flexible: Overwrite files using
--force. -
Lightweight & Fast: Uses simple tree-based parsing.
-
Cross-platform: Works on Linux, macOS, and Windows.
Installation
Install from PyPI:
pip install Nirman-cli
Usage
1) Markdown Example
Create a file structure.md:
my-python-app/
├── src/
│ ├── __init__.py
│ └── main.py
├── tests/
│ └── test_main.py
└── README.md
Build the structure:
nirman structure.md
2) YAML Example
Nirman also supports YAML.
Rule: Individual files must be listed under a files: key.
Example (structure.yml):
project:
src:
files:
- main.py
- utils.py
services:
api:
files:
- handler.py
- routes.py
files:
- README.md
- .gitignore
Build it:
nirman structure.yml
This produces:
output_folder/
└── project/
├── src/
│ ├── main.py
│ └── utils.py
├── services/
│ └── api/
│ ├── handler.py
│ └── routes.py
├── README.md
└── .gitignore
Command-Line Options
usage: nirman [-h] [-o OUTPUT] [--dry-run] [-f] input_file
Build a project structure from a Markdown (.md) or YAML (.yml/.yaml) file.
positional arguments:
input_file Path to the structure file.
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.
YAML Rules (Important)
Your YAML structure must follow these rules:
-
Every folder is a dictionary key.
-
All direct files inside a folder must be placed under:
files: - file1.txt - file2.py
-
Nested folders must be dictionaries.
-
Lists may contain:
- file names (strings)
- dictionaries for nested folders
This rule is reflected in the updated parser:
# Individual files must be under "files:"
if key == "files":
...
License
This project is licensed under the MIT License. See the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nirman_cli-0.2.0.tar.gz.
File metadata
- Download URL: nirman_cli-0.2.0.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e206e0b203acc3c08cf166f5214cbf59b3fabd109a1fb9e3ffcf2943175d7f0a
|
|
| MD5 |
a8866f93222bb3100795728cda69fecd
|
|
| BLAKE2b-256 |
317445369214743db6ada1c9883e1dcc240dca5e3809ba925a712053c970de71
|
Provenance
The following attestation bundles were made for nirman_cli-0.2.0.tar.gz:
Publisher:
ci-cd.yml on Hemanth0411/Nirman-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nirman_cli-0.2.0.tar.gz -
Subject digest:
e206e0b203acc3c08cf166f5214cbf59b3fabd109a1fb9e3ffcf2943175d7f0a - Sigstore transparency entry: 715021346
- Sigstore integration time:
-
Permalink:
Hemanth0411/Nirman-cli@b13acdfc4fc55e38442e46f2be8a4a3c89e5ead6 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/Hemanth0411
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci-cd.yml@b13acdfc4fc55e38442e46f2be8a4a3c89e5ead6 -
Trigger Event:
push
-
Statement type:
File details
Details for the file nirman_cli-0.2.0-py3-none-any.whl.
File metadata
- Download URL: nirman_cli-0.2.0-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f710894db5a9d452133469aa1c32a8ba33d7bf66b4579bb0d2dea67adc8d2f8b
|
|
| MD5 |
bff8ebb226a4baddd90d174c9e5b3f41
|
|
| BLAKE2b-256 |
6e3aff5781e5e93e057748269042ed2a0baed797d4f315120a1b4b39dfb0e8f5
|
Provenance
The following attestation bundles were made for nirman_cli-0.2.0-py3-none-any.whl:
Publisher:
ci-cd.yml on Hemanth0411/Nirman-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nirman_cli-0.2.0-py3-none-any.whl -
Subject digest:
f710894db5a9d452133469aa1c32a8ba33d7bf66b4579bb0d2dea67adc8d2f8b - Sigstore transparency entry: 715021347
- Sigstore integration time:
-
Permalink:
Hemanth0411/Nirman-cli@b13acdfc4fc55e38442e46f2be8a4a3c89e5ead6 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/Hemanth0411
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci-cd.yml@b13acdfc4fc55e38442e46f2be8a4a3c89e5ead6 -
Trigger Event:
push
-
Statement type: