CodExt – Encode/decode anything with Python

March 1, 2022
(805 views)

CodExt is a (Python2-3 compatible) library that extends the native codecs library (namely for adding new custom encodings and character mappings), hence its name combining CODecs EXTension. It provides 120+ new codecs and also features a guessing mode for decoding multiple layers of encoding and CLI tools for convenience.

$ echo "CodExt, a Python library to encode/decode anything !" | codext encode manchester gzip base58 bcd lz77 base37
lzh2f4w9om6eytpu49lcbiyb5jccsigxm09r[...]

Setup

This library is available on PyPi and can be simply installed using Pip:

$ pip install codext

Why?

This package aims to be used as a library in other projects or to provide some useful tools for working from the terminal. It does not display fancy useless colors, it does just enough for IT pros to encode/decode anything. It leverages the neat API of the native codecs library, using a very flexible logic for defining and lookup up codecs.

Note that, while it is not designed to be full of nice-looking colorful tools, CodExt’s features overlap with some other projects:

Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

1 Comment
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
Matthew
2 years ago

Thank you for the time you took in providing the information on this tool.
I believe it’s disheartening seeing 0 comments on a project such as yours.
I don’t know the traffic it receives but It has helped ME. and AGAIN, I thank you for that.

© HAKIN9 MEDIA SP. Z O.O. SP. K. 2023
What certifications or qualifications do you hold?
Max. file size: 150 MB.

What level of experience should the ideal candidate have?
What certifications or qualifications are preferred?

Download Free eBook

Step 1 of 4

Name(Required)

We’re committed to your privacy. Hakin9 uses the information you provide to us to contact you about our relevant content, products, and services. You may unsubscribe from these communications at any time. For more information, check out our Privacy Policy.