{"id":13460049,"url":"https://github.com/pwaller/pyfiglet","last_synced_at":"2025-05-12T15:28:09.256Z","repository":{"id":1225113,"uuid":"1153172","full_name":"pwaller/pyfiglet","owner":"pwaller","description":"An implementation of figlet written in Python","archived":false,"fork":false,"pushed_at":"2024-11-23T21:13:13.000Z","size":2809,"stargazers_count":1424,"open_issues_count":5,"forks_count":143,"subscribers_count":24,"default_branch":"main","last_synced_at":"2025-04-23T17:17:03.907Z","etag":null,"topics":["ascii-art","figlet","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pwaller.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2010-12-09T13:34:17.000Z","updated_at":"2025-04-22T20:18:32.000Z","dependencies_parsed_at":"2023-12-28T11:39:49.321Z","dependency_job_id":"17da8945-9ae5-4714-af49-b0208372ea45","html_url":"https://github.com/pwaller/pyfiglet","commit_stats":{"total_commits":195,"total_committers":28,"mean_commits":6.964285714285714,"dds":0.7384615384615385,"last_synced_commit":"d78b6ab6e05bf39370a134f6847b79e28a937b2e"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pwaller%2Fpyfiglet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pwaller%2Fpyfiglet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pwaller%2Fpyfiglet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pwaller%2Fpyfiglet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pwaller","download_url":"https://codeload.github.com/pwaller/pyfiglet/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253765212,"owners_count":21960690,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ascii-art","figlet","python"],"created_at":"2024-07-31T10:00:34.643Z","updated_at":"2025-05-12T15:28:09.236Z","avatar_url":"https://github.com/pwaller.png","language":"Python","readme":"# **pyfiglet**\n\n```\n                        _|_|  _|            _|              _|\n_|_|_|    _|    _|    _|            _|_|_|  _|    _|_|    _|_|_|_|\n_|    _|  _|    _|  _|_|_|_|  _|  _|    _|  _|  _|_|_|_|    _|\n_|    _|  _|    _|    _|      _|  _|    _|  _|  _|          _|\n_|_|_|      _|_|_|    _|      _|    _|_|_|  _|    _|_|_|      _|_|\n_|              _|                      _|\n_|          _|_|                    _|_|\n```\n\n## **Synopsis**\n\npyfiglet is a full port of FIGlet (http://www.figlet.org/) into pure\npython. It takes ASCII text and renders it in ASCII art fonts (like\nthe title above, which is the 'block' font).\n\n## **FAQ**\n\n- **Q**: Why? WHY?!!\n\n  **A**: I [cjones] was bored. Really bored.\n  \n- **Q**: What the hell does this do that FIGlet doesn't?\n\n  **A**: Not much, except allow your font collection to live\n           in one big zipfile. The point of this code is to embed\n           dynamic figlet rendering in Python without having to\n           execute an external program, although it operates on the\n           commandline as well.  See below for USAGE details. You can\n           think of this as a python FIGlet driver.\n- **Q**: Does this support kerning/smushing like FIGlet?\n\n  **A**: Yes, yes it does. Output should be identical to FIGlet. If\n           not, this is a bug, which you should report to me!\n  \n- **Q**: Can I use/modify/redstribute this code?\n\n  **A**: Yes, under the terms of the MIT (see LICENSE below).\n  \n- **Q**: I improved this code, what should I do with it?\n\n  **A**: You can submit changes to https://github.com/pwaller/pyfiglet/pulls.\n           If you make changes to the kerning/mushing/rendering portion, PLEASE\n           test it thoroughly. The code is fragile and complex.\n- **Q**: Where did my font go?\n\n  **A**: It turns out that we didn't have distribution rights for some of the\n           fonts and so we had to remove them.  Full details of the change and\n           why we did it are in https://github.com/pwaller/pyfiglet/issues/59.\n- **Q**: Where can I find these and other fonts?\n\n  **A**: Do a quick search for \"figlet fonts\" on your favourite search engine\n           should give you what you need.  However, if you are looking for the\n           specific removed fonts, please go to http://www.jave.de/figlet/fonts.html.\n\n- **Q**: Why are some fonts missing in \u003cmy favourite\u003e distribution?\n  \n  **A**: Some Linux distributions have very strict legal restrictions on what\n           contributions they will take.  For these systems, we have divided the\n           fonts into ones that have a clear redistribution license and those that\n           don't.  These are the fonts-standard and fonts-contrib directories in\n           this repository.\n- **Q**: What about those other fonts?\n  \n  **A**: While there isn't a watertight case for the license, we believe that\n           any legal constraint for these fonts has long expired and so they\n           are public domain, so are continuing to redistribute via pypi.  If\n           an owner of any of these fonts wants us to stop, please just\n           raise an issue on https://github.com/pwaller/pyfiglet/issues\n           proving your ownership and we will remove the requested fonts.\n\n\n## **Usage**\n\nYou can use pyfiglet in one of two ways. First, it operates on the\ncommandline as C figlet does and supports most of the same options.\nRun with `--help` to see a full list of tweaks.  Mostly you will only\nuse `-f` to change the font. It defaults to standard.flf.\n\n`tools/pyfiglet 'text to render'`\n\n### Pyfiglet is also a library that can be used in python code:\n\n```py\nfrom pyfiglet import Figlet\nf = Figlet(font='slant')\nprint(f.renderText('text to render'))\n```\n\nor\n\n```py\nimport pyfiglet\nf = pyfiglet.figlet_format(\"text to render\", font=\"slant\")\nprint(f)\n```\nIf you have found some new fonts that you want to use, you can use the\ncommand line interface to install your font file as follows:\n\n`pyfiglet -L \u003cfont file\u003e`\n\nThe font file can be a ZIP file of lots of fonts or just a single font.\nDepending on how you installed pyfiglet, you may find that you need\nroot access to install the font - e.g. `sudo pyfiglet -L \u003cfont file\u003e`.\n\n## **Author**\n\nAll of the documentation and the majority of the work done was by\nChristopher Jones (cjones@insub.org) and many other contributors.\nPackaged by Peter Waller (p@pwaller.net), various enhancements by\nStefano Rivera (stefano@rivera.za.net),\nand lots of help from many contributors!\n\nThank you all for your efforts, please send a pull request to add yourself to\nthis list if you would like to take credit.\n\n(In the words of the original author) pyfiglet is a **port** of FIGlet, and much\nof the code is directly translated from the C source. I optimized some bits\nwhere I could, but because the smushing and kerning code is so incredibly\ncomplex, it was safer and easier to port the logic almost exactly. Therefore, I\ncan't really take much credit for authorship, just translation. The original\nauthors of FIGlet are listed on their website at http://www.figlet.org/.\n\nThe Python port was done by Christopher Jones \u003ccjones@insub.org\u003e (http://gruntle.org/).\n\nIt is currently maintained by Peter Waller (p@pwaller.net, github:pwaller)\n\nThe toilet fonts (.tlf) were imported from toilet 0.3-1, by Sam Hocevar (sam@zoy.org).\n\n## **Thanks**\n\nLots of people have helped make pyfiglet what it is but I particularly want to\ncall out.\n\ngithub:stefanor for various bug fixes and improvements and the debian packaging.\ngithub:peterbrittain for helping to close lots of issues.\n\n\n## **License**\nThe MIT License (MIT)\nCopyright © 2007-2023\n```\nChristopher Jones \u003ccjones@insub.org\u003e\nStefano Rivera \u003cstefano@rivera.za.net\u003e\nPeter Waller \u003cp@pwaller.net\u003e\nAnd various contributors (see git history).\n```\n(see LICENSE for full details)\n\n# Packaging status\n\n[![Packaging status](https://repology.org/badge/vertical-allrepos/python:pyfiglet.svg)](https://repology.org/project/python:pyfiglet/versions)\n","funding_links":[],"categories":["语言资源库","Text Processing","资源列表","文本处理","Python","[Python](https://www.python.org/)","Text Processing [🔝](#readme)","Awesome Python","Libraries \u0026 SDKs"],"sub_categories":["python","文本处理","Useful awesome list for Go cli","Text Processing","Python"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpwaller%2Fpyfiglet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpwaller%2Fpyfiglet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpwaller%2Fpyfiglet/lists"}