semvec/pypi-packages huggingface dataset:
PyGine 0.0.20
A simple 2D game engine
Keywords: python,game,engine,moteur,jeu,GameEngine,PyGine,PyGineGame,pygame,componentGame,component,gameEngine,game,engine,2D,2DGame,2DGameEngine,2DGameEnginePython,2DGameEnginePygame,2DGameEnginePyGine,PyGineGameEngine,PyGineGameEnginePython,PyGineGameEnginePygame,PyGineGameEnginePyGine

A simple 2D game engine working as unity but in python
chatproto 0.0.2
Large language model chat protocol.
Requires Python: >=3.8

# chatproto
Large Language Model Chat Protocol.

The different chat prompt formats used by different Large Language Models have been a problem for developers. We developed `chatproto` to output the prompt format for different LLMs through a unified interface.

Compared to the `apply_chat_format` function in HuggingFace and the version in FastChat, `ChatProto` can locate the position of each message after applying the template. This makes it very convenient for us to mask out certain conversations during training.

## Quick Start
```python
from chatproto.conversation.history import ConversationHistory
from chatproto.registry import list_conv_settings, get_conv_settings

# Print all available settings
all_settings = list_conv_settings()
print(all_settings)

settings = get_conv_settings("openbuddy")
history = ConversationHistory(
    "SYSTEM_MESSAGE",
    messages=[
        (settings.roles[0], "Hello!"),
        (settings.roles[1], "Hello! How can I assist you today?"),
    ],
    offset=0,
    settings=settings
)
# Apply the template
print(history.get_prompt())

# Get prompt and indices
prompt, indices = history.get_prompt_and_indices()
# Print the start and end offsets of each message in the conversation one by one.
# The start and end offsets here refer to the offsets in the text, not the tokens.
# They do not include any additional characters added in the template.
system_start, system_end = indices[0]
for i, (conv_start, conv_end) in enumerate(indices[1:]):
    print((conv_start, conv_end))
```

## Install

### Method 1: With pip

```bash
pip install chatproto
```

or:

```bash
pip install git+https://github.com/vtuber-plan/chatproto.git 
```

### Method 2: From source

1. Clone this repository
```bash
git clone https://github.com/vtuber-plan/chatproto.git
cd chatproto
```

2. Install the Package
```bash
pip install --upgrade pip
pip install .
```
keys-yocto 3.0.7
Make licence keys using RSA signature verification
Requires Python: >=3.8
Keywords: licence,license,key,rsa

# Yocto Keys

Make licence keys using RSA signature verification

## Installation

```bash
pip install keys-yocto
```

## Usage

You'll be prompted to make new RSA keys the first time you run the app. If you need to make new keys later, you can do it in the Keys menu.

![New RSA keys](https://github.com/delvianv/keys/raw/master/images/new_rsa_keys.png)

The app will remember where you saved the last private key you made. If you need to use a different key than the last one you made or if you moved it, you can change the location of the key in the Keys menu.

![Private key](https://github.com/delvianv/keys/raw/master/images/priv_key.png)

Fill in the user's details and click Sign. Then copy the licence key and send it to the user.

![Main window](https://github.com/delvianv/keys/raw/master/images/main.png)

### How to verify licence keys in your app

```python
from keys import key

if key.valid(user, licence_key, pub_key):
    # licence_key is valid
else:
    # licence_key is invalid
```

## Support

Email delvian.valentine@gmail.com for help

## Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you'd like to change.

## Acknowledgements

-   [Material Icons](https://fonts.google.com/icons)
-   [PyInstaller](https://pyinstaller.org/en/stable/)
-   [Python-RSA](https://stuvel.eu/software/rsa/)
-   [Qt for Python](https://wiki.qt.io/Qt_for_Python)
-   [UXWing](https://uxwing.com/)
-   This app was inspired by [this article](https://build-system.fman.io/generating-license-keys)

## Licence

Copyright © 2024 [Delvian Valentine](mailto:delvian.valentine@gmail.com)

_This program comes with ABSOLUTELY NO WARRANTY.  
This is free software, and you are welcome to redistribute it under certain conditions.  
See the [GNU General Public License](https://www.gnu.org/licenses/) for details._