ProjectDump is a Python CLI tool that detects a project's technologies, filters out non-essential files, and compiles the source code and directory structure into a single readable file.
- π Auto-detects technologies (Python, JavaScript, Java, etc.)
- π§Ή Skips dependencies, binaries, media, and config clutter
- π² Generates a clean directory tree
- π Dumps readable source code with syntax highlighting
- β‘ Handles large projects and ignores huge files (>100MB)
- Languages: Python, JS/TS, Java, Kotlin, PHP, Ruby, Go, Rust, C#, Dart, R, Scala, Elixir
- Frameworks: React, Vue, Svelte, Angular, Next.js, Nuxt, Flutter, Android, iOS
- Infra: Docker, Kubernetes, Terraform, Ansible
- CI/CD: GitHub Actions, GitLab CI, CircleCI
π PROJECTDUMP
========================================
π Select language (en/vi): en
π Enter the project folder path: /path/to/your/project
π Analyzing project at: /path/to/your/project
π Scanning directories...
π οΈ Detected technologies: python
π Extensions included: .py, .pyi, .pyx
π Generating directory tree...
π Processing files...
π Processing: aggregator.py
π Processing: constants.py
π Processing: detector.py
π Processing: filters.py
π Processing: one_file_version.py
π Processing: tree_generator.py
π Processing: __main__.py
β
Success! File created: /path/to/your/project/source_dump.txt
π Summary:
- Files processed: 7
- Output size: 30275 characters (~28 KB)
- Total lines: 870
π Done! The source_dump.txt file is ready.Inside source_dump.txtdemo:
# ==================================================
# Path: /path/to/your/project
# Detected tech: python
# ==================================================
## DIRECTORY STRUCTURE
New folder/
βββ __pycache__/
βββ __main__.py
βββ aggregator.py
βββ constants.py
βββ detector.py
βββ filters.py
βββ one_file_version.py
βββ source_dump.txt
βββ tree_generator.py
## FILE CONTENTS
### __main__.py
import os
...
Run from the command line:
python main.py /path/to/your/project-
Dependency folders: node_modules, venv, etc.
-
Media & binaries: .jpg, .exe, .log, etc.
-
Config/IDE: .git, .vscode, .github, etc.
-
Large files over 100MB
Python 3.x
Feel free to fork and contribute to enhance tech detection, support new stacks, or improve output formatting!