Skip to main content

This is a drop-in C replacement for Python's gettext.

Project description

This is a drop-in C replacement for Python’s gettext.GNUTranslations. For our fairly large set of languages and strings, it makes parsing 10x faster.

Just import GNUTranslations from cgettext instead of gettext.

You can safely install this module on PyPy and other implementations where a C extension is undesirable, and it will simply re-export the built-in class.

The repository includes a small module, test_cgettext, that runs the built-in Python gettext tests with GNUTranslations monkeypatched.

Project details


Download files

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

Source Distribution

cgettext-0.1.post1.tar.gz (29.0 kB view details)

Uploaded Source

File details

Details for the file cgettext-0.1.post1.tar.gz.

File metadata

File hashes

Hashes for cgettext-0.1.post1.tar.gz
Algorithm Hash digest
SHA256 66725913b4b2a54569c6a7cc78754ba1c9f0b8ebb5ed77673026c0b82646368f
MD5 5b10b5447f63ddc59d08e4fa16ace2c5
BLAKE2b-256 e6021affd3ca7816a7f247f8ab6dbba694b9c98bd375aacb68cd57ea24615a63

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page