typio 0.0.0__py3-none-any.whl → 0.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- typio/__init__.py +8 -0
- typio/__main__.py +5 -0
- typio/errors.py +8 -0
- typio/functions.py +245 -0
- typio/params.py +25 -0
- typio-0.2.dist-info/METADATA +225 -0
- typio-0.2.dist-info/RECORD +11 -0
- {typio-0.0.0.dist-info → typio-0.2.dist-info}/WHEEL +1 -1
- typio-0.2.dist-info/licenses/AUTHORS.md +12 -0
- typio-0.2.dist-info/licenses/LICENSE +21 -0
- typio-0.2.dist-info/top_level.txt +1 -0
- __init__.py +0 -2
- typio-0.0.0.dist-info/METADATA +0 -38
- typio-0.0.0.dist-info/RECORD +0 -5
- typio-0.0.0.dist-info/top_level.txt +0 -1
typio/__init__.py
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
"""typio modules."""
|
|
3
|
+
from .params import TYPIO_VERSION, TypeMode
|
|
4
|
+
from .errors import TypioError
|
|
5
|
+
from .functions import type_print, typestyle
|
|
6
|
+
|
|
7
|
+
__version__ = TYPIO_VERSION
|
|
8
|
+
__all__ = ["TypeMode", "TypioError", "type_print", "typestyle"]
|
typio/__main__.py
ADDED
typio/errors.py
ADDED
typio/functions.py
ADDED
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
"""typio functions."""
|
|
3
|
+
|
|
4
|
+
import sys
|
|
5
|
+
import time
|
|
6
|
+
import random
|
|
7
|
+
import re
|
|
8
|
+
from functools import wraps
|
|
9
|
+
from io import TextIOBase
|
|
10
|
+
from typing import Any, Callable, Optional
|
|
11
|
+
from .params import TypeMode
|
|
12
|
+
from .params import INVALID_TEXT_ERROR, INVALID_BYTE_ERROR, INVALID_DELAY_ERROR
|
|
13
|
+
from .params import INVALID_JITTER_ERROR, INVALID_MODE_ERROR, INVALID_FILE_ERROR
|
|
14
|
+
from .params import INVALID_END_ERROR
|
|
15
|
+
from .errors import TypioError
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
def _validate(
|
|
19
|
+
text: Any,
|
|
20
|
+
delay: Any,
|
|
21
|
+
jitter: Any,
|
|
22
|
+
mode: Any,
|
|
23
|
+
end: Any,
|
|
24
|
+
file: Any,
|
|
25
|
+
) -> str:
|
|
26
|
+
"""
|
|
27
|
+
Validate and normalize inputs for typing operations.
|
|
28
|
+
|
|
29
|
+
:param text: text to be printed
|
|
30
|
+
:param delay: base delay (in seconds) between emitted units
|
|
31
|
+
:param jitter: random jitter added/subtracted from delay
|
|
32
|
+
:param mode: typing mode controlling emission granularity
|
|
33
|
+
:param end: end character(s)
|
|
34
|
+
:param file: output stream supporting a write() method
|
|
35
|
+
"""
|
|
36
|
+
if not isinstance(text, (str, bytes)):
|
|
37
|
+
raise TypioError(INVALID_TEXT_ERROR)
|
|
38
|
+
|
|
39
|
+
if isinstance(text, bytes):
|
|
40
|
+
try:
|
|
41
|
+
text = text.decode()
|
|
42
|
+
except Exception:
|
|
43
|
+
raise TypioError(INVALID_BYTE_ERROR)
|
|
44
|
+
|
|
45
|
+
if not isinstance(delay, (int, float)) or delay < 0:
|
|
46
|
+
raise TypioError(INVALID_DELAY_ERROR)
|
|
47
|
+
|
|
48
|
+
if not isinstance(jitter, (int, float)) or jitter < 0:
|
|
49
|
+
raise TypioError(INVALID_JITTER_ERROR)
|
|
50
|
+
|
|
51
|
+
if not isinstance(mode, TypeMode):
|
|
52
|
+
raise TypioError(INVALID_MODE_ERROR)
|
|
53
|
+
|
|
54
|
+
if not isinstance(end, str):
|
|
55
|
+
raise TypioError(INVALID_END_ERROR)
|
|
56
|
+
|
|
57
|
+
if file is not None and not hasattr(file, "write"):
|
|
58
|
+
raise TypioError(INVALID_FILE_ERROR)
|
|
59
|
+
text = f"{text}{end}"
|
|
60
|
+
return text
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
def _sleep(delay: float, jitter: float) -> None:
|
|
64
|
+
"""
|
|
65
|
+
Sleep for a given delay with optional random jitter.
|
|
66
|
+
|
|
67
|
+
:param delay: base delay (in seconds) between emitted units
|
|
68
|
+
:param jitter: random jitter added/subtracted from delay
|
|
69
|
+
"""
|
|
70
|
+
if delay <= 0:
|
|
71
|
+
return
|
|
72
|
+
if jitter:
|
|
73
|
+
delay += random.uniform(-jitter, jitter)
|
|
74
|
+
delay = max(0, delay)
|
|
75
|
+
time.sleep(delay)
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
class _TypioPrinter:
|
|
79
|
+
"""File-like object that emits text with typing effects."""
|
|
80
|
+
|
|
81
|
+
def __init__(self, *, delay: float, jitter: float, mode: TypeMode, out: TextIOBase) -> None:
|
|
82
|
+
"""
|
|
83
|
+
Initialize the typing printer.
|
|
84
|
+
|
|
85
|
+
:param delay: base delay (in seconds) between emitted units
|
|
86
|
+
:param jitter: random jitter added/subtracted from delay
|
|
87
|
+
:param mode: typing mode controlling emission granularity
|
|
88
|
+
:param out: underlying output stream
|
|
89
|
+
"""
|
|
90
|
+
self.delay = delay
|
|
91
|
+
self.jitter = jitter
|
|
92
|
+
self.mode = mode
|
|
93
|
+
self.out = out
|
|
94
|
+
|
|
95
|
+
def write(self, text: str) -> None:
|
|
96
|
+
"""
|
|
97
|
+
Write text using the configured typing mode.
|
|
98
|
+
|
|
99
|
+
:param text: text to be written
|
|
100
|
+
"""
|
|
101
|
+
handler = getattr(self, "_mode_{mode}".format(mode=self.mode.value))
|
|
102
|
+
handler(text)
|
|
103
|
+
|
|
104
|
+
def flush(self) -> None:
|
|
105
|
+
"""Flush the underlying output stream."""
|
|
106
|
+
self.out.flush()
|
|
107
|
+
|
|
108
|
+
def _emit(self, part: str, delay: Optional[float] = None) -> None:
|
|
109
|
+
"""
|
|
110
|
+
Emit a text fragment and apply delay.
|
|
111
|
+
|
|
112
|
+
:param part: text fragment to write
|
|
113
|
+
:param delay: optional override delay for this fragment
|
|
114
|
+
"""
|
|
115
|
+
self.out.write(part)
|
|
116
|
+
self.out.flush()
|
|
117
|
+
_sleep(delay if delay is not None else self.delay, self.jitter)
|
|
118
|
+
|
|
119
|
+
def _mode_char(self, text: str) -> None:
|
|
120
|
+
"""
|
|
121
|
+
Emit text character by character.
|
|
122
|
+
|
|
123
|
+
:param text: text to emit
|
|
124
|
+
"""
|
|
125
|
+
for c in text:
|
|
126
|
+
self._emit(c)
|
|
127
|
+
|
|
128
|
+
def _mode_word(self, text: str) -> None:
|
|
129
|
+
"""
|
|
130
|
+
Emit text word by word, preserving whitespace.
|
|
131
|
+
|
|
132
|
+
:param text: text to emit
|
|
133
|
+
"""
|
|
134
|
+
for w in re.findall(r"\S+|\s+", text):
|
|
135
|
+
self._emit(w)
|
|
136
|
+
|
|
137
|
+
def _mode_line(self, text: str) -> None:
|
|
138
|
+
"""
|
|
139
|
+
Emit text line by line.
|
|
140
|
+
|
|
141
|
+
:param text: text to emit
|
|
142
|
+
"""
|
|
143
|
+
for line in text.splitlines(True):
|
|
144
|
+
self._emit(line)
|
|
145
|
+
|
|
146
|
+
def _mode_sentence(self, text: str) -> None:
|
|
147
|
+
"""
|
|
148
|
+
Emit text character by character with longer pauses after sentence-ending punctuation.
|
|
149
|
+
|
|
150
|
+
:param text: text to emit
|
|
151
|
+
"""
|
|
152
|
+
for c in text:
|
|
153
|
+
self._emit(c)
|
|
154
|
+
if c in ".!?":
|
|
155
|
+
_sleep(self.delay * 4, self.jitter)
|
|
156
|
+
|
|
157
|
+
def _mode_typewriter(self, text: str) -> None:
|
|
158
|
+
"""
|
|
159
|
+
Emit text character by character with longer pauses after newlines.
|
|
160
|
+
|
|
161
|
+
:param text: text to emit
|
|
162
|
+
"""
|
|
163
|
+
for c in text:
|
|
164
|
+
self._emit(c)
|
|
165
|
+
if c == "\n":
|
|
166
|
+
_sleep(self.delay * 5, self.jitter)
|
|
167
|
+
|
|
168
|
+
def _mode_adaptive(self, text: str) -> None:
|
|
169
|
+
"""
|
|
170
|
+
Emit text with adaptive delays based on character type.
|
|
171
|
+
|
|
172
|
+
:param text: text to emit
|
|
173
|
+
"""
|
|
174
|
+
for c in text:
|
|
175
|
+
d = self.delay * (
|
|
176
|
+
0.3 if c.isspace()
|
|
177
|
+
else 1.5 if not c.isalnum()
|
|
178
|
+
else 1
|
|
179
|
+
)
|
|
180
|
+
self._emit(c, d)
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
def type_print(
|
|
184
|
+
text: str,
|
|
185
|
+
*,
|
|
186
|
+
delay: float = 0.04,
|
|
187
|
+
jitter: float = 0,
|
|
188
|
+
end: str = "\n",
|
|
189
|
+
mode: TypeMode = TypeMode.CHAR,
|
|
190
|
+
file: Optional[TextIOBase] = None) -> None:
|
|
191
|
+
"""
|
|
192
|
+
Print text with typing effects.
|
|
193
|
+
|
|
194
|
+
:param text: text to be printed
|
|
195
|
+
:param delay: base delay (in seconds) between emitted units
|
|
196
|
+
:param jitter: random jitter added/subtracted from delay
|
|
197
|
+
:param end: end character(s)
|
|
198
|
+
:param mode: typing mode controlling emission granularity
|
|
199
|
+
:param file: output stream supporting a write() method
|
|
200
|
+
"""
|
|
201
|
+
text = _validate(text, delay, jitter, mode, end, file)
|
|
202
|
+
out = file or sys.stdout
|
|
203
|
+
|
|
204
|
+
printer = _TypioPrinter(
|
|
205
|
+
delay=delay,
|
|
206
|
+
jitter=jitter,
|
|
207
|
+
mode=mode,
|
|
208
|
+
out=out,
|
|
209
|
+
)
|
|
210
|
+
printer.write(text)
|
|
211
|
+
printer.flush()
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
def typestyle(
|
|
215
|
+
*,
|
|
216
|
+
delay: float = 0.04,
|
|
217
|
+
jitter: float = 0,
|
|
218
|
+
mode: TypeMode = TypeMode.CHAR) -> Callable:
|
|
219
|
+
"""
|
|
220
|
+
Apply typing effects to all print() calls inside the decorated function.
|
|
221
|
+
|
|
222
|
+
:param delay: base delay (in seconds) between emitted units
|
|
223
|
+
:param jitter: random jitter added/subtracted from delay
|
|
224
|
+
:param mode: typing mode controlling emission granularity
|
|
225
|
+
"""
|
|
226
|
+
_validate("", delay, jitter, mode, "", sys.stdout)
|
|
227
|
+
|
|
228
|
+
def decorator(func: Callable) -> Callable:
|
|
229
|
+
@wraps(func)
|
|
230
|
+
def wrapper(*args: list, **kwargs: dict) -> Any:
|
|
231
|
+
old_stdout = sys.stdout
|
|
232
|
+
try:
|
|
233
|
+
sys.stdout = _TypioPrinter(
|
|
234
|
+
delay=delay,
|
|
235
|
+
jitter=jitter,
|
|
236
|
+
mode=mode,
|
|
237
|
+
out=old_stdout,
|
|
238
|
+
)
|
|
239
|
+
return func(*args, **kwargs)
|
|
240
|
+
finally:
|
|
241
|
+
sys.stdout = old_stdout
|
|
242
|
+
|
|
243
|
+
return wrapper
|
|
244
|
+
|
|
245
|
+
return decorator
|
typio/params.py
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
"""typio params."""
|
|
3
|
+
from enum import Enum
|
|
4
|
+
|
|
5
|
+
TYPIO_VERSION = "0.2"
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class TypeMode(Enum):
|
|
9
|
+
"""Type mode enum."""
|
|
10
|
+
|
|
11
|
+
CHAR = "char"
|
|
12
|
+
WORD = "word"
|
|
13
|
+
LINE = "line"
|
|
14
|
+
SENTENCE = "sentence"
|
|
15
|
+
TYPEWRITER = "typewriter"
|
|
16
|
+
ADAPTIVE = "adaptive"
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
INVALID_TEXT_ERROR = "`text` must be str or bytes."
|
|
20
|
+
INVALID_BYTE_ERROR = "bytes text must be UTF-8 decodable."
|
|
21
|
+
INVALID_DELAY_ERROR = "`delay` must be a non-negative number."
|
|
22
|
+
INVALID_JITTER_ERROR = "`jitter` must be a non-negative number."
|
|
23
|
+
INVALID_MODE_ERROR = "`mode` must be a TypeMode enum value."
|
|
24
|
+
INVALID_END_ERROR = "`end` must be a str."
|
|
25
|
+
INVALID_FILE_ERROR = "`file` must be a file-like object."
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: typio
|
|
3
|
+
Version: 0.2
|
|
4
|
+
Summary: Typio: Make Your Terminal Type Like a Human
|
|
5
|
+
Home-page: https://github.com/sepandhaghighi/typio
|
|
6
|
+
Download-URL: https://github.com/sepandhaghighi/typio/tarball/v0.2
|
|
7
|
+
Author: Sepand Haghighi
|
|
8
|
+
Author-email: me@sepand.tech
|
|
9
|
+
License: MIT
|
|
10
|
+
Project-URL: Source, https://github.com/sepandhaghighi/typio
|
|
11
|
+
Keywords: terminal cli typing typewriter typing-effect console stdout ux
|
|
12
|
+
Classifier: Development Status :: 3 - Alpha
|
|
13
|
+
Classifier: Natural Language :: English
|
|
14
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
15
|
+
Classifier: Operating System :: OS Independent
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
23
|
+
Classifier: Intended Audience :: Developers
|
|
24
|
+
Classifier: Intended Audience :: Education
|
|
25
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
26
|
+
Classifier: Topic :: Software Development :: User Interfaces
|
|
27
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
28
|
+
Classifier: Topic :: Utilities
|
|
29
|
+
Classifier: Topic :: Terminals
|
|
30
|
+
Requires-Python: >=3.8
|
|
31
|
+
Description-Content-Type: text/markdown
|
|
32
|
+
License-File: LICENSE
|
|
33
|
+
License-File: AUTHORS.md
|
|
34
|
+
Dynamic: author
|
|
35
|
+
Dynamic: author-email
|
|
36
|
+
Dynamic: classifier
|
|
37
|
+
Dynamic: description
|
|
38
|
+
Dynamic: description-content-type
|
|
39
|
+
Dynamic: download-url
|
|
40
|
+
Dynamic: home-page
|
|
41
|
+
Dynamic: keywords
|
|
42
|
+
Dynamic: license
|
|
43
|
+
Dynamic: license-file
|
|
44
|
+
Dynamic: project-url
|
|
45
|
+
Dynamic: requires-python
|
|
46
|
+
Dynamic: summary
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
<div align="center">
|
|
50
|
+
<img src="https://github.com/sepandhaghighi/typio/raw/main/otherfiles/logo.png" width="320">
|
|
51
|
+
<h1>Typio: Make Your Terminal Type Like a Human</h1>
|
|
52
|
+
<br/>
|
|
53
|
+
<a href="https://www.python.org/"><img src="https://img.shields.io/badge/built%20with-Python3-green.svg" alt="built with Python3"></a>
|
|
54
|
+
<a href="https://github.com/sepandhaghighi/typio"><img alt="GitHub repo size" src="https://img.shields.io/github/repo-size/sepandhaghighi/typio"></a>
|
|
55
|
+
<a href="https://badge.fury.io/py/typio"><img src="https://badge.fury.io/py/typio.svg" alt="PyPI version"></a>
|
|
56
|
+
<a href="https://codecov.io/gh/sepandhaghighi/typio"><img src="https://codecov.io/gh/sepandhaghighi/typio/graph/badge.svg?token=UPhwanwQVw"></a>
|
|
57
|
+
</div>
|
|
58
|
+
|
|
59
|
+
## Overview
|
|
60
|
+
|
|
61
|
+
<p align="justify">
|
|
62
|
+
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.
|
|
63
|
+
</p>
|
|
64
|
+
|
|
65
|
+
<table>
|
|
66
|
+
<tr>
|
|
67
|
+
<td align="center">PyPI Counter</td>
|
|
68
|
+
<td align="center"><a href="http://pepy.tech/project/typio"><img src="http://pepy.tech/badge/typio"></a></td>
|
|
69
|
+
</tr>
|
|
70
|
+
<tr>
|
|
71
|
+
<td align="center">Github Stars</td>
|
|
72
|
+
<td align="center"><a href="https://github.com/sepandhaghighi/typio"><img src="https://img.shields.io/github/stars/sepandhaghighi/typio.svg?style=social&label=Stars"></a></td>
|
|
73
|
+
</tr>
|
|
74
|
+
</table>
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
<table>
|
|
79
|
+
<tr>
|
|
80
|
+
<td align="center">Branch</td>
|
|
81
|
+
<td align="center">main</td>
|
|
82
|
+
<td align="center">dev</td>
|
|
83
|
+
</tr>
|
|
84
|
+
<tr>
|
|
85
|
+
<td align="center">CI</td>
|
|
86
|
+
<td align="center"><img src="https://github.com/sepandhaghighi/typio/actions/workflows/test.yml/badge.svg?branch=main"></td>
|
|
87
|
+
<td align="center"><img src="https://github.com/sepandhaghighi/typio/actions/workflows/test.yml/badge.svg?branch=dev"></td>
|
|
88
|
+
</tr>
|
|
89
|
+
</table>
|
|
90
|
+
|
|
91
|
+
<table>
|
|
92
|
+
<tr>
|
|
93
|
+
<td align="center">Code Quality</td>
|
|
94
|
+
<td align="center"><a href="https://www.codefactor.io/repository/github/sepandhaghighi/typio"><img src="https://www.codefactor.io/repository/github/sepandhaghighi/typio/badge" alt="CodeFactor"></a></td>
|
|
95
|
+
<td align="center"><a href="https://app.codacy.com/gh/sepandhaghighi/typio/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade"><img src="https://app.codacy.com/project/badge/Grade/e047db39052a4be2859f299dd7f7ce3c"></a></td>
|
|
96
|
+
</tr>
|
|
97
|
+
</table>
|
|
98
|
+
|
|
99
|
+
## Installation
|
|
100
|
+
|
|
101
|
+
### Source Code
|
|
102
|
+
- Download [Version 0.2](https://github.com/sepandhaghighi/typio/archive/v0.2.zip) or [Latest Source](https://github.com/sepandhaghighi/typio/archive/dev.zip)
|
|
103
|
+
- `pip install .`
|
|
104
|
+
|
|
105
|
+
### PyPI
|
|
106
|
+
|
|
107
|
+
- Check [Python Packaging User Guide](https://packaging.python.org/installing/)
|
|
108
|
+
- `pip install typio==0.2`
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
## Usage
|
|
112
|
+
|
|
113
|
+
### Function
|
|
114
|
+
|
|
115
|
+
Use `type_print` function to print text with human-like typing effects. You can control the typing speed, randomness, mode, and output stream.
|
|
116
|
+
|
|
117
|
+
```python
|
|
118
|
+
from typio import type_print
|
|
119
|
+
from typio import TypeMode
|
|
120
|
+
|
|
121
|
+
type_print("Hello, world!")
|
|
122
|
+
|
|
123
|
+
type_print(
|
|
124
|
+
"Typing with style and personality.",
|
|
125
|
+
delay=0.06,
|
|
126
|
+
jitter=0.02,
|
|
127
|
+
end="\n",
|
|
128
|
+
mode=TypeMode.ADAPTIVE,
|
|
129
|
+
)
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
You can also redirect the output to any file-like object:
|
|
133
|
+
|
|
134
|
+
```python
|
|
135
|
+
with open("output.txt", "w") as file:
|
|
136
|
+
type_print("Saved with typing effects.", file=file)
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
### Decorator
|
|
140
|
+
|
|
141
|
+
Use the `@typestyle` decorator to apply typing effects to all `print` calls inside a function, without changing the function's implementation.
|
|
142
|
+
|
|
143
|
+
```python
|
|
144
|
+
from typio import typestyle
|
|
145
|
+
from typio import TypeMode
|
|
146
|
+
|
|
147
|
+
@typestyle(delay=0.05, mode=TypeMode.TYPEWRITER)
|
|
148
|
+
def intro():
|
|
149
|
+
print("Welcome to Typio.")
|
|
150
|
+
print("Every print is typed.")
|
|
151
|
+
|
|
152
|
+
intro()
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
## Issues & Bug Reports
|
|
156
|
+
|
|
157
|
+
Just fill an issue and describe it. We'll check it ASAP!
|
|
158
|
+
|
|
159
|
+
- Please complete the issue template
|
|
160
|
+
|
|
161
|
+
## Show Your Support
|
|
162
|
+
|
|
163
|
+
<h3>Star This Repo</h3>
|
|
164
|
+
|
|
165
|
+
Give a ⭐️ if this project helped you!
|
|
166
|
+
|
|
167
|
+
<h3>Donate to Our Project</h3>
|
|
168
|
+
|
|
169
|
+
<h4>Bitcoin</h4>
|
|
170
|
+
1KtNLEEeUbTEK9PdN6Ya3ZAKXaqoKUuxCy
|
|
171
|
+
<h4>Ethereum</h4>
|
|
172
|
+
0xcD4Db18B6664A9662123D4307B074aE968535388
|
|
173
|
+
<h4>Litecoin</h4>
|
|
174
|
+
Ldnz5gMcEeV8BAdsyf8FstWDC6uyYR6pgZ
|
|
175
|
+
<h4>Doge</h4>
|
|
176
|
+
DDUnKpFQbBqLpFVZ9DfuVysBdr249HxVDh
|
|
177
|
+
<h4>Tron</h4>
|
|
178
|
+
TCZxzPZLcJHr2qR3uPUB1tXB6L3FDSSAx7
|
|
179
|
+
<h4>Ripple</h4>
|
|
180
|
+
rN7ZuRG7HDGHR5nof8nu5LrsbmSB61V1qq
|
|
181
|
+
<h4>Binance Coin</h4>
|
|
182
|
+
bnb1zglwcf0ac3d0s2f6ck5kgwvcru4tlctt4p5qef
|
|
183
|
+
<h4>Tether</h4>
|
|
184
|
+
0xcD4Db18B6664A9662123D4307B074aE968535388
|
|
185
|
+
<h4>Dash</h4>
|
|
186
|
+
Xd3Yn2qZJ7VE8nbKw2fS98aLxR5M6WUU3s
|
|
187
|
+
<h4>Stellar</h4>
|
|
188
|
+
GALPOLPISRHIYHLQER2TLJRGUSZH52RYDK6C3HIU4PSMNAV65Q36EGNL
|
|
189
|
+
<h4>Zilliqa</h4>
|
|
190
|
+
zil1knmz8zj88cf0exr2ry7nav9elehxfcgqu3c5e5
|
|
191
|
+
<h4>Coffeete</h4>
|
|
192
|
+
<a href="http://www.coffeete.ir/opensource">
|
|
193
|
+
<img src="http://www.coffeete.ir/images/buttons/lemonchiffon.png" style="width:260px;" />
|
|
194
|
+
</a>
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
# Changelog
|
|
198
|
+
All notable changes to this project will be documented in this file.
|
|
199
|
+
|
|
200
|
+
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
|
201
|
+
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
|
202
|
+
|
|
203
|
+
## [Unreleased]
|
|
204
|
+
## [0.2] - 2026-02-04
|
|
205
|
+
### Changed
|
|
206
|
+
- `README.md` updated
|
|
207
|
+
- `end` parameter added to `type_print` function
|
|
208
|
+
- Test system modified
|
|
209
|
+
## [0.1] - 2026-01-31
|
|
210
|
+
### Added
|
|
211
|
+
- `type_print` function
|
|
212
|
+
- `typestyle` decorator
|
|
213
|
+
- `CHAR` mode
|
|
214
|
+
- `WORD` mode
|
|
215
|
+
- `LINE` mode
|
|
216
|
+
- `SENTENCE` mode
|
|
217
|
+
- `TYPEWRITER` mode
|
|
218
|
+
- `ADAPTIVE` mode
|
|
219
|
+
|
|
220
|
+
[Unreleased]: https://github.com/sepandhaghighi/typio/compare/v0.2...dev
|
|
221
|
+
[0.2]: https://github.com/sepandhaghighi/typio/compare/v0.1...v0.2
|
|
222
|
+
[0.1]: https://github.com/sepandhaghighi/typio/compare/750c00e...v0.1
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
typio/__init__.py,sha256=46OPTYQECaKgTjmo4UfK7VmgsNjcE5K2zM3QC8LmOWA,258
|
|
2
|
+
typio/__main__.py,sha256=NXst2kL-xGtI3tNIxh-H3AOL3vyn8SPiR96fER5oxfE,79
|
|
3
|
+
typio/errors.py,sha256=IC6YD8cW6bVc1f_4DlaIm_TlSgiTw292IeY8_ZO1Fwo,127
|
|
4
|
+
typio/functions.py,sha256=IrdRPc3cGOQtkci_wiI9Z8ShaIk0arFmFcw8YOcSoR4,6950
|
|
5
|
+
typio/params.py,sha256=d5w4oVZZKfAF1nEzUsvsqHYOObquFKfP72eoCuLCArY,679
|
|
6
|
+
typio-0.2.dist-info/licenses/AUTHORS.md,sha256=IONT1m3fc49glmYk5CbN70OMYCArB_2E5gXVb-PETKg,181
|
|
7
|
+
typio-0.2.dist-info/licenses/LICENSE,sha256=-eYKcwcJYZNHlmW-GcaTyv0U2goVRxkTf9rH095_EI0,1072
|
|
8
|
+
typio-0.2.dist-info/METADATA,sha256=4sgCWHL5lERQVe4qXSqH_aEHB6vH3tfNxkWE2YQZXGc,7423
|
|
9
|
+
typio-0.2.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
10
|
+
typio-0.2.dist-info/top_level.txt,sha256=Dp5VGIrBg-Gmk8fSWVXKSpwl-Dltacd0Q4dEoIzcReY,6
|
|
11
|
+
typio-0.2.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Sepand Haghighi
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
typio
|
__init__.py
DELETED
typio-0.0.0.dist-info/METADATA
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: typio
|
|
3
|
-
Version: 0.0.0
|
|
4
|
-
Summary: This name has been reserved using Reserver
|
|
5
|
-
Home-page: https://url.com
|
|
6
|
-
Download-URL: https://download_url.com
|
|
7
|
-
Author: Development Team
|
|
8
|
-
Author-email: test@test.com
|
|
9
|
-
License: MIT
|
|
10
|
-
Project-URL: Source, https://github.com/source
|
|
11
|
-
Keywords: python3 python reserve reserver reserved
|
|
12
|
-
Classifier: Development Status :: 1 - Planning
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.6
|
|
14
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
16
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
17
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
18
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
19
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
20
|
-
Requires-Python: >=3.6
|
|
21
|
-
Description-Content-Type: text/markdown
|
|
22
|
-
Dynamic: author
|
|
23
|
-
Dynamic: author-email
|
|
24
|
-
Dynamic: classifier
|
|
25
|
-
Dynamic: description
|
|
26
|
-
Dynamic: description-content-type
|
|
27
|
-
Dynamic: download-url
|
|
28
|
-
Dynamic: home-page
|
|
29
|
-
Dynamic: keywords
|
|
30
|
-
Dynamic: license
|
|
31
|
-
Dynamic: project-url
|
|
32
|
-
Dynamic: requires-python
|
|
33
|
-
Dynamic: summary
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
## Overview
|
|
37
|
-
typio is a Python library for doing awesome things.
|
|
38
|
-
This name has been reserved using [Reserver](https://github.com/openscilab/reserver).
|
typio-0.0.0.dist-info/RECORD
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
__init__.py,sha256=dp1WVGy9szS2t1wXtJJunJ_xkXppAzLm8j592Fkd9ck,44
|
|
2
|
-
typio-0.0.0.dist-info/METADATA,sha256=Z-yhuU0OHTK-BYAQQrBGu-6cK4tYFoC0u0Pb7M126Tg,1198
|
|
3
|
-
typio-0.0.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
4
|
-
typio-0.0.0.dist-info/top_level.txt,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
5
|
-
typio-0.0.0.dist-info/RECORD,,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|