A proof of concept to replace unreliable python chardet

2019-09-13 Thread Ahmed TAHRI
There is a very old *issue* regarding "encoding detection" in a text file that has been partially resolved by a program like Chardet . I did not like the idea of single prober per encoding table that could lead to hard coding specifications. I wanted to challeng

[ANN] charset-normalizer 1.3.0 like Chardet, encoding and language detection

2019-10-04 Thread Ahmed TAHRI
Hi everyone, git : https://github.com/Ousret/charset_normalizer pypi : https://pypi.org/project/charset-normalizer/ docs : https://charset-normalizer.readthedocs.io/en/latest/ *For remainder :* Library that help you read text from unknown charset encoding. Project motivated by chardet, I'm tryin

[ANN] kiss-headers, a dedicated package for reading and exploiting headers from HTTP or IMAP. With auto-completion support.

2020-03-18 Thread Ahmed TAHRI
I'm thrilled to share with the community ´kiss-headers´. "Keep It Simple, Stupid, Headers". This idea came from the fact that I have seen so much chunk of code trying to deal with headers, often I saw this : charset = headers['Content-Type'].split(';')[-1].split('=')[-1].replace('"', '') *No more

kiss-headers 2.1.2 released 🔖

2020-05-14 Thread Ahmed TAHRI
Python package for object oriented headers, HTTP/1.1 style. Parse headers to objects. *Changes:* - *Bugfix:* *dir* method in Header instance could contain entries with illegal characters. - *Documentation:* Major update available at kiss-headers.tech - *Bugfix:* Allow set item value t