{ "info": { "author": "hirokiky", "author_email": "hirokiky@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Topic :: Text Processing :: Filters" ], "description": "genaa, a ASCII Art generator\n============================\n\n.. image:: https://travis-ci.org/hirokiky/genaa.png?branch=master\n :target: https://travis-ci.org/hirokiky/genaa\n\ngenaa is a command line tool for generating ASCII Art::\n\n +-----+ +---+ +-----+ +-----+ +-----+\n | | | | | | | | | |\n +-+---+ | +-+ +-+ | +---+-+ +-+---+ | +-+---+ |\n | | | | | | | | | | | | | | | | | |\n | | | | | +-----+ | | | | | | | | | | | |\n | | | | | | | | | | | | | | | | | |\n +-+---+ | +-+-----+ | | | | +-+---+ | +-+---+ |\n | | | | | | | | | | | |\n +---+ | +-----+ +-+ +-+ +-----+ +-----+\n | |\n +---+-+\n | |\n +---+\n\nInstall\n---------\nInstall genaa by using pip.\n\n::\n\n pip install genaa\n\nNow genaa is supporting Python 2.7 and 3.3.\n\n\nBasic Usage\n---------------\n\ngenaa has some sub-commands to render various ASCII Arts:\n\n* box\n* block\n\n`genaa box` is the most basic and simple feature.\nIt can render a block containing text input by user::\n\n $ genaa box --text Hello!\n +--------+\n | Hello! |\n +--------+\n\n`genaa block` is a command to render some free shape blocks.\nIt takes some 'dots' and translate it to ASCII Art blocks.\nThis example show you how to create a well-known TETRIS block from command line::\n\n $ genaa block --text '\n > ***\n > * '\n\n +-----+\n | |\n +-+ +-+\n | |\n +-+\n\nAs filter\n-----------\n\nAbove examples are used as one of simple command line tools, using --text argument.\nBut, genaa usually behaves as a filter command, like this::\n\n $ echo -en 'Hello world!\\nThis is genaa' | genaa box\n +---------------+\n | Hello world! |\n | This is genaa |\n +---------------+\n\nGenerally, it is recommended to use from some editors.\nMost editors has a feature to pass the selected text to some shell command\nand input returned value. On Emacs, you can use 'shell-command-on-region'.\n\ngenaa box\n-------------------\nYou can specify these arguments to `genaa box`::\n\n -h, --help show this help message and exit\n -t TEXT, --text TEXT Passing text by argument into box\n -W WIDTH, --width WIDTH\n -H HEIGHT, --height HEIGHT\n -s {ccomment,ascii,hash,simple}, --style {ccomment,ascii,hash,simple}\n -l, --list Displaying examples for each styles\n\n--width and --height\n^^^^^^^^^^^^^^^^^^^^^^^^^^\nBy default, `genaa box` command render the box with automatically specified width/height.\nBut, you can specify these width and height of the box manually, like this::\n\n $ echo -en 'Hello world!\\nThis is genaa' | genaa box --width=20 --height=3\n +----------------------+\n | Hello world! |\n | This is genaa |\n | |\n +----------------------+\n\n--style\n^^^^^^^^\nThis example is using `hash` style which is used as comment block in Python::\n\n $ echo -en 'Hello world!\\nThis is genaa' | genaa box --style=hash\n #################\n # Hello world! #\n # This is genaa #\n #################\n\n--list\n^^^^^^^\nThe list of styles are on `genaa box --list` command::\n\n $ genaa box --list\n ascii:\n +-----------------------+\n | Hello. |\n | How about this style? |\n +-----------------------+\n\n ccomment:\n /************************\n * Hello. *\n * How about this style? *\n ************************/\n\n hash:\n #########################\n\n--align\n^^^^^^^^\n`genaa box` command put the text at the left side of the box.\nIt also supports putting the text on center and right::\n\n genaa box --align=center --text=Hello --width=20\n +----------------------+\n | Hello |\n +----------------------+\n\ngenaa block\n------------\nYou can specify these arguments to `genaa block`::\n\n -h, --help show this help message and exit\n -t TEXT, --text TEXT Passing text by argument into block\n -s {ascii,simple}, --style {ascii,simple}\n -l, --list Displaying examples for each styles\n\n--style\n^^^^^^^^\nThis example is using `simple` style.\nYou can see this clearly by some mono-space fonts::\n\n $ genaa block --style=simple\n **\n * *\n *\n \u250c\u2500\u2500\u2500\u2510\n \u2502 \u2502\n \u2502 \u250c\u2500\u253c\u2500\u2510\n \u2502 \u2502 \u2502 \u2502\n \u2514\u2500\u253c\u2500\u253c\u2500\u2518\n \u2502 \u2502\n \u2514\u2500\u2518\n\n--list\n^^^^^^^^\n\nThe list of styles are on `genaa block --list` command::\n\n $ genaa block --list\n ascii:\n +-+\n | |\n +-+-+ +-+ +-+ +-+ +-+ +-+\n | | | | | | | | | | | |\n +---+ | +-+-+ | +-+ | | +-+---+ +-+-+\n | | | | | | | | | | | |\n +-----+ | +-+ +-+-+ | +-+ +-+ +---+ |\n | | | | | | | |\n +-+ +---+ +---+ +-----+\n\n simple:\n \u250c\u2500\u2510\n \u2502 \u2502\n \u2514\u2500\u253c\u2500\u2510 \u250c\u2500\u2510 \u250c\u2500\u2510 \u250c\u2500\u2510 \u250c\u2500\u2510 \u250c\u2500\u2510\n \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502 \u2502\n \u250c\u2500\u2500\u2500\u2518 \u2502 \u2514\u2500\u253c\u2500\u2518 \u2502 \u250c\u2500\u2510 \u2502 \u2502 \u2514\u2500\u253c\u2500\u2500\u2500\u2510 \u2514\u2500\u253c\u2500\u2510\n\n\n\nChanges\n----------\n\n0.4 (2013-1-17)\n^^^^^^^^^^^^^^^^^^^^^\nMulti-width characters support (like japanese)\n\n0.3 (2013-1-12)\n^^^^^^^^^^^^^^^^^^^^^\nPython2 support (2.7 only)\n\n0.2 (2013-1-3)\n^^^^^^^^^^^^^^^^^^^^^\nAdded `genaa block` command.\nAdded --list argument to `genaa box`.\n\n0.1 (2013-12-28)\n^^^^^^^^^^^^^^^^^^^^^\nInitial release.\nSupporting:\n\n* Rendering boxes with text\n\n * Auto specifying width and height\n * Changing style of boxes\n * Align specifying (right, center, left)", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/hirokiky/genaa", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "genaa", "package_url": "https://pypi.org/project/genaa/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/genaa/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/hirokiky/genaa" }, "release_url": "https://pypi.org/project/genaa/0.4/", "requires_dist": null, "requires_python": null, "summary": "genaa, a ASCII Art generator.", "version": "0.4" }, "last_serial": 1565823, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "649842d9ce9a41475a685c0fd7b0cffd", "sha256": "439e117b7230df0e34d74e943503477f9fbdb84761d453b53deaba10d8da2973" }, "downloads": -1, "filename": "genaa-0.1.tar.gz", "has_sig": false, "md5_digest": "649842d9ce9a41475a685c0fd7b0cffd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5144, "upload_time": "2013-12-28T10:11:54", "url": "https://files.pythonhosted.org/packages/ba/af/80ac687cfa5946658662177055036c7502bde9ec02de92406eaa5fd7560a/genaa-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "887d30747f0bebe52ad4975c10c98a56", "sha256": "175587475f2f8558a3325f4da51618640abd7971eb16fbb6faf552dd753b759f" }, "downloads": -1, "filename": "genaa-0.2.tar.gz", "has_sig": false, "md5_digest": "887d30747f0bebe52ad4975c10c98a56", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9727, "upload_time": "2014-01-03T01:45:38", "url": "https://files.pythonhosted.org/packages/06/be/7dc164b99be15cb18cac6ba6942f249ced69823b89f4c446eea7532e84ec/genaa-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "ea4e8b75d11c5cc0951386687f352dc4", "sha256": "17d42dcb4a6342af88825626d008f84a5e06a5fbae8bdf2ce5d59333afd41e53" }, "downloads": -1, "filename": "genaa-0.3.tar.gz", "has_sig": false, "md5_digest": "ea4e8b75d11c5cc0951386687f352dc4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9915, "upload_time": "2014-01-11T18:11:53", "url": "https://files.pythonhosted.org/packages/c8/e5/2dcfcabbff14c36e5d110749f05f9e1ac63493215fb8e7d0e1bb42a40f62/genaa-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "cc825e0804fc4208fcbcef2b45e99552", "sha256": "6ba9263737df4ee49957e4c00dc8214d4a5d2099a05c9e20f355ec00b8274c84" }, "downloads": -1, "filename": "genaa-0.4.tar.gz", "has_sig": false, "md5_digest": "cc825e0804fc4208fcbcef2b45e99552", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11142, "upload_time": "2014-01-17T08:50:00", "url": "https://files.pythonhosted.org/packages/fe/0d/27975275740d5b2e3a2afa12a278b551a561d26a442bc74f10df972f4821/genaa-0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "cc825e0804fc4208fcbcef2b45e99552", "sha256": "6ba9263737df4ee49957e4c00dc8214d4a5d2099a05c9e20f355ec00b8274c84" }, "downloads": -1, "filename": "genaa-0.4.tar.gz", "has_sig": false, "md5_digest": "cc825e0804fc4208fcbcef2b45e99552", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11142, "upload_time": "2014-01-17T08:50:00", "url": "https://files.pythonhosted.org/packages/fe/0d/27975275740d5b2e3a2afa12a278b551a561d26a442bc74f10df972f4821/genaa-0.4.tar.gz" } ] }