Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #16505 > unrolled thread
| Started by | Edward Betts <edward@4angle.com> |
|---|---|
| First post | 2024-12-01 16:10 +0100 |
| Last post | 2024-12-01 23:40 +0100 |
| Articles | 4 — 2 participants |
Back to article view | Back to linux.debian.maint.python
Bug#1088793: ITP: dataclasses-json -- Library for encoding and decoding dataclasses to and from JSON Edward Betts <edward@4angle.com> - 2024-12-01 16:10 +0100
Bug#1088793: ITP: dataclasses-json -- Library for encoding and decoding dataclasses to and from JSON Salvo Tomaselli <ltworf@debian.org> - 2024-12-01 19:30 +0100
Re: Bug#1088793: ITP: dataclasses-json -- Library for encoding and decoding dataclasses to and from JSON Edward Betts <edward@4angle.com> - 2024-12-01 20:40 +0100
Re: Bug#1088793: ITP: dataclasses-json -- Library for encoding and decoding dataclasses to and from JSON Salvo Tomaselli <ltworf@debian.org> - 2024-12-01 23:40 +0100
| From | Edward Betts <edward@4angle.com> |
|---|---|
| Date | 2024-12-01 16:10 +0100 |
| Subject | Bug#1088793: ITP: dataclasses-json -- Library for encoding and decoding dataclasses to and from JSON |
| Message-ID | <JOTK9-d0S1-1@gated-at.bofh.it> |
Package: wnpp Severity: wishlist Owner: Edward Betts <edward@4angle.com> X-Debbugs-Cc: debian-devel@lists.debian.org, debian-python@lists.debian.org * Package name : dataclasses-json Version : 0.6.7 Upstream Author : Charles Li <charles.dt.li@gmail.com> * URL : https://github.com/lidatong/dataclasses-json * License : MIT Programming Lang: Python Description : Library for encoding and decoding dataclasses to and from JSON This library provides an API to convert dataclasses into JSON and transform JSON back into dataclasses. It supports nested dataclasses and can handle complex data types like datetime, UUID, and Decimal. The library offers mechanisms for case conversion, allowing fields to be serialized in camelCase or other formats. Additionally, unknown fields in JSON can be managed, either by excluding them, saving them in a separate field, or raising an error. Fine-tuning of encoding and decoding processes is possible through custom configurations, making it suitable for diverse data scenarios. I plan to maintain this package as part of the Python team.
[toc] | [next] | [standalone]
| From | Salvo Tomaselli <ltworf@debian.org> |
|---|---|
| Date | 2024-12-01 19:30 +0100 |
| Message-ID | <JOWRI-d2I6-7@gated-at.bofh.it> |
| In reply to | #16505 |
[Multipart message — attachments visible in raw view] — view raw
Hi,
I'm the author of typedload.
Is this library a dependency of something?
I ask because it's kinda similar to what typedload and pydantic do, but the
last time I tried it (which was a while ago) it was actually not raising any
errors if the type didn't match.
So for my use case it was not very useful, but maybe it has improved since
then.
On typedload I even had benchmarks against this library but I removed them
because it was slow and I didn't want to run them.
I'm just curious, that's all.
Best
--
Salvo Tomaselli
"Io non mi sento obbligato a credere che lo stesso Dio che ci ha dotato di
senso, ragione ed intelletto intendesse che noi ne facessimo a meno."
-- Galileo Galilei
https://ltworf.codeberg.page/
[toc] | [prev] | [next] | [standalone]
| From | Edward Betts <edward@4angle.com> |
|---|---|
| Date | 2024-12-01 20:40 +0100 |
| Subject | Re: Bug#1088793: ITP: dataclasses-json -- Library for encoding and decoding dataclasses to and from JSON |
| Message-ID | <JOXup-d3ai-1@gated-at.bofh.it> |
| In reply to | #16507 |
Hi Salvo, I looked at typedload after you mentioned it in your talk in Toulouse. It looks like a useful library, I'm planning to use it. The dataclasses-json Python library is a dependency of pyecotrend-ista which is now sitting in NEW: https://ftp-master.debian.org/new/pyecotrend-ista_3.3.2-1.html I made a mistake, dataclasses-json is already packaged by pollo. https://tracker.debian.org/pkg/dataclasses-json I've closed this ITP. -- Edward
[toc] | [prev] | [next] | [standalone]
| From | Salvo Tomaselli <ltworf@debian.org> |
|---|---|
| Date | 2024-12-01 23:40 +0100 |
| Subject | Re: Bug#1088793: ITP: dataclasses-json -- Library for encoding and decoding dataclasses to and from JSON |
| Message-ID | <JP0LD-d510-1@gated-at.bofh.it> |
| In reply to | #16510 |
[Multipart message — attachments visible in raw view] — view raw
Hello,
ah while I'm proud of my own work, no need to use it if you don't need it :)
Thanks for considering it though.
Ok if it's needed as a dependency to something else then of course you can't
know why it was chosen.
Best
--
Salvo Tomaselli
"Io non mi sento obbligato a credere che lo stesso Dio che ci ha dotato di
senso, ragione ed intelletto intendesse che noi ne facessimo a meno."
-- Galileo Galilei
https://ltworf.codeberg.page/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.maint.python
csiph-web