A cross-platform Unicode-aware replacement for Python's `raw_input()` (Python 2) and `input()` (Python 3) that handles Unicode text consistently across Python versions and operating systems.
Project description
unicode-raw-input
A cross-platform Unicode-aware replacement for Python's raw_input() (Python 2) and input() (Python 3) that handles Unicode text consistently across Python versions and operating systems.
Installation
pip install unicode-raw-input
Usage
# coding=utf-8
from unicode_raw_input import unicode_raw_input
# Get Unicode text input from user
name = unicode_raw_input(u"Please enter your name: ")
print(u"Hello, " + name)
The function returns typing.Text (Unicode strings) regardless of Python version, ensuring consistent behavior across Python 2 and 3.
Contributing
Contributions are welcome! Please submit pull requests or open issues on the GitHub repository.
License
This project is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file unicode_raw_input-0.1.0a0.tar.gz.
File metadata
- Download URL: unicode_raw_input-0.1.0a0.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
560666b546a6b9e3632ecc16af2324192d30e6256258a0b765d6a43fff4a4f46
|
|
| MD5 |
4d28b8994cdda6a8246e3cd0d660cb81
|
|
| BLAKE2b-256 |
bc0c0c8020cd7ecb1f3f4e3e75ad316611be0132a34970dc6244ce80212eb982
|
File details
Details for the file unicode_raw_input-0.1.0a0-py2.py3-none-any.whl.
File metadata
- Download URL: unicode_raw_input-0.1.0a0-py2.py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da999b4b771adb25c56b96baffb7fc0d6e5461e2c17f028509a32b3bcd8dd085
|
|
| MD5 |
54971cc699937c9eb746a5b3ff8dd323
|
|
| BLAKE2b-256 |
b3844360aec3595b775e3ca8c96d3e33b77c914a98cd26b76bce04ae899c5173
|