semvec/pypi-packages huggingface dataset:
python-prompts 0.0.10
Convenient for Python users to directly reference the source code of the GPT question template package. / 方便python用户直接引用GPT提问模板包的源代码

# <p align="center">GPT-prompt</p>
<p align="center"><i>集成所有好用的提问</i></p>
<p align="center"><i>Integrate all useful questions</i></p>

<p align="center">
<a href="https://github.com/limaoyi1/GPT-prompt/fork" target="blank">
<img src="https://img.shields.io/github/forks/limaoyi1/GPT-prompt?style=for-the-badge" alt="Auto_PPT forks"/>
</a>

<a href="https://github.com/limaoyi1/GPT-prompt/stargazers" target="blank">
<img src="https://img.shields.io/github/stars/limaoyi1/GPT-prompt?style=for-the-badge" alt="Auto_PPT stars"/>
</a>
<a href="https://github.com/limaoyi1/GPT-prompt/pulls" target="blank">
<img src="https://img.shields.io/github/issues-pr/limaoyi1/GPT-prompt?style=for-the-badge" alt="Auto_PPT pull-requests"/>
</a>
<a href='https://github.com/limaoyi1/GPT-prompt/blob/main/LICENSE'>
<img src='https://img.shields.io/github/license/limaoyi1/GPT-prompt?&label=Latest&style=for-the-badge' alt="Auto_PPT LICENSE">
</a>
<a href='https://github.com/limaoyi1/GPT-prompt/releases'>
<img src='https://img.shields.io/github/release/limaoyi1/GPT-prompt?&label=Latest&style=for-the-badge' alt="Auto_PPT releases">
</a>
</p>

## 我想要做什么?
>这个库的目标是集成所有通用的GPT提问,让提问可以不用再让程序员们痛苦.
让通用提问库作为所有AI框架的第一选择.这很酷是不是?

## What do I want to do?

>The goal of this library is to integrate all common GPT questions, so that questions can no longer cause programmers pain
>Make the universal question library the first choice for all AI frameworks. Isn't that cool?

## 安装方法
```bash
pip install gpt-prompt
```
> 或者
```bash
pip install -i https://pypi.org/simple/ gpt-prompt
```

## Install Instructions
```bash
pip install gpt-prompt
```
> Alternatively,
```bash
pip install -i https://pypi.org/simple/ gpt-prompt
```
## 使用方法
```python
from gpt_prompt.character.advertiser import AdvertiserPrompt

if __name__ == '__main__':
    build = AdvertiserPrompt().build(language="en")
    print(build)
```

## Usage Instructions
```python
from gpt_prompt.character.advertiser import AdvertiserPrompt

if __name__ == '__main__':
    build = AdvertiserPrompt().build(language="en")
    print(build)
```



## 欢迎大家随时反馈和提交
>众人拾柴火焰高

## Welcome everyone to provide feedback and submit at any time
> Alone we can do so little; together we can do so much

## 🌟 Star History

<br>

[![Star History Chart](https://api.star-history.com/svg?repos=limaoyi1/GPT-prompt&type=Timeline)](https://star-history.com/#limaoyi1/GPT-prompt&Timeline)

</br>
GitLexPy 0.1.0
A Python package for generating commit messages using OpenAI
Requires Python: >=3.6


# GitLexPy 🚀✨

Generate intelligent commit messages for your Git changes using AI. GitLex uses OpenAI's GPT models to craft meaningful commit messages based on your code diffs.

## Table of Contents

- [Installation](#installation)
- [Prerequisites](#prerequisites)
- [Usage](#usage)
- [API Key Configuration](#api-key-configuration)
- [Development Workflow](#development-workflow)
- [Contributing](#contributing)
- [License](#license)

### Prerequisites

Ensure you have Python 3.x installed. If not, download and install it from Python's official site.

## Installation 📦

1. Clone the repository:

```bash
git clone https://github.com/krjordan/GitLexPy.git
cd GitLexPy
```

2. Install the required dependencies:

```bash
pip install -r requirements.txt
```

## Usage 🚀

To generate an AI-based commit message based on your git diff:

```bash
python3 gitlex.py --path /path/to/your/repo
```

#### Arguments:

`--path` (optional): Path to git repository. Default is the current directory.
If you want to check if your OpenAI API key is already stored and know where it is stored:

```bash
python3 gitlex.py --check-key
```

**Note:** The tool will prompt you for the OpenAI API key if it's not found in the configuration file. Your API key will be stored locally in the `.gitlex-config.json` file.

## API Key Configuration 🔑

For `GitLexPy` to work, you'll need an OpenAI API key. 

1. [Sign up](https://beta.openai.com/signup/) for an API key with OpenAI.
2. Once you've obtained your key, run `GitLex` for the first time, and it will prompt you to enter it. Your key will be stored locally and securely in `.gitlex-config.json` for future use. 

> ⚠️ **Note:** Never share your API key or commit it directly to your codebase.

## Development Workflow 🛠

We follow the gitflow workflow. Here's a quick breakdown:

- **Develop**: This is the main development branch where all the changes are merged into.
- **Release**: When `develop` is stable and ready for a release, it's branched to `release` for final testing.
- **Main**: Once testing is complete and everything is stable, `release` is merged into `main`, triggering a deployment to PyPI via GitHub Actions.

## Contributing 🤝

Contributions are welcome! Whether it's bug reports, feature requests, or new integrations, we'd love to see what you can come up with.

1. Fork the repository.
2. Make your changes on a new branch.
3. Submit a pull request and describe your changes.

## License 📄

`GitLexPy` is open-source software licensed under the MIT License. See the `LICENSE` file for more details.