diff --git a/owo/__init__.py b/owo/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/owo/owo.py b/owo/owo.py new file mode 100644 index 0000000..5844a17 --- /dev/null +++ b/owo/owo.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- + +from pyowo import owo +import argparse, sys + +def main(): + parser = argparse.ArgumentParser("owo") + parser.add_argument("-p", "--pipe", help="pipe text to owoify", action="store_true") + parser.add_argument("text", help="owoify any text", type=str, nargs="?") + args = parser.parse_args() + + if args.pipe: + for line in sys.stdin: + print(owo(line), end="") + elif args.text: + print(owo(args.text)) + else: + print(owo("No text provided")) + parser.print_help() + +if __name__ == "__main__": + main() \ No newline at end of file diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..268d77b --- /dev/null +++ b/setup.py @@ -0,0 +1,16 @@ +# -*- coding: utf-8 -*- + +from setuptools import setup + +setup( + name = "cmdline-owo", + packages = ["owo"], + entry_points = { + "console_scripts": ['owo = owo.owo:main'] + }, + install_requires=['pyowo'], + version = "0.2.0", + description = "owoify any text from the command line", + author = "Alfie King", + author_email = "acetheking987@gmail.com" + )