Releases: jawah/charset_normalizer
Version 2.0.5
Changes:
Internal: π¨ The project now comply with: flake8, mypy, isort and black to ensure a better overall quality #81
Internal: π¨ The MANIFEST.in was not exhaustive #78
Improvement: β¨ The BC-support with v1.x was improved, the old staticmethods are restored #82
Remove: π₯ The project no longer raise warning on tiny content given for detection, will be simply logged as warning instead #92
Improvement: β¨ The Unicode detection is slightly improved, see #93
Bugfix: π In some rare case, the chunks extractor could cut in the middle of a multi-byte character and could mislead the mess detection #95
Bugfix: π Some rare 'space' characters could trip up the UnprintablePlugin
/Mess detection #96
Improvement: π¨ Add syntax sugar __bool__ for results CharsetMatches
list-container see #91
This release push further the detection coverage to 97 % !
Version 2.0.4
Changes:
- Improvement: βοΈ Adjust the MD to lower the sensitivity, thus improving the global detection reliability (#69 #76)
- Improvement: βοΈ Allow fallback on specified encoding if any (#71)
- Bugfix: π The CLI no longer raise an unexpected exception when no encoding has been found (#70)
- Bugfix: π Fix accessing the 'alphabets' property when the payload contains surrogate characters (#68)
- Bugfix: π βοΈ The logger could mislead (explain=True) on detected languages and the impact of one MBCS match (in #72)
- Bugfix: π Submatch factoring could be wrong in rare edge cases (in #72)
- Bugfix: π Multiple files given to the CLI were ignored when publishing results to STDOUT. (After the first path) (in #72)
- Internal: π¨ Fix line endings from CRLF to LF for certain files (#67)
Version 2.0.3
Changes:
- Improvement: β¨ Part of the detection mechanism has been improved to be less sensitive, resulting in more accurate detection results. Especially ASCII. #63 Fix #62
- Improvement: β¨According to the community wishes, the detection will fall back on ASCII or UTF-8 in a last-resort case. #64 Complete #62
Be assured that this project is disposed to listen to any of your concerns you may have. I know the vast majority did not expect requests
to switch Chardet to Charset-Normalizer. I am inclined to make this change worth it, only together that we can achieve great things. Do not hesitate to leave feedback or bug report, will answer them all!
Version 2.0.2
Version 2.0.1
Minor bug fixes release.
Changes:
- Bugfix: π Make it work where there isn't a filesystem available, dropping assets frequencies.json #54 #55 original report by @sethmlarson
- Improvement: β¨ You may now use aliases in
cp_isolation
andcp_exclusion
arguments #47 - Bugfix: π Using
explain=False
permanently disable the verbose output in the current runtime #47 - Bugfix: π One log entry (language target preemptive) was not show in logs when using
explain=True
#47 - Bugfix: π Fix undesired exception (ValueError) on getitem of instance CharsetMatches #52
- Improvement: π§ Public function
normalize
default args values were not aligned withfrom_bytes
#53
Version 2.0.0
This package is reaching its two years of existence, now is a good time for a nice refresh.
Changes: See PR #45
- Performance: β‘ 4x to 5 times faster than the previous 1.4.0 release.
- Performance: β‘ At least 2x faster than Chardet.
- Performance: β‘ Accent has been made on UTF-8 detection, should perform rather instantaneous.
- Improvement: π The backward compatibility with Chardet has been greatly improved. The legacy
detect
function returns an identical charset name whenever possible. - Improvement: βοΈ The detection mechanism has been slightly improved, now Turkish content is detected correctly (most of the time)
- Code: π¨ The program has been rewritten to ease the readability and maintainability. (+Using static typing)
- Tests: βοΈ New workflows are now in place to verify the following aspects:
Performance
,Backward-Compatibility with Chardet
, andDetection Coverage
in addition to currents tests. (+CodeQL) - Dependency: β This package no longer require anything when used with Python 3.5 (Dropped
cached_property
) - Docs: βοΈ Performance claims have been updated, the guide to contributing, and the issue template.
- Improvement: βοΈ Add
--version
argument to CLI - Bugfix: π The CLI output used the relative path of the file(s). Should be absolute.
- Deprecation: π΄ Methods
coherence_non_latin
,w_counter
,chaos_secondary_pass
of the classCharsetMatch
are now deprecated and scheduled for removal in v3.0 - Improvement: βοΈ If no language was detected in content, trying to infer it using the encoding name/alphabets used.
- Removal: π₯ Removed support for these languages: Catalan, Esperanto, Kazakh, Baque, VolapΓΌk, Azeri, Galician, Nynorsk, Macedonian, and Serbocroatian.
- Improvement: βοΈ
utf_7
detection has been reinstated. - Removal: π₯ The exception hook on UnicodeDecodeError has been removed.
After much consideration, this release won't drop Python 3.5 in v2.
Version 1.4.1
Changes :
- Improvement: π¨ Logger configuration/usage no longer conflict with others #44
Version 1.4.0
Changes :
Thanks to @potiuk for his tests/ideas that permitted us to improve the quality of this project.
- Dependency: β Using standard
logging
instead of using the packageloguru
. - Dependency: β Dropping
nose
test framework in favor of the maintainedpytest
. - Dependency: β Choose to not use
dragonmapper
package to help with gibberish Chinese/CJK text. - Dependency: π§ β Require
cached_property
only for Python 3.5 due to constraint. Dropping for every other interpreter version. - Bugfix: π BOM marker in a
CharsetNormalizerMatch
instance could beFalse
in rare cases even if obviously present. Due to the sub-match factoring process. - Improvement: π Return ASCII if given sequences fit. Given reasonable confidence.
- Performance: β‘ Huge improvement over the larges payload.
- Change: π₯ Stop support for UTF-7 that does not contain a SIG. (Contributions are welcome to improve that point)
- Feature: π CLI now produces JSON consumable output.
- Dependency: Dropping PrettyTable, replaced with pure JSON output.
- Bugfix: π Not searching properly for the BOM when trying utf32/16 parent codec.
- Other: β‘ Improving the package final size by compressing
frequencies.json
.
This project no longer requires anything except for python 3.5. It is still supported even if passed EOL.
Version 2.x will require Python 3.6+
Version 1.3.9
Changes :
- Bugfix: π In some very rare cases, you may end up getting encode/decode errors due to a bad bytes payload #40
Version 1.3.8
Changes :
- Bugfix: π Empty given payload for detection may cause an exception if trying to access the
alphabets
property. #39