Skip to main content

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.

Release files for gettextcodecs 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gettextcodecs 0.0.3
File Size Uploaded
gettextcodecs-0.0.3.tar.gz 2.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gettextcodecs 0.0.3
File Interpreter ABI Platform
gettextcodecs-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 17.7 kB

Release files / gettextcodecs-0.0.3.tar.gz

Download URL gettextcodecs-0.0.3.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
aee141b742da39f3b8dbf36a21bc67b3f2603789b3a5d66bf650c22335979df5
BLAKE2b-256 checksum
How to use checksums
9161dbeced8059b34e8534a28714842fabc60ddf277a6eab79ec02802202b590
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / gettextcodecs-0.0.3-py3-none-any.whl

Download URL gettextcodecs-0.0.3-py3-none-any.whl
Size 15.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bd1416ad7945ccb134efea3464369a2b12c8ad82a0fc68121614287e26e00cf4
BLAKE2b-256 checksum
How to use checksums
52a1ac621983f5884eaf8f8954bb251d77d2540cac936a7dc878fb46e82e7b09
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page