{"id":15043519,"url":"https://github.com/derricw/asciisciit","last_synced_at":"2025-04-14T06:42:58.276Z","repository":{"id":19722177,"uuid":"22978024","full_name":"derricw/asciisciit","owner":"derricw","description":"ASCII Art, Video, and Plotting Toolbox","archived":false,"fork":false,"pushed_at":"2021-07-31T01:43:46.000Z","size":96,"stargazers_count":84,"open_issues_count":1,"forks_count":7,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-04-21T11:16:19.363Z","etag":null,"topics":["ascii","ascii-art","gif","python","terminal-based","webcam"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/derricw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-15T04:00:15.000Z","updated_at":"2024-03-06T22:04:05.000Z","dependencies_parsed_at":"2022-08-24T14:09:07.746Z","dependency_job_id":null,"html_url":"https://github.com/derricw/asciisciit","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derricw%2Fasciisciit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derricw%2Fasciisciit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derricw%2Fasciisciit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derricw%2Fasciisciit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/derricw","download_url":"https://codeload.github.com/derricw/asciisciit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248837260,"owners_count":21169373,"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","ascii-art","gif","python","terminal-based","webcam"],"created_at":"2024-09-24T20:49:12.784Z","updated_at":"2025-04-14T06:42:58.250Z","avatar_url":"https://github.com/derricw.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"asciisciit\n===========\n\n## ASCII Art, Video, and Plotting Toolbox\n\nEver wanted to convert gifs to text and then back into gifs again?\n\nEver wanted to stream your webcam into your terminal as text?\n\nMe neither.\n\nBut now I can!\n\n![costner](http://i.imgur.com/lncbpBm.gif)\n\n## Installation\n\n*Should* work with py2 or py3, on both Linux and Windows.\n\nInstall with pip to make sure you get the dependencies.\n\n    $ git clone https://github.com/derricw/asciisciit.git\n    \n    $ cd asciisciit\n    \n    $ pip install .\n    \nYou can also install from pypi.\n\n    $ pip install asciisciit\n\n## Use\n\n#### Examples to run!\n\nConvert a gif to ascii and render it back to gif in 8 point font:\n\n    $ asciit dealwithit.gif ascii_render.gif -p 8\n\nDisplay webcam feed from camera 0 in a new terminal, with histogram equalization:\n\n    $ asciit -w 0 --n --e\n\nPlay a video file in a new terminal, scale to 0.15 characters per pixel, display at 24 fps:\n\n    $ asciit cats.mp4 -s 0.15 --n -f 24.0\n\nYou can even use URLs.\n\n    $ asciit https://media.giphy.com/media/bn0zlGb4LOyo8/giphy.gif cage.gif --e -s 0.6 -f 8\n\n![cage](https://i.imgur.com/51ccTSo.gif)\n\n### Using the module\n\n#### Images\n\n    \u003e\u003e\u003e from asciisciit import AsciiImage\n    \u003e\u003e\u003e img = AsciiImage(\"my_img.png\", scalefactor=0.2)\n    \u003e\u003e\u003e print(img)\n    \u003e\u003e\u003e img.render(\"output.png\", fontsize=8, bg_color=(20,20,20), fg_color=(255,255,255))\n\n#### Gifs\n\n    \u003e\u003e\u003e from asciisciit import AsciiMovie\n    \u003e\u003e\u003e gif = AsciiMovie(\"my_gif.gif\", scalefactor=0.2)\n    \u003e\u003e\u003e gif.play(fps=15.0)  #play at 15 fps\n    \u003e\u003e\u003e gif.render(\"ouput.gif\", fps=15.0, fontsize=8)\n\n#### Movies\n\n    \u003e\u003e\u003e from asciisciit import AsciiMovie\n    \u003e\u003e\u003e movie = AsciiMovie(\"my_movie.avi\", scalefactor=0.2)\n    \u003e\u003e\u003e movie.play(fps=24.0)\n    \u003e\u003e\u003e movie.render(\"output.avi\", fps=24.0, fontsize=8) # requires ffmpeg\n\n## TODO:\n\n1. Color\n1. more/custom look up tables\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderricw%2Fasciisciit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fderricw%2Fasciisciit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderricw%2Fasciisciit/lists"}