Improving Python's SimpleNamespace
Improving Python's SimpleNamespace
Posted May 1, 2020 15:01 UTC (Fri) by LtWorf (subscriber, #124958)In reply to: Improving Python's SimpleNamespace by tamasrepus
Parent article: Improving Python's SimpleNamespace
I'd trust mine more because it has tests running on all the python versions that are supported and on mypy.
jsons doesn't seem to use mypy, because at a casual glance I found some typing errors.
jsons supports more types, but typedload has a better code for unions and is more customisable.
Pretty similar but jsons is MIT licensed and typedload is GPL3 so I guess I lose on the license. Which is pretty deliberate because I don't want my free time work to be used for free by proprietary projects.
Ah, mine one already exists in Debian, so that's a slight advantage.