Get python's text codecs
Project description
Get text codecs
Python library for encodings.
A single get_text_codecs method is used for returning a python dict
with all available codec names for encoding or decoding text.
Dictionary keys are the default codec names
and each entry contains a single list with all aliases, if any.
Installation & Usage
pip install
pip3 install 'gettextcodecs>=0.0.3' --upgrade
Usage
After installing the "library" you can import it and use it with:
from gettextcodecs.methods import get_text_codecs
codec_names = get_text_codecs()
Variable codec_names now contains all available codec names
as dictionary keys and a list of their aliases as their value.
The list will be empty if no aliases exist.
Parameters
- as_list: Optional. Get a single list with all possible codec names.
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 gettextcodecs-0.0.3.tar.gz.
File metadata
- Download URL: gettextcodecs-0.0.3.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.5.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aee141b742da39f3b8dbf36a21bc67b3f2603789b3a5d66bf650c22335979df5
|
|
| MD5 |
6c9325c3349f20afc6c8b6103714cb55
|
|
| BLAKE2b-256 |
9161dbeced8059b34e8534a28714842fabc60ddf277a6eab79ec02802202b590
|
File details
Details for the file gettextcodecs-0.0.3-py3-none-any.whl.
File metadata
- Download URL: gettextcodecs-0.0.3-py3-none-any.whl
- Upload date:
- Size: 15.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.5.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd1416ad7945ccb134efea3464369a2b12c8ad82a0fc68121614287e26e00cf4
|
|
| MD5 |
f2542866f3bb38ee75e82674f93dd7bd
|
|
| BLAKE2b-256 |
52a1ac621983f5884eaf8f8954bb251d77d2540cac936a7dc878fb46e82e7b09
|