Metadata-Version: 2.4
Name: code-typer
Version: 0.1.1
Summary: Terminal-based code showcase tool that simulates human-like typing
Author-email: Farshid Ashouri <farsheed.ashouri@gmail.com>
Maintainer-email: Farshid Ashouri <farsheed.ashouri@gmail.com>
License-Expression: Apache-2.0
Project-URL: Homepage, https://github.com/rodmena-limited/code-typer
Project-URL: Repository, https://github.com/rodmena-limited/code-typer
Project-URL: Issues, https://github.com/rodmena-limited/code-typer/issues
Project-URL: Changelog, https://github.com/rodmena-limited/code-typer/releases
Keywords: terminal,code,demo,typing,showcase,conference,presentation,curses,ncurses,syntax-highlighting
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Environment :: Console :: Curses
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Education
Classifier: Operating System :: POSIX
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: MacOS
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Cython
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Terminals
Classifier: Topic :: Multimedia :: Graphics :: Presentation
Classifier: Typing :: Typed
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: click>=8.0
Provides-Extra: dev
Requires-Dist: pytest>=7.0; extra == "dev"
Requires-Dist: pytest-cov>=4.0; extra == "dev"
Requires-Dist: ruff>=0.1.0; extra == "dev"
Requires-Dist: mypy>=1.0; extra == "dev"
Requires-Dist: Cython>=3.0; extra == "dev"
Requires-Dist: build; extra == "dev"
Requires-Dist: twine; extra == "dev"
Dynamic: license-file

# code-typer

Terminal-based code showcase tool that simulates human-like typing of source code files.

## Features

- **Human-like typing simulation** - Variable speed, occasional typos with corrections, natural pauses
- **Syntax highlighting** - Built-in support for Python and SQL, extensible for other languages
- **Multi-file support** - Showcase entire directories with smooth transitions
- **ncurses display** - Proper terminal handling with scrolling and color support
- **Configurable behavior** - Adjust typing speed and error rate

## Installation

```bash
pip install code-typer
```

For development with Cython optimizations:

```bash
pip install code-typer[dev]
```

## Usage

```bash
# Showcase a single file
showcase example.py

# Showcase with custom speed (2x faster)
showcase example.py --speed 2.0

# Showcase with higher error rate
showcase example.py --error-rate 0.05

# Showcase an entire directory
showcase ./src --speed 1.5

# Disable syntax highlighting
showcase example.py --no-highlight
```

## Options

| Option | Description | Default |
|--------|-------------|---------|
| `--speed, -s` | Typing speed multiplier (1.0 = normal) | 1.0 |
| `--error-rate, -e` | Probability of typos (0.0-1.0) | 0.02 |
| `--no-highlight` | Disable syntax highlighting | False |
| `--pause-between-files` | Pause duration between files (seconds) | 1.0 |

## Supported Languages

- Python (`.py`, `.pyx`, `.pxd`)
- SQL (`.sql`)

Additional languages will show without syntax highlighting.

## License

Apache License 2.0
