CLI assistant for generating standardized task descriptions using AI
Project description
TicketPlease
CLI assistant for generating standardized task descriptions using AI.
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 configfor 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
Installation using pip
pip install ticketplease
Development Setup
- Clone the repository:
git clone https://github.com/kcmr/ticket-please.git
cd ticket-please
- Install Python and Poetry using asdf:
asdf install
- 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:
- Choose your AI provider (OpenAI, Anthropic, Gemini, OpenRouter)
- Enter your API key
- Select an AI model
- 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
- Fork the repository
- Create a feature branch
- Make your changes
- Run the development checks:
make check - Commit your changes using conventional commits
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
342a2b51e1aa4da7f746e1e7d8d27eb06fe1f16616137c8dabbce36fabb1ba18
|
|
| MD5 |
3b86d61c1ca2981a18c9cb7cbd114a8b
|
|
| BLAKE2b-256 |
2efa276951b79e5af16f646acd57a51393f7fe98eda6fb8f150d9e49d04b0cd9
|
Provenance
The following attestation bundles were made for ticketplease-0.1.1.tar.gz:
Publisher:
release.yml on kcmr/ticket-please
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ticketplease-0.1.1.tar.gz -
Subject digest:
342a2b51e1aa4da7f746e1e7d8d27eb06fe1f16616137c8dabbce36fabb1ba18 - Sigstore transparency entry: 266078147
- Sigstore integration time:
-
Permalink:
kcmr/ticket-please@e13b773473e1b112bd114c04929167022b0e89d7 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/kcmr
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@e13b773473e1b112bd114c04929167022b0e89d7 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f528021a161712fae78a382cbfa12c6b8fbe4000846c692490e5ed3768de49c5
|
|
| MD5 |
74cc60cf93aef5c74e8c42deb963f899
|
|
| BLAKE2b-256 |
bd21d8adfbc44dcc015713df55da89b60b905c26afd193be50daee7e5cd59ec3
|
Provenance
The following attestation bundles were made for ticketplease-0.1.1-py3-none-any.whl:
Publisher:
release.yml on kcmr/ticket-please
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ticketplease-0.1.1-py3-none-any.whl -
Subject digest:
f528021a161712fae78a382cbfa12c6b8fbe4000846c692490e5ed3768de49c5 - Sigstore transparency entry: 266078164
- Sigstore integration time:
-
Permalink:
kcmr/ticket-please@e13b773473e1b112bd114c04929167022b0e89d7 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/kcmr
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@e13b773473e1b112bd114c04929167022b0e89d7 -
Trigger Event:
push
-
Statement type: