Skip to content

About

ProjectDump is a 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

Resources

Stars

83 stars

Watchers

0 watching

Forks

Repository files navigation

πŸš€ ProjectDump

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.


πŸ“¦ Features

  • πŸ” 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)

πŸ§‘β€πŸ’» Supported Technologies (Partial List)

  • 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

πŸ“‚ Output Example

πŸš€ 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
...

πŸš€ Usage

Run from the command line:

  python main.py /path/to/your/project

πŸ“ What It Ignores

  • Dependency folders: node_modules, venv, etc.

  • Media & binaries: .jpg, .exe, .log, etc.

  • Config/IDE: .git, .vscode, .github, etc.

  • Large files over 100MB

βœ… Requirements

Python 3.x

🀝 Contributing

Feel free to fork and contribute to enhance tech detection, support new stacks, or improve output formatting!

About

ProjectDump is a 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

Resources

Stars

83 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages