Skip to main content

CLI assistant for generating standardized task descriptions using AI

Project description

TicketPlease

CLI assistant for generating standardized task descriptions using AI.

Demo

Overview

TicketPlease is a command-line tool that helps developers and engineers generate high-quality, standardized task descriptions for platforms like Jira and GitHub using AI. It provides an interactive flow to collect key requirements and produces formatted text ready to copy and paste.

Features

  • Interactive Guided Flow: Step-by-step questions to collect all necessary information, including multiline support for detailed task descriptions
  • AI-Powered Content Generation: Uses LLMs to process user responses and generate complete, well-formatted descriptions
  • Multi-Platform Support: Generates output in Markdown for GitHub or Jira text markup format
  • Configurable Setup: Interactive wizard guides you through API key and AI model configuration when running tk config for the first time or if no configuration file exists
  • Persistent Preferences: Saves user preferences for language, file paths, and platform
  • Iterative Refinement: Allows users to request modifications to generated text
  • Multilingual Support: Accepts input in user's language and generates output in configured language
  • Clipboard Integration: Automatically copies final text to clipboard for immediate use

LLM Model Configuration

TicketPlease leverages LiteLLM to provide a flexible and configurable way to interact with various Large Language Model (LLM) providers and models. This allows you to choose your preferred AI provider (e.g., OpenAI, Anthropic, Google, OpenRouter) and the specific model you wish to use.

During the tk config setup, you will be presented with a curated list of commonly used and supported models for your chosen provider. This list is dynamically fetched via LiteLLM.

Custom Model Specification: If your desired model is supported by LiteLLM but does not appear in the default list provided during configuration, you can still specify it. Simply select the "Specify custom model" option (or similar, depending on the provider) in the wizard, and then manually enter the exact model name. TicketPlease will attempt to use this model via LiteLLM.

This flexibility ensures that you can always utilize the latest or most suitable LLM for your needs, even if it's not explicitly listed by default.

Installation

Prerequisites

  • Python 3.10 or higher
  • asdf for version management
  • Poetry for dependency management

Installation using pip

pip install ticketplease

Development Setup

  1. Clone the repository:
git clone https://github.com/kcmr/ticket-please.git
cd ticket-please
  1. Install Python and Poetry using asdf:
asdf install
  1. Setup the development environment:
make setup

This will install all dependencies and set up pre-commit hooks automatically.

Usage

Basic Usage

Type Command/Option Description
Command tk please Start the interactive task generation flow
Command tk config Configure your TicketPlease settings
Command tk Show help (default behavior without arguments)
Option tk --version, -v Show version and exit
Option tk --help Show this message and exit

Configuration

To configure TicketPlease, run the configuration command:

tk config

This will guide you through the setup process:

  1. Choose your AI provider (OpenAI, Anthropic, Gemini, OpenRouter)
  2. Enter your API key
  3. Select an AI model
  4. Configure default preferences

Once configured for the first time, you can update your preferences at any point by running tk config again. Additionally, many of these preferences (like output language or platform) can be overridden for individual tasks during the interactive task generation flow (tk please), providing maximum flexibility.

Configuration is stored in ~/.config/ticketplease/config.toml.

After configuration, you can start creating tasks with tk please.

Development

Available Commands

# Setup development environment
make setup

# Install pre-commit hooks
make install-hooks

# Format code
make format

# Lint code
make lint

# Lint and fix code
make lint-fix

# Run tests
make test

# Run tests with coverage
make test-cov

# Run all checks (format, lint, test)
make check

# Clean build artifacts
make clean

Pre-commit Hooks

The project uses pre-commit hooks to ensure code quality:

  • Code formatting: Automatically formats code with ruff
  • Linting: Checks code style and potential issues
  • Commit message validation: Ensures commit messages follow conventional commits format
  • File checks: Removes trailing whitespace, fixes end-of-file issues, etc.

Hooks are automatically installed when you run make setup. To manually install them:

make install-hooks

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Run the development checks: make check
  5. Commit your changes using conventional commits
  6. Push to your fork and create a pull request

License

This project is licensed under the MIT License - see the LICENSE file for 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

ticketplease-0.1.1.tar.gz (18.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ticketplease-0.1.1-py3-none-any.whl (20.3 kB view details)

Uploaded Python 3

File details

Details for the file ticketplease-0.1.1.tar.gz.

File metadata

  • Download URL: ticketplease-0.1.1.tar.gz
  • Upload date:
  • Size: 18.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for ticketplease-0.1.1.tar.gz
Algorithm Hash digest
SHA256 342a2b51e1aa4da7f746e1e7d8d27eb06fe1f16616137c8dabbce36fabb1ba18
MD5 3b86d61c1ca2981a18c9cb7cbd114a8b
BLAKE2b-256 2efa276951b79e5af16f646acd57a51393f7fe98eda6fb8f150d9e49d04b0cd9

See more details on using hashes here.

Provenance

The following attestation bundles were made for ticketplease-0.1.1.tar.gz:

Publisher: release.yml on kcmr/ticket-please

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ticketplease-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: ticketplease-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 20.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for ticketplease-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f528021a161712fae78a382cbfa12c6b8fbe4000846c692490e5ed3768de49c5
MD5 74cc60cf93aef5c74e8c42deb963f899
BLAKE2b-256 bd21d8adfbc44dcc015713df55da89b60b905c26afd193be50daee7e5cd59ec3

See more details on using hashes here.

Provenance

The following attestation bundles were made for ticketplease-0.1.1-py3-none-any.whl:

Publisher: release.yml on kcmr/ticket-please

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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