Skip to main content

pypi python support

Weneda

Modern way to edit and format text.

Installation

To install this module, run the following command:

pip install weneda

Examples

Placeholders

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())

Metadata

Release files for weneda 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for weneda 0.2.1
File Size Uploaded
weneda-0.2.1.tar.gz 10.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for weneda 0.2.1
File Interpreter ABI Platform
weneda-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 26.8 kB

Release files / weneda-0.2.1.tar.gz

Download URL weneda-0.2.1.tar.gz
Size 10.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c829fe82490e937a65e8e241850be1827f34c94d6b00923812c6a16f98ed7ed2
BLAKE2b-256 checksum
How to use checksums
89e064d683ddec84c0e48440e1ea4a1e25d8f715c0551df8017f24188f3737ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.3 Windows/10

Release files / weneda-0.2.1-py3-none-any.whl

Download URL weneda-0.2.1-py3-none-any.whl
Size 16.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
625eda3aae326d7d14e4ec975c5cde35883c436b38a666dcd782494eb7032b5c
BLAKE2b-256 checksum
How to use checksums
bd58ea9355d81d95698ce5162df70867c137c2bfb1e1e021993dfc9c8377b5a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.3 Windows/10

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

1 release file

0.1.0

2 release files

0.0.2

2 release files

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page