AI-powered left padding library that uses GPT to pad strings
Project description
Vibeleftpad
AI-powered left padding using GPT. Because why use simple string methods when you can use artificial intelligence?
Usage
Install the package:
pip install vibeleftpad
Set your OpenAI API key as an environment variable.
export OPENAI_API_KEY=your_key_here
from vibeleftpad import leftpad
result = leftpad("hello", 10)
print(result) # " hello"
result = leftpad("world", 8, "0")
print(result) # "000world"
result = leftpad("test", 10, "-")
print(result) # "------test"
Test
pytest tests/
Dependencies
- openai
- pydantic
- typing-extensions
⚠️ Requires OpenAI API key. Experimental project - not for production use. This is a parody of the infamous leftpad incident.
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
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 vibeleftpad-0.1.0.tar.gz.
File metadata
- Download URL: vibeleftpad-0.1.0.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9373db6382c9369086a6b12eb062cf7d4aae1992a6f488490fcb78158f2d349b
|
|
| MD5 |
463b7ec6a55337ae5c3dca9ce47506af
|
|
| BLAKE2b-256 |
94dfb84069c7dc9e3bb37d3688d9c0b6ecb6d6273b8e8534fab2da924b8643c5
|
File details
Details for the file vibeleftpad-0.1.0-py3-none-any.whl.
File metadata
- Download URL: vibeleftpad-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.7 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 |
ce67120d3dceb75e10d4b777de286b67c15b3c303939a404ba1e655a8bf53fcf
|
|
| MD5 |
f64ad4248dda96e771e46cd23fd47f29
|
|
| BLAKE2b-256 |
3562624eb87986fb91ca32632beadc19179d349cfd2e582f88bf31e8253557b8
|