[reportlab-users] LGPL dependency - chardet

Robin Becker robin at reportlab.com
Wed Jun 18 08:25:38 EDT 2025


Hi Josiah,

I've just released reportlab 4.4.2 which now requires charset-normalizer
instead of chardet.

On Mon, 16 Jun 2025 at 11:45, Josiah Kane <josiah.kane at refeyn.com> wrote:

> Hello,
>
> The current version of reportlab has a mandatory dependency on a library
> called "chardet" for guessing character encodings.
> Chardet is released under the LGPL. This is a more restrictive license
> than the BSD license used by reportlab. It effectively prohibits using
> reportlab to those unable to comply with the lgpl.
>
> There is another popular library for addressing the character encodings
> called charset_normalizer (https://pypi.org/project/charset-normalizer/),
> which is released under a more permissive MIT license. It offers a
> compatibility interface with chardet, such that the only code changes
> required should be switching the module name. According to the author's
> tests, charset_normalizer also runs faster and supports more encodings. As
> a proxy for general popularity, according to
> https://piptrends.com/compare/charset-normalizer-vs-chardet,
> charset_normalizer is  downloaded approximately ten times more frequently
> than chardet.
>
> Would there be any openness to swapping out the dependency?
>
> Thanks
> Josiah Kane
> Josiah Kane
> Principal Algorithm Engineer
> josiah.kane at refeyn.com
> +447474509563
> +44 (0)1865 203956
> Refeyn Ltd, Unit 9, Trade City Oxford, Sandy Lane West,
> Oxford, OX4 6FF, UK
> www.refeyn.com
> <https://uk.content.exclaimer.net/?url=https%3A%2F%2Fwww.refeyn.com%2F&tenantid=AQkrWuu_EeunrSgYeLFIdQ&templateid=c6b433fd9589ec1194f6281878b13d33&excomponentid=RuzmAq81hBj3yYDP6DaAzfQqcRY6qFcJwVx9fsHHiX8&excomponenttype=Link&signature=oFGOcoeh5GI83uiN2C6Qb_4rvU9KEfUnEHYaetzdySF4jo06iMZT9S4qqupYxYbckt2T_f2qNFy5pQzm-HmD7U-kWlp_e7R72BG7AMNckGMn6eRBkNBNnUSj1mw-eNrJQB_KrFkk-n_OE3yQkwqWz91BKh4zvX6rf7QiFU0KX8T2ZcQntSq-u0ANKRwbqXDOEF599g0tpvqVmKL8AdfM70_rKM0nWUPwTGTcvnVOSS6J2_hvAdNIViMUa24ZpjBKSkDsUrfSQRRBfdDyMywy36znKeS-aoz2IjGAHtgc1LEtmmXOdEGa_ojjSJpt7RoiAa8D-xuNR0YWK27Dsgwp2A&v=1&imprintMessageId=d2fbc6be-6a49-48bb-850f-adec3d4041e6>
>> @refeynit
> <https://uk.content.exclaimer.net/?url=https%3A%2F%2Ftwitter.com%2Frefeynit&tenantid=AQkrWuu_EeunrSgYeLFIdQ&templateid=c6b433fd9589ec1194f6281878b13d33&excomponentid=HHhalHtbPJi5FUZraKBPUYPF2yOB2jLd1oQf78dKBVw&excomponenttype=Link&signature=EI-JrPcz3zgzcOmr4lFRDLlnaq1FrGHUcDf0tca2_5YnRSAcpzgmJ0jSkwDxV_QBIKivqdzj7cnwmh4Lts51KVi0WDvCZMA6O6a4DUjMx1twZYDHHw4Loh6iaUq-DGdOTs33704VZlY99hxEpkMuGZfhFeFRo7s5ta5ihV3CYGAhvPbsZ2wXM4mHdyTLBIr_9sH7LoL4sXzGKkq4l-ChqDbHvCuj3UMcuaznzhpFnma75hFHdqK14S7gQcBVrvYdHcEwwCwVeonaCR-UtwkNttJ0082x06zeZnOde6MmTl_GkpI2qdF_XjQONzMKi0nmyFK_cN2nopW63fS4HQYVNw&v=1&imprintMessageId=d2fbc6be-6a49-48bb-850f-adec3d4041e6>
>
> <https://uk.content.exclaimer.net/?url=https%3A%2F%2Fwww.refeyn.com%2F&tenantid=AQkrWuu_EeunrSgYeLFIdQ&templateid=c6b433fd9589ec1194f6281878b13d33&excomponentid=sm_02o2TiMz4pQ81Sh99mCn5co5bwcqjALo7vu-7oeA&excomponenttype=Image&signature=oFGOcoeh5GI83uiN2C6Qb_4rvU9KEfUnEHYaetzdySF4jo06iMZT9S4qqupYxYbckt2T_f2qNFy5pQzm-HmD7U-kWlp_e7R72BG7AMNckGMn6eRBkNBNnUSj1mw-eNrJQB_KrFkk-n_OE3yQkwqWz91BKh4zvX6rf7QiFU0KX8T2ZcQntSq-u0ANKRwbqXDOEF599g0tpvqVmKL8AdfM70_rKM0nWUPwTGTcvnVOSS6J2_hvAdNIViMUa24ZpjBKSkDsUrfSQRRBfdDyMywy36znKeS-aoz2IjGAHtgc1LEtmmXOdEGa_ojjSJpt7RoiAa8D-xuNR0YWK27Dsgwp2A&v=1&imprintMessageId=d2fbc6be-6a49-48bb-850f-adec3d4041e6>
> Refeyn has a zero-tolerance policy towards sexual harassment, including by
> third parties. We insist that third parties treat our Employees
> professionally and with respect. Sexual harassment will not be tolerated
> and any complaint of sexual harassment by a third party will be fully
> investigated. In the interest of employee safety, we may pause all dealings
> with the third party until the investigation has been concluded.
>> ​Refeyn Ltd is a company registered in England & Wales with company number
> 11333643 and its registered address at c/o Penningtons Manches, Oxford
> Business Park, 9400 Garsington Road, Oxford, Oxfordshire, United Kingdom,
> OX4 2HN. This message is intended only for the use of the person(s) ("the
> Intended Recipient") to whom it is addressed. It may contain information
> that is privileged and confidential within the meaning of the applicable
> law. Accordingly any dissemination, distribution, copying or other use of
> this message or any of its content by any person other than the Intended
> Recipient may constitute a breach of civil or criminal law and is strictly
> prohibited. If you are not the Intended Recipient please contact the sender
> as soon as possible.
>
> Please consider the environment before printing this email.
>
> _______________________________________________
> reportlab-users mailing list
> reportlab-users at lists2.reportlab.com
> https://pairlist2.pair.net/mailman/listinfo/reportlab-users
>


-- 
Robin Becker
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist2.pair.net/pipermail/reportlab-users/attachments/20250618/d37d991d/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image041176.png
Type: image/png
Size: 134875 bytes
Desc: not available
URL: <https://pairlist2.pair.net/pipermail/reportlab-users/attachments/20250618/d37d991d/attachment-0001.png>


More information about the reportlab-users mailing list