Metadata-Version: 2.1
Name: weneda
Version: 0.2.0
Summary: Module for editing and formatting text.
Home-page: https://github.com/eeemoon/weneda
License: MIT
Author: EeeMoon
Requires-Python: >=3.10,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: fonttools
Description-Content-Type: text/markdown

[![pypi](https://img.shields.io/pypi/v/weneda)](https://pypi.org/project/weneda)
[![python](https://img.shields.io/badge/python-3.10+-blue)](https://www.python.org/downloads)
[![support](https://img.shields.io/badge/support-yellow)](https://www.buymeacoffee.com/eeemoon)

# Weneda
Python module for editing and styling text.

## Installation
To install this module, run the following command:
```
pip install weneda
```

## Examples
### Placeholders
```python
import asyncio
import asyncio
from weneda import Formatter, placeholder


class MyFormatter(Formatter):
    @placeholder(
        name="upper",
        syntax="upper_<text>",
        pattern=r"upper_(?P<text>.*)"
    )
    async def upper_handler(self, text: str) -> str:
        return text.upper()
    

async def main():
    formatter = MyFormatter()
    result = await formatter.format("Hello {upper_world}")
    print(result) # Hello WORLD


asyncio.run(main())
```
