Skip to main content

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


Download files

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

Source Distribution

unicode_raw_input-0.1.0a0.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

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

unicode_raw_input-0.1.0a0-py2.py3-none-any.whl (3.0 kB view details)

Uploaded Python 2Python 3

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

Hashes for unicode_raw_input-0.1.0a0.tar.gz
Algorithm Hash digest
SHA256 560666b546a6b9e3632ecc16af2324192d30e6256258a0b765d6a43fff4a4f46
MD5 4d28b8994cdda6a8246e3cd0d660cb81
BLAKE2b-256 bc0c0c8020cd7ecb1f3f4e3e75ad316611be0132a34970dc6244ce80212eb982

See more details on using hashes here.

File details

Details for the file unicode_raw_input-0.1.0a0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for unicode_raw_input-0.1.0a0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 da999b4b771adb25c56b96baffb7fc0d6e5461e2c17f028509a32b3bcd8dd085
MD5 54971cc699937c9eb746a5b3ff8dd323
BLAKE2b-256 b3844360aec3595b775e3ca8c96d3e33b77c914a98cd26b76bce04ae899c5173

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