The uprefix module provides an import hook for Python 3 which removes ‘u’ prefixes on Unicode literal strings in Python source code.
It is intended to assist users when porting Python 2.x code to 3.x.
There’s no separate documentation - all you need is given below.
Requirements & Installation
The uprefix module requires Python 3.1 or greater, and can be installed with the standard Python installation procedure:
python setup.py install
There is a set of unit tests which you can invoke with
python setup.py test
before running the installation.
Usage
Once installed on the path, the import hook is invoked as follows:
>>> import uprefix >>> uprefix.register_hook()
You can unregister the hook by
>>> uprefix.unregister_hook()
The latest version of uprefix can be found at
Metadata
Release files for uprefix 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| uprefix-0.1.tar.gz | 12.8 kB | Without provenance | Details for uprefix-0.1.tar.gz |
Release files / uprefix-0.1.tar.gz
| Download URL | uprefix-0.1.tar.gz |
|---|---|
| Size | 12.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6020d025e92a8513fc4c117ebdfe47294aed530b887c4b43115d9ae3f2ac1cf2
|
|
BLAKE2b-256 checksum How to use checksums |
d0e414c293c7f46921df4d69a4310731ef1ca970db7a2a676a9d929c1caa0871
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for uprefix 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.