String right-trimming library that uses GPT to remove trailing whitespace
Project description
vibetrimright
AI-powered string right-trimming using GPT.
Usage
Install the package:
pip install vibetrimright
Set your OpenAI API key as an environment variable.
export OPENAI_API_KEY=your_key_here
from vibetrimright import vibetrimright
result = vibetrimright("hello world ")
print(repr(result)) # 'hello world'
Test
pytest tests/
Dependencies
- openai
- pydantic
- typing-extensions
⚠️ Requires OpenAI API key. Experimental project - not for production use.
DISCLAIMER
Will not work half the time :) Enjoy!
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
vibetrimright-0.1.1.tar.gz
(2.6 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 vibetrimright-0.1.1.tar.gz.
File metadata
- Download URL: vibetrimright-0.1.1.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
71edaf3224929427d3a84c7d0c710a7a0cf383ccbf74b125787cfa7d6455cdb5
|
|
| MD5 |
40f1aacf4e176dc27c51f478c8bde9df
|
|
| BLAKE2b-256 |
ddbc7714d9e0e945d334e28ab335faac0ee14198e2e73e3ad10d4db6494236d9
|
File details
Details for the file vibetrimright-0.1.1-py3-none-any.whl.
File metadata
- Download URL: vibetrimright-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b7546d7180a01e9532a6293d54544bb8e9b43ef99cd321aac36eea5bcf06d9c
|
|
| MD5 |
e5e7f95250124b71471ff3b6f404c3d3
|
|
| BLAKE2b-256 |
eff5e1032b7b40c2fbc3614d38abfe45c7eae26cdf9dcec0e5450243b14a8977
|