A tool to dump project structure and file contents to Markdown format
Project description
mdump
A tool for generating project structure documentation in Markdown format.
Description
mdump is a CLI tool that allows you to quickly generate a project overview containing:
- Directory structure (similar to
tree) - Contents of all text files
- Automatic ignoring of files listed in
.gitignore - Ability to exclude specific folders, files, and extensions
- Automatic copying of results to the clipboard
Installation
uv build
uv tool install dist/mdump-*.whl
Usage
# Dump the current directory
mdump
# Dump a specific directory
mdump ./test-project
# Dump with output saved to a file
mdump --output project-dump.md
# Dump with automatic copying to the clipboard
mdump --clipboard
# Dump excluding specific folders
mdump --exclude-dirs node_modules,dist,build
# Dump excluding specific extensions
mdump --exclude-extensions .pyc,.log,.tmp
# Display help
mdump --help
Options
--output, -o: Save the output to a file instead of displaying it on stdout--clipboard, -c: Copy the output to the clipboard--exclude-dirs: Comma-separated list of folders to exclude--exclude-files: Comma-separated list of files to exclude--exclude-extensions: Comma-separated list of extensions to exclude--no-gitignore: Do not use rules from .gitignore--max-file-size: Maximum file size to include (default 1MB)--help: Display help
Example Output
# Project Structure
project/ ├── src/ │ ├── main.py │ └── utils.py ├── tests/ │ └── test_main.py ├── README.md └── requirements.txt
## File Contents
### src/main.py
```python
def main():
print("Hello, World!")
src/utils.py
def helper_function():
return "Helper"
License
MIT License
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 mdump-0.4.1.tar.gz.
File metadata
- Download URL: mdump-0.4.1.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f5d9c55d6bf76db8ff49885b70c83e551dfe2ea1931c6d108a814bcee31a2251
|
|
| MD5 |
9c11f7ec1428c2e0bd131be58165c1f3
|
|
| BLAKE2b-256 |
3960cc46c0849cb9b48467089dee2ed58c3d02b44a1efccc347dcf585e2748ad
|
File details
Details for the file mdump-0.4.1-py3-none-any.whl.
File metadata
- Download URL: mdump-0.4.1-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e63474a455222a565109997be32c1fe460ff1c3a0c8fac3e5f484d47f98f9bc1
|
|
| MD5 |
227fcf0d47e860d6279ad76b1618bf5a
|
|
| BLAKE2b-256 |
ea09a744f4f0d80a0368fe73c09be078ea371bfe6e8fadcc3e2d5f02f33361fa
|