Sorting library that uses GPT to sort arrays
Project description
Vibesort
AI-powered array sorting using GPT.
Usage
Install the package:
pip install vibesort
Set your OpenAI API key as an environment variable.
export OPENAI_API_KEY=your_key_here
from vibesort import vibesort
result = vibesort([5, 2, 8, 1, 9])
print(result) # [1, 2, 5, 8, 9]
Test
pytest tests/
Dependencies
- openai
- pydantic
- typing-extensions
⚠️ Requires OpenAI API key. Experimental project - not for production use.
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
vibesort-0.1.1.tar.gz
(25.4 kB
view details)
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 vibesort-0.1.1.tar.gz.
File metadata
- Download URL: vibesort-0.1.1.tar.gz
- Upload date:
- Size: 25.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9bed89930c74dcf1135b86d7b5e6f86ce11c436199a17f9a6c3106ea31164250
|
|
| MD5 |
5f957271df9c7f5c3b931f862221b463
|
|
| BLAKE2b-256 |
4a888c78d4cce78e24c1c8f1519eea69ec30cc67c5b933cf052091e8f10d330b
|
File details
Details for the file vibesort-0.1.1-py3-none-any.whl.
File metadata
- Download URL: vibesort-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38d68acf5177a8c363141fe869a0dd3d5819b1eac936319156f2c018310536d9
|
|
| MD5 |
ebbd7ebff284c11fe574f4bf05276316
|
|
| BLAKE2b-256 |
079ff2e76dc5ee49c61f8ec1e781e37683993d4dbd6ab5e93327c4ea46d3df8b
|