Skip to main content

A command-line tool to merge files into a temporary file and open in VS Code. Designed to support AI-driven development.

Project description

mergecraft 🚀

Upload Python Package GitHub PyPI Python Version

mergecraft is a command-line tool engineered to assist development teams by merging files into a single temporary file and then opening it in Visual Studio Code. This tool is particularly useful in AI-driven development environments, where understanding the broader context of code changes is crucial.

🌟 Introduction to AI-Driven Development with mergecraft

In AI-driven development, tools like mergecraft play a pivotal role by reducing the cognitive load on developers. It enables them to focus more on refining the technology rather than getting bogged down with mundane tasks. By merging related files into a single view, mergecraft helps in providing a consolidated context, enhancing the capabilities of AI code assistants like StackSpot AI.

🚀 Benefits of Using mergecraft

  • Enhanced Productivity: Speeds up the development process by merging files quickly and efficiently, allowing developers to see everything in one place.
  • Reduced Errors: Minimizes the chance of overlooking context-related errors by providing a unified view of multiple files.
  • Support for AI Code Assistants: Improves the effectiveness of AI-driven tools which rely on understanding code in context, aiding in intelligent code completion and error correction.

⚙️ Installation

Setting Up Your Environment

To set up the mergecraft tool, you can now install it directly from PyPI:

pip install mergecraft

⬆️ Upgrading mergecraft

To upgrade to the latest version of mergecraft, you can use the following command:

pip install --upgrade mergecraft

📦 Install Locally

Alternatively, if you need to install from the source for the latest features or development purposes:

# Clone the repository
git clone https://github.com/your-username/mergecraft.git
cd mergecraft

# Create and activate a virtual environment
python -m venv env
source env/Scripts/activate  # Windows
source env/bin/activate      # Unix/Mac

# Install dependencies
pip install -r requirements.txt

# Install mergecraft
pip install .

# Deactivate the virtual environment
deactivate

🛠 How to Use mergecraft

Once installed, you can use mergecraft from any terminal:

mergecraft [options]

📝 Command-line Options

  • -e, --extensions: Specify which file extensions to include in the merge. Defaults to settings in mergecraft.config.yml.
  • --path: Set the root path for searching files. Defaults to the current directory.
  • --filter: Apply a regex filter to select files based on content or name.

⚙️ Configuration via mergecraft.config.yml

Configure mergecraft by editing the mergecraft.config.yml file, which allows you to specify extensions, and files or directories to skip:

extensions:
  - ".py"
  - ".txt"
skip_files:
  - ".gitignore"
  - "LICENSE"
  - "README.md"
  - "__init__.py"
  - "_*"
skip_directories:
  - "bin"
  - "obj"
  - ".git"

🎯 AI in Development: The Role of mergecraft

mergecraft supports AI-driven development by automating routine tasks like file merging, aiding in documentation, and streamlining code reviews. It helps bridge the gap between developers' needs for consistency and the requirements of fast-paced technology environments, making it an indispensable tool for modern development teams.

📜 License

mergecraft is released under the MIT License. See the LICENSE file for more 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

mergecraft-0.0.6.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

mergecraft-0.0.6-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file mergecraft-0.0.6.tar.gz.

File metadata

  • Download URL: mergecraft-0.0.6.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for mergecraft-0.0.6.tar.gz
Algorithm Hash digest
SHA256 09355fbf4991e256f07b749d0f541fbb173fd172988b3d5ef5723860b2b213cd
MD5 f2e38b292f9e7bae50426ddbdf498a81
BLAKE2b-256 3d6058b692fe3f023a874144db8ba24e6d69cf789af68023d501d0e111cbaff3

See more details on using hashes here.

File details

Details for the file mergecraft-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: mergecraft-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for mergecraft-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 f3f4d5ee7f26c7332a34b245bacff30eb371b43787d9049c7f2dd3cf9b39a886
MD5 91be5f8ca975911651a4232eda09c681
BLAKE2b-256 da2afceafd0e4e5d353445be9ce9e71be5a623c1f307e065047f8b7f38763909

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page