Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vibetrimright-0.1.1-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

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

Hashes for vibetrimright-0.1.1.tar.gz
Algorithm Hash digest
SHA256 71edaf3224929427d3a84c7d0c710a7a0cf383ccbf74b125787cfa7d6455cdb5
MD5 40f1aacf4e176dc27c51f478c8bde9df
BLAKE2b-256 ddbc7714d9e0e945d334e28ab335faac0ee14198e2e73e3ad10d4db6494236d9

See more details on using hashes here.

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

Hashes for vibetrimright-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2b7546d7180a01e9532a6293d54544bb8e9b43ef99cd321aac36eea5bcf06d9c
MD5 e5e7f95250124b71471ff3b6f404c3d3
BLAKE2b-256 eff5e1032b7b40c2fbc3614d38abfe45c7eae26cdf9dcec0e5450243b14a8977

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page