Compare commits

..

No commits in common. "main" and "latest" have entirely different histories.
main ... latest

3 changed files with 4 additions and 39 deletions

View File

@ -1,25 +1,3 @@
# term-owo # term-owo
owoify text from the terminal owoify text from the terminal
# installation
### install from source
download the latest release [here](https://git.alfieking.dev/acetheking987/term-owo/releases) or clone the repository and run `pip install .` in downloaded folder
### install from repo
run `pip install --index-url https://git.alfieking.dev/api/packages/acetheking987/pypi/simple/ cmdline-owo` in terminal
# usage
from terminal run `owo` to owoify text
use the `-p` flag to use a pipe as input
### examples
`owo "hello world"` -> `hewwo wowwd`
`echo "hello world" | owo -p` -> `hewwo wowwd`

View File

@ -1,21 +1,7 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from pyowo import owo
import argparse, sys import argparse, sys
from re import compile, sub
replacements = [
(compile(r"(?:r|l)"), "w"),
(compile(r"(?:R|L)"), "W"),
(compile(r"n([aeiou])"), "ny\\1"),
(compile(r"N([aeiou])"), "Ny\\1"),
(compile(r"N([AEIOU])"), "NY\\1"),
(compile(r"ove"), "uv"),
]
def owo(text: str) -> str:
for r in replacements:
text = sub(r[0], r[1], text)
return text
def main(): def main():
parser = argparse.ArgumentParser("owo") parser = argparse.ArgumentParser("owo")

View File

@ -8,7 +8,8 @@ setup(
entry_points = { entry_points = {
"console_scripts": ['owo = owo.owo:main'] "console_scripts": ['owo = owo.owo:main']
}, },
version = "0.2.3", install_requires=['pyowo'],
version = "0.2.0",
description = "owoify any text from the command line", description = "owoify any text from the command line",
author = "Alfie King", author = "Alfie King",
author_email = "acetheking987@gmail.com" author_email = "acetheking987@gmail.com"