semvec/pypi-packages huggingface dataset:
vibeleftpad 0.1.0
AI-powered left padding library that uses GPT to pad strings
License: MIT
Requires Python: >=3.10
Keywords: ai, gpt, leftpad, padding, parody, string

# Vibeleftpad

AI-powered left padding using GPT. Because why use simple string methods when you can use artificial intelligence?

## Usage

Install the package:
```bash
pip install vibeleftpad
```

Set your OpenAI API key as an environment variable.
```bash
export OPENAI_API_KEY=your_key_here
```

```python
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

```bash
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.
mdict-rs 0.1.0
Python bindings for mdict-rs: A fast MDict dictionary format parser
License: MIT
Requires Python: >=3.8
Keywords: mdict, dictionary, parser, rust, pyo3

# mdict-rs

This project provides **Python bindings** via PyO3, allowing you to use the fast Rust MDict parser from Python
code.

#### How to build

```bash
# Install maturin for building Python extensions
python3 -m venv .venv && source .venv/bin/activate && pip install maturin

# Build and install the Python package
maturin develop --release
```

#### Usage

```python
import mdict_rs

# Parse from file
mdx = mdict_rs.parse_mdx_file("dictionary.mdx")

# Parse from bytes
with open("dictionary.mdx", "rb") as f:
    data = f.read()
mdx = mdict_rs.parse_mdx_bytes(data)

# Get all entries
records = mdx.items()
for record in records:
    print(f"{record.text}: {record.definition}")

# Get total count
count = mdx.get_entries_count()
print(f"Total entries: {count}")
```

#### Building for PyPI

```bash
# Build wheels for distribution
maturin build --release

# Publish to PyPI (requires API token)
maturin publish
```

## Screenshot

![screenshot](screenshot.png)

## References
MDX的解析功能和mdx文件规范参考[mdict-analysis](https://bitbucket.org/xwang/mdict-analysis/src/master/)
和文章[MDX/MDD 文件格式解析](http://einverne.github.io/post/2018/08/mdx-mdd-file-format.html)