Skip to main content

A CLI tool to generate prompts with project structure and file contents

Project description

kopipasta

A CLI tool to generate prompts with project structure and file contents.

Installation

You can install kopipasta using pipx (or pip):

pipx install kopipasta

Usage

To use kopipasta, run the following command in your terminal:

kopipasta [files_or_directories]

Replace [files_or_directories] with the paths to the files or directories you want to include in the prompt.

Example:

kopipasta . src/ config.json

This will generate a prompt including the project structure and contents of the specified files and directories, ignoring files and directories typically excluded in version control (based on common .gitignore patterns).

The generated prompt will be displayed in the console and automatically copied to your clipboard.

Features

  • Generates a structured prompt with project overview, file contents, and task instructions
  • Ignores files and directories based on common .gitignore patterns
  • Allows interactive selection of files to include
  • Automatically copies the generated prompt to the clipboard

License

This project is licensed under the MIT License.

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

kopipasta-0.1.0.tar.gz (4.5 kB view hashes)

Uploaded Source

Built Distribution

kopipasta-0.1.0-py3-none-any.whl (4.8 kB view hashes)

Uploaded Python 3

Supported by

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