Skip to main content

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.

Release files for mergecraft 0.0.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mergecraft 0.0.10
File Size Uploaded
mergecraft-0.0.10.tar.gz 5.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mergecraft 0.0.10
File Interpreter ABI Platform
mergecraft-0.0.10-py3-none-any.whl Python 3 none any Details

Total release size: 11.7 kB

Release files / mergecraft-0.0.10.tar.gz

Download URL mergecraft-0.0.10.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a88fba08c43ecb534f150e3c96f75edeb5fe4d9b87545f81e3ef09dcc8c78d36
BLAKE2b-256 checksum
How to use checksums
36758f6b84430aca2322915a3171add3ca5b15f46c973c0c99b768e7e704759a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / mergecraft-0.0.10-py3-none-any.whl

Download URL mergecraft-0.0.10-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6684e19a7510dc0b3ae05c3c8b87fa803b524e41c3722fa27b728b62727e0a8b
BLAKE2b-256 checksum
How to use checksums
833faf804538e0225fab7bc17fd256b7fb47c4138eb676ef85f374aee9b59d4d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.0.10 This release

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page