// The Unicode Nazi //
Once enabled the unicode nazi will complain whenever something is not purely unicode or bytestring. It’s annoying as hell and only useful when porting over libraries from Python 2 to Python 3. It has a huge runtime impact on performance and will also complain about most of the stuff in the Python standard library.
usage:
>>> import unicodenazi >>> 'foo' == u'foo' __main__:1: UnicodeWarning: Implicit conversion of str to unicode Truehow to disable it again:
>>> unicodenazi.disable()and here is how to enable:
>>> unicodenazi.enable()if you want to enable it only for a given block:
>>> unicodenazi.disable() >>> with unicodenazi.blockwise(enabled=True): ... assert 'foo' == u'foo' ... __main__:2: UnicodeWarning: Implicit conversion of str to unicodeThe reverse works too of course.
The module can be used from a command line:
$ python -municodenazi your_script.py [script_args..]
Metadata
Release files for unicode-nazi 1.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 |
|---|---|---|---|---|
| unicode-nazi-1.1.tar.gz | 2.2 kB | Without provenance | Details for unicode-nazi-1.1.tar.gz |
Release files / unicode-nazi-1.1.tar.gz
| Download URL | unicode-nazi-1.1.tar.gz |
|---|---|
| Size | 2.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5be37c62cfa750d0a58693d9c63b6e95f6932675e3939c4cdd60151631ac04fc
|
|
BLAKE2b-256 checksum How to use checksums |
664f70344391454973af0fcc70bcea02e9f78ead8e82b5ea82b0d01eb0ea753f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for unicode-nazi 1.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.