Skip to main content

Typio: Make Your Terminal Type Like a Human

Project description

Typio: Make Your Terminal Type Like a Human


built with Python3 GitHub repo size PyPI version

Overview

Typio 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.

PyPI Counter
Github Stars
Branch main dev
CI
Code Quality CodeFactor

Installation

Source Code

PyPI

Usage

Function

Use type_print function to print text with human-like typing effects. You can control the typing speed, randomness, mode, and output stream.

from typio import type_print
from typio import TypeMode

type_print("Hello, world!")

type_print(
    "Typing with style and personality.",
    delay=0.06,
    jitter=0.02,
	end="\n",
    mode=TypeMode.ADAPTIVE,
)

You can also redirect the output to any file-like object:

with open("output.txt", "w") as file:
    type_print("Saved with typing effects.", file=file)

Decorator

Use the @typestyle decorator to apply typing effects to all print calls inside a function, without changing the function's implementation.

from typio import typestyle
from typio import TypeMode

@typestyle(delay=0.05, mode=TypeMode.TYPEWRITER)
def intro():
    print("Welcome to Typio.")
    print("Every print is typed.")

intro()

Issues & Bug Reports

Just fill an issue and describe it. We'll check it ASAP!

  • Please complete the issue template

Show Your Support

Star This Repo

Give a ⭐️ if this project helped you!

Donate to Our Project

Bitcoin

1KtNLEEeUbTEK9PdN6Ya3ZAKXaqoKUuxCy

Ethereum

0xcD4Db18B6664A9662123D4307B074aE968535388

Litecoin

Ldnz5gMcEeV8BAdsyf8FstWDC6uyYR6pgZ

Doge

DDUnKpFQbBqLpFVZ9DfuVysBdr249HxVDh

Tron

TCZxzPZLcJHr2qR3uPUB1tXB6L3FDSSAx7

Ripple

rN7ZuRG7HDGHR5nof8nu5LrsbmSB61V1qq

Binance Coin

bnb1zglwcf0ac3d0s2f6ck5kgwvcru4tlctt4p5qef

Tether

0xcD4Db18B6664A9662123D4307B074aE968535388

Dash

Xd3Yn2qZJ7VE8nbKw2fS98aLxR5M6WUU3s

Stellar

GALPOLPISRHIYHLQER2TLJRGUSZH52RYDK6C3HIU4PSMNAV65Q36EGNL

Zilliqa

zil1knmz8zj88cf0exr2ry7nav9elehxfcgqu3c5e5

Coffeete

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

Unreleased

0.2 - 2026-02-04

Changed

  • README.md updated
  • end parameter added to type_print function
  • Test system modified

0.1 - 2026-01-31

Added

  • type_print function
  • typestyle decorator
  • CHAR mode
  • WORD mode
  • LINE mode
  • SENTENCE mode
  • TYPEWRITER mode
  • ADAPTIVE mode

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

typio-0.2.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

typio-0.2-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file typio-0.2.tar.gz.

File metadata

  • Download URL: typio-0.2.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for typio-0.2.tar.gz
Algorithm Hash digest
SHA256 a82270f13126c1bbd107f6b641999c2b5686387ccae631ab91cdb0968f327286
MD5 3e21c83b74f552dff1373fdf5b8dbdcd
BLAKE2b-256 cdee1a670edc7902c2a702fc2fbf23666bb6dc78e8e0b469be4544917c600e97

See more details on using hashes here.

File details

Details for the file typio-0.2-py3-none-any.whl.

File metadata

  • Download URL: typio-0.2-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for typio-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 58862dc2bd6152d9ac84acb78251cc8ad5bd09f9c31fffca752f9eee45e12f59
MD5 df2eff0f8a66aca963af92f5287c0664
BLAKE2b-256 2038b58beb0e312dcfde92de5d663a22fa4d174f6f107b0add8c9f25a61922ee

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page