Skip to main content

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


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.


  • as_list: Optional. Get a single list with all possible codec names.

Project details

Release history Release notifications

Download files

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

Files for gettextcodecs, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size gettextcodecs-0.0.3-py3-none-any.whl (15.2 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size gettextcodecs-0.0.3.tar.gz (2.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page