Skip to main content

String left-trimming library that uses GPT to remove leading whitespace

Project description

Vibetrimleft

AI-powered string left-trimming using GPT.

Usage

Install the package:

pip install vibetrimleft

Set your OpenAI API key as an environment variable.

export OPENAI_API_KEY=your_key_here
from vibetrimleft import vibetrimleft

result = vibetrimleft("   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

vibetrimleft-0.1.0.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

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

vibetrimleft-0.1.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file vibetrimleft-0.1.0.tar.gz.

File metadata

  • Download URL: vibetrimleft-0.1.0.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for vibetrimleft-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f859ab342e65fc807369d5605ea9d99bcabab318712b88945a923631f83b0934
MD5 30d3953c9fea7cf0ced27355f8a7ede1
BLAKE2b-256 35fe9c6f75315e209df0077492623b5132ecb2d2ea673836750ec2f3bd2e656f

See more details on using hashes here.

File details

Details for the file vibetrimleft-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: vibetrimleft-0.1.0-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 vibetrimleft-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a622b6a07f68e277419ede5b1f08fa5f76a648ae71ae4abaed2bdcca9d244ade
MD5 e145475bd601af62f2d9be74e690aa14
BLAKE2b-256 d4f5695b4cbdc67f7280cdb8ca1e5856436c4e35acaad43e8bb633a1efcfe207

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