A collection of prompts
Project description
bartste-prompts
A command-line tool to generate AI prompts for code modifications.
Overview
This tool generates prompts for:
- docstrings: Add Google-style docstrings.
- typehints: Enhance code with proper type hints.
- refactor: Refactor code following best practices.
- fix: Fix issues in the code.
- unittests: Generate unit tests for your code.
The prompts can be passed directly to external tools such as aider to executed
them using an LLM.
Installation
To install bartste-prompts, you can either:
- Install via pip:
pip install git+https://github.com/bartste/bartste-prompts.git
- Or clone the repository and install it directly:
pip install .
Usage
Run the following to get info about the cli:
prompts --help
Examples
-
Generate a prompt that describes a refactor the
myfile.pyfile.prompts refactor -f python myfile.py
-
Send a prompt for writing docstrings to aider.
prompts docstrings --filetype python --action aider myfile.py
As is shown, a prompt can be redirected to an external tool using the
--actionoption. Currently,jsonand aider are supported.
Contributing
See CONTRIBUTING.md for guidelines on contributing.
License
See LICENSE for licensing 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 bartste_prompts-0.3.2.tar.gz.
File metadata
- Download URL: bartste_prompts-0.3.2.tar.gz
- Upload date:
- Size: 13.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 |
fc787041daf75f7b1eeaa2502cd85b1a94a42f142f4cdebeb324d0785cd3b24b
|
|
| MD5 |
36fe0fbdc7fecbd375e66109264e4e4b
|
|
| BLAKE2b-256 |
074a1c7e90357541ead1aa5bb86953f4e938dde19fd81e8d2af37ed5876a95bd
|
Provenance
The following attestation bundles were made for bartste_prompts-0.3.2.tar.gz:
Publisher:
release.yml on BartSte/bartste-prompts
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bartste_prompts-0.3.2.tar.gz -
Subject digest:
fc787041daf75f7b1eeaa2502cd85b1a94a42f142f4cdebeb324d0785cd3b24b - Sigstore transparency entry: 226070655
- Sigstore integration time:
-
Permalink:
BartSte/bartste-prompts@a68039f0b0d732bc9e141b67c108bd4be0576030 -
Branch / Tag:
refs/tags/v0.3.2 - Owner: https://github.com/BartSte
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@a68039f0b0d732bc9e141b67c108bd4be0576030 -
Trigger Event:
push
-
Statement type:
File details
Details for the file bartste_prompts-0.3.2-py3-none-any.whl.
File metadata
- Download URL: bartste_prompts-0.3.2-py3-none-any.whl
- Upload date:
- Size: 17.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 |
fd5a272aaae7bf7e92e55fcbc392064dccb4ef1782e90682befdcf05094b7f9b
|
|
| MD5 |
605ffa5338531961c2b77d0f14195d23
|
|
| BLAKE2b-256 |
fadafe625e6b257390c525ace33f0644dde4dd595a059ff59a725a3bbd62769a
|
Provenance
The following attestation bundles were made for bartste_prompts-0.3.2-py3-none-any.whl:
Publisher:
release.yml on BartSte/bartste-prompts
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bartste_prompts-0.3.2-py3-none-any.whl -
Subject digest:
fd5a272aaae7bf7e92e55fcbc392064dccb4ef1782e90682befdcf05094b7f9b - Sigstore transparency entry: 226070657
- Sigstore integration time:
-
Permalink:
BartSte/bartste-prompts@a68039f0b0d732bc9e141b67c108bd4be0576030 -
Branch / Tag:
refs/tags/v0.3.2 - Owner: https://github.com/BartSte
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@a68039f0b0d732bc9e141b67c108bd4be0576030 -
Trigger Event:
push
-
Statement type: