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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| weneda-0.2.1.tar.gz | 10.4 kB | Without provenance | Details for weneda-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| weneda-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for weneda-0.2.1-py3-none-any.whl |
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
|
Security for weneda 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.