Bug#895158: ITP: typedload -- Python3 module to load and dump data into typed structures

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Bug#895158: ITP: typedload -- Python3 module to load and dump data into typed structures

Salvo Tomaselli-3
Package: wnpp
Owner: Salvo Tomaselli <[hidden email]>
Severity: wishlist

* Package name    : typedload
 Version         : 0.9
 Upstream Author : Salvo 'LtWorf' Tomaselli <[hidden email]>
* URL             : https://github.com/ltworf/typedload#typedload
* License         : GPL
 Programming Lang: Python
 Description     : Python3 module to load and dump data into typed structures
This module provides an API to load dictionaries and list (usually loaded
from json) into Python's NamedTuples, sets, enums, and various other typed
data structures.
.
It also allows one to dump them from typed data structures to json-like
dictionaries and lists.
.
This allows all the code that uses external data to have the advantages
of using types, and causes all errors with the data to be noticed when it
is loaded, rather than when it is used.


- why is this package useful/relevant?

I found some people on stack overflow and similar, trying to obtain this, and
implementing hacky solutions that only support very very simple types.

This library supports quite a few combinations of types.

- is it a dependency for another package?

Not for now, it's quite new

- do you use it?

yes

- if there are other packages providing similar functionality, how
does it compare?

Not that I know of.


- how do you plan to maintain it?

Github, for both packaging and upstream code. Anyone interested in
co-maintaining
can ask me to give write rights (after sending some good patches, normally)

--
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

http://ltworf.github.io/ltworf/