{"id":43084164,"url":"https://github.com/sepandhaghighi/typio","last_synced_at":"2026-02-19T10:09:06.198Z","repository":{"id":335670983,"uuid":"1128237061","full_name":"sepandhaghighi/typio","owner":"sepandhaghighi","description":"Typio: Make Your Terminal Type Like a Human","archived":false,"fork":false,"pushed_at":"2026-02-18T03:13:23.000Z","size":274,"stargazers_count":10,"open_issues_count":3,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-18T07:57:19.614Z","etag":null,"topics":["cli","console","python","python3","terminal","typewriter","typing","ux"],"latest_commit_sha":null,"homepage":"","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/sepandhaghighi.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.md","dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"custom":"https://github.com/sepandhaghighi/typio#show-your-support"}},"created_at":"2026-01-05T10:41:44.000Z","updated_at":"2026-02-15T20:05:44.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/sepandhaghighi/typio","commit_stats":null,"previous_names":["sepandhaghighi/typio"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/sepandhaghighi/typio","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sepandhaghighi%2Ftypio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sepandhaghighi%2Ftypio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sepandhaghighi%2Ftypio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sepandhaghighi%2Ftypio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sepandhaghighi","download_url":"https://codeload.github.com/sepandhaghighi/typio/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sepandhaghighi%2Ftypio/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29609531,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T06:47:36.664Z","status":"ssl_error","status_checked_at":"2026-02-19T06:45:47.551Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cli","console","python","python3","terminal","typewriter","typing","ux"],"created_at":"2026-01-31T15:06:14.480Z","updated_at":"2026-02-19T10:09:06.193Z","avatar_url":"https://github.com/sepandhaghighi.png","language":"Python","funding_links":["https://github.com/sepandhaghighi/typio#show-your-support"],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"https://github.com/sepandhaghighi/typio/raw/main/otherfiles/logo.png\" width=\"320\"\u003e\n\u003ch1\u003eTypio: Make Your Terminal Type Like a Human\u003c/h1\u003e\n\u003cbr/\u003e\n\u003ca href=\"https://www.python.org/\"\u003e\u003cimg src=\"https://img.shields.io/badge/built%20with-Python3-green.svg\" alt=\"built with Python3\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/sepandhaghighi/typio\"\u003e\u003cimg alt=\"GitHub repo size\" src=\"https://img.shields.io/github/repo-size/sepandhaghighi/typio\"\u003e\u003c/a\u003e\n\u003ca href=\"https://badge.fury.io/py/typio\"\u003e\u003cimg src=\"https://badge.fury.io/py/typio.svg\" alt=\"PyPI version\"\u003e\u003c/a\u003e\n\u003ca href=\"https://codecov.io/gh/sepandhaghighi/typio\"\u003e\u003cimg src=\"https://codecov.io/gh/sepandhaghighi/typio/graph/badge.svg?token=UPhwanwQVw\"\u003e\u003c/a\u003e\n\u003c/div\u003e\t\t\t\n\t\t\t\t\n## Overview\t\n\n\u003cp align=\"justify\"\u003e\nTypio is a lightweight Python library that prints text to the terminal as if it were being typed by a human. It supports multiple typing modes (character, word, line, sentence, typewriter, and adaptive), configurable delays and jitter for natural variation, and seamless integration with existing code via a simple function or a decorator. Typio is designed to be minimal, extensible, and safe, making it ideal for demos, CLIs, tutorials, and storytelling in the terminal.\n\u003c/p\u003e\n\n\u003ctable\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd align=\"center\"\u003ePyPI Counter\u003c/td\u003e\n\t\t\u003ctd align=\"center\"\u003e\u003ca href=\"http://pepy.tech/project/typio\"\u003e\u003cimg src=\"http://pepy.tech/badge/typio\"\u003e\u003c/a\u003e\u003c/td\u003e\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd align=\"center\"\u003eGithub Stars\u003c/td\u003e\n\t\t\u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/sepandhaghighi/typio\"\u003e\u003cimg src=\"https://img.shields.io/github/stars/sepandhaghighi/typio.svg?style=social\u0026label=Stars\"\u003e\u003c/a\u003e\u003c/td\u003e\n\t\u003c/tr\u003e\n\u003c/table\u003e\n\n\n\n\u003ctable\u003e\n\t\u003ctr\u003e \n\t\t\u003ctd align=\"center\"\u003eBranch\u003c/td\u003e\n\t\t\u003ctd align=\"center\"\u003emain\u003c/td\u003e\t\n\t\t\u003ctd align=\"center\"\u003edev\u003c/td\u003e\t\n\t\u003c/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd align=\"center\"\u003eCI\u003c/td\u003e\n\t\t\u003ctd align=\"center\"\u003e\u003cimg src=\"https://github.com/sepandhaghighi/typio/actions/workflows/test.yml/badge.svg?branch=main\"\u003e\u003c/td\u003e\n\t\t\u003ctd align=\"center\"\u003e\u003cimg src=\"https://github.com/sepandhaghighi/typio/actions/workflows/test.yml/badge.svg?branch=dev\"\u003e\u003c/td\u003e\n\t\u003c/tr\u003e\n\u003c/table\u003e\n\n\u003ctable\u003e\n    \u003ctr\u003e \n        \u003ctd align=\"center\"\u003eCode Quality\u003c/td\u003e\n        \u003ctd align=\"center\"\u003e\u003ca href=\"https://www.codefactor.io/repository/github/sepandhaghighi/typio\"\u003e\u003cimg src=\"https://www.codefactor.io/repository/github/sepandhaghighi/typio/badge\" alt=\"CodeFactor\"\u003e\u003c/a\u003e\u003c/td\u003e\n        \u003ctd align=\"center\"\u003e\u003ca href=\"https://app.codacy.com/gh/sepandhaghighi/typio/dashboard?utm_source=gh\u0026utm_medium=referral\u0026utm_content=\u0026utm_campaign=Badge_grade\"\u003e\u003cimg src=\"https://app.codacy.com/project/badge/Grade/e047db39052a4be2859f299dd7f7ce3c\"\u003e\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n\u003c/table\u003e\n\n## Installation\t\t\n\n### Source Code\n- Download [Version 0.4](https://github.com/sepandhaghighi/typio/archive/v0.4.zip) or [Latest Source](https://github.com/sepandhaghighi/typio/archive/dev.zip)\n- `pip install .`\t\t\t\t\n\n### PyPI\n\n- Check [Python Packaging User Guide](https://packaging.python.org/installing/)     \n- `pip install typio==0.4`\t\t\t\t\t\t\n\n\n## Usage\n\n### Function\n\nUse `type_print` function to print text with human-like typing effects. You can control the typing speed, randomness, mode, and output stream.\n\n#### Example\n\n```python\nfrom typio import type_print\nfrom typio import TypeMode\n\ntype_print(\"Hello, world!\")\n\ntype_print(\n    \"Typing with style and personality.\",\n    delay=0.06,\n    jitter=0.02,\n\tend=\"\\n\",\n    mode=TypeMode.ADAPTIVE,\n)\n```\n\nYou can also redirect the output to any file-like object:\n\n```python\nwith open(\"output.txt\", \"w\") as file:\n    type_print(\"Saved with typing effects.\", file=file)\n```\n\n#### Parameters\n\n| Name | Type | Description | Default |\n|------|------|-------------|---------|\n| `text` | `str` | Text to be printed | -- |\n| `delay` | `float` | Base delay (seconds) between emitted units | `0.04` |\n| `jitter` | `float` | Random delay variation (seconds) | `0` |\n| `end` | `str` | Ending character(s) | `\\n` |\n| `mode` | `TypeMode \\| Callable` | Typing mode (built-in or custom) | `TypeMode.CHAR` |\n| `file` | `TextIOBase` | Output stream | `sys.stdout` |\n\n\n#### Built-in Modes\n\n| Mode | Description |\n|------|-------------|\n| `TypeMode.CHAR` | Emit text **character by character** |\n| `TypeMode.WORD` | Emit text **word by word**, preserving whitespace |\n| `TypeMode.LINE` | Emit text **line by line** |\n| `TypeMode.SENTENCE` | Emit text character by character with **longer pauses after `.`, `!`, `?`** |\n| `TypeMode.TYPEWRITER` | Emit text character by character with **longer pauses after newlines** |\n| `TypeMode.ADAPTIVE` | Emit text with **adaptive delays** based on character type (spaces, punctuation, alphanumeric) |\n\n\n### Decorator\n\nUse the `@typestyle` decorator to apply typing effects to all `print` calls inside a function, without changing the function's implementation.\n\n#### Example\n\n```python\nfrom typio import typestyle\nfrom typio import TypeMode\n\n@typestyle(delay=0.05, mode=TypeMode.TYPEWRITER)\ndef intro():\n    print(\"Welcome to Typio.\")\n    print(\"Every print is typed.\")\n\nintro()\n```\n\n#### Parameters\n\n| Name | Type | Description | Default |\n|------|------|-------------|---------|\n| `delay` | `float` | Base delay (seconds) between emitted units | `0.04` |\n| `jitter` | `float` | Random delay variation (seconds) | `0` |\n| `mode` | `TypeMode \\| Callable` | Typing mode (built-in or custom) | `TypeMode.CHAR` |\n\n### Custom Mode\n\nTypio also allows defining custom typing modes.\n\nA custom mode is a callable that receives a typing context and the text being printed.\n\n#### Example\n\nThis custom mode, named `dramatic`, adds exaggerated pauses after punctuation to create a dramatic typing effect.\n\n```python\nfrom typio import TypioContext\n\ndef dramatic(ctx: TypioContext, text: str):\n    for ch in text:\n        ctx.emit(ch)\n        if ch in \".!?\":\n            ctx.sleep(delay=ctx.delay * 6)\n```\n\nUsage with `type_print` function:\n\n```python\ntype_print(\n    \"Wait... what?!\",\n    mode=dramatic,\n    delay=0.05,\n    jitter=0.02,\n)\n```\n\nUsage with `@typestyle` decorator:\n\n```python\n@typestyle(delay=0.06, mode=dramatic)\ndef demo():\n    print(\"This is serious.\")\n    print(\"Very serious!\")\n\ndemo()\n```\n\n#### Parameters\n\nThis table describes the `TypioContext` API, which is the interface exposed to custom typing modes for emitting text, controlling timing, and accessing delay settings.\n\n| Name | Type | Description |\n|------|------|-------------|\n| `emit(text)` | `method` | Emit a text fragment using typing effects |\n| `sleep(delay=None, jitter=None)` | `method` | Pause execution with optional delay and jitter override |\n| `flush()` | `method` | Flush the underlying output stream |\n| `delay` | `property` | Base delay in seconds |\n| `jitter` | `property` | Jitter value in seconds |\n\n\n### CLI\n\nTypio provides a simple command line interface for printing text with typing effects.\n\n#### Example\n\n```console\n\u003e typio --text=\"Hello world!\" --mode=typewriter --delay=0.03\n```\n\n\n## Issues \u0026 Bug Reports\t\t\t\n\nJust fill an issue and describe it. We'll check it ASAP!\n\n- Please complete the issue template\n\n## Show Your Support\n\t\t\t\t\t\t\t\t\n\u003ch3\u003eStar This Repo\u003c/h3\u003e\t\t\t\t\t\n\nGive a ⭐️ if this project helped you!\n\n\u003ch3\u003eDonate to Our Project\u003c/h3\u003e\t\n\n\u003ch4\u003eBitcoin\u003c/h4\u003e\n1KtNLEEeUbTEK9PdN6Ya3ZAKXaqoKUuxCy\n\u003ch4\u003eEthereum\u003c/h4\u003e\n0xcD4Db18B6664A9662123D4307B074aE968535388\n\u003ch4\u003eLitecoin\u003c/h4\u003e\nLdnz5gMcEeV8BAdsyf8FstWDC6uyYR6pgZ\n\u003ch4\u003eDoge\u003c/h4\u003e\nDDUnKpFQbBqLpFVZ9DfuVysBdr249HxVDh\n\u003ch4\u003eTron\u003c/h4\u003e\nTCZxzPZLcJHr2qR3uPUB1tXB6L3FDSSAx7\n\u003ch4\u003eRipple\u003c/h4\u003e\nrN7ZuRG7HDGHR5nof8nu5LrsbmSB61V1qq\n\u003ch4\u003eBinance Coin\u003c/h4\u003e\nbnb1zglwcf0ac3d0s2f6ck5kgwvcru4tlctt4p5qef\n\u003ch4\u003eTether\u003c/h4\u003e\n0xcD4Db18B6664A9662123D4307B074aE968535388\n\u003ch4\u003eDash\u003c/h4\u003e\nXd3Yn2qZJ7VE8nbKw2fS98aLxR5M6WUU3s\n\u003ch4\u003eStellar\u003c/h4\u003e\t\t\nGALPOLPISRHIYHLQER2TLJRGUSZH52RYDK6C3HIU4PSMNAV65Q36EGNL\n\u003ch4\u003eZilliqa\u003c/h4\u003e\nzil1knmz8zj88cf0exr2ry7nav9elehxfcgqu3c5e5\n\u003ch4\u003eCoffeete\u003c/h4\u003e\n\u003ca href=\"http://www.coffeete.ir/opensource\"\u003e\n\u003cimg src=\"http://www.coffeete.ir/images/buttons/lemonchiffon.png\" style=\"width:260px;\" /\u003e\n\u003c/a\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsepandhaghighi%2Ftypio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsepandhaghighi%2Ftypio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsepandhaghighi%2Ftypio/lists"}