py-typedload: Import py-typedload-2.1 as wip/py-typedload
Load and dump json-like data into typed data structures. This module provides an API to load dictionaries and lists (usually loaded from json) into Python's NamedTuples, dataclass, sets, enums, and various other typed data structures; respecting all the type-hints and performing type checks or casts when needed. It can also dump from typed data structures to json-like dictionaries and lists. It is very useful for projects that use Mypy and deal with untyped data like json, because it guarantees that the data will have the expected format.
This commit is contained in:
parent
eb49e5198e
commit
3fc33f2f50
1
Makefile
1
Makefile
|
@ -4104,6 +4104,7 @@ SUBDIR+= py-txWS
|
|||
SUBDIR+= py-txZMQ
|
||||
SUBDIR+= py-txdbus
|
||||
SUBDIR+= py-typedecorator
|
||||
SUBDIR+= py-typedload
|
||||
SUBDIR+= py-u2flib-server
|
||||
SUBDIR+= py-ua-parser
|
||||
SUBDIR+= py-ufl
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
Load and dump json-like data into typed data structures.
|
||||
|
||||
This module provides an API to load dictionaries and lists (usually loaded from
|
||||
json) into Python's NamedTuples, dataclass, sets, enums, and various other typed
|
||||
data structures; respecting all the type-hints and performing type checks or
|
||||
casts when needed.
|
||||
|
||||
It can also dump from typed data structures to json-like dictionaries and lists.
|
||||
It is very useful for projects that use Mypy and deal with untyped data like
|
||||
json, because it guarantees that the data will have the expected format.
|
|
@ -0,0 +1,19 @@
|
|||
# $NetBSD$
|
||||
|
||||
DISTNAME= typedload-2.1
|
||||
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
|
||||
CATEGORIES= devel python
|
||||
MASTER_SITES= ${MASTER_SITE_PYPI:=t/typedload/}
|
||||
|
||||
MAINTAINER= pkgsrc-users@NetBSD.org
|
||||
HOMEPAGE= https://github.com/ltworf/typedload
|
||||
COMMENT= Load and dump data from json-like format into typed data structures
|
||||
LICENSE= gnu-gpl-v3
|
||||
|
||||
USE_LANGUAGES= # none
|
||||
|
||||
# Only for Python 3
|
||||
PYTHON_VERSIONS_INCOMPATIBLE= 27
|
||||
|
||||
.include "../../lang/python/distutils.mk"
|
||||
.include "../../mk/bsd.pkg.mk"
|
|
@ -0,0 +1,18 @@
|
|||
@comment $NetBSD$
|
||||
${PYSITELIB}/${EGG_FILE}
|
||||
${PYSITELIB}/typedload/__init__.py
|
||||
${PYSITELIB}/typedload/__init__.pyc
|
||||
${PYSITELIB}/typedload/__init__.pyo
|
||||
${PYSITELIB}/typedload/datadumper.py
|
||||
${PYSITELIB}/typedload/datadumper.pyc
|
||||
${PYSITELIB}/typedload/datadumper.pyo
|
||||
${PYSITELIB}/typedload/dataloader.py
|
||||
${PYSITELIB}/typedload/dataloader.pyc
|
||||
${PYSITELIB}/typedload/dataloader.pyo
|
||||
${PYSITELIB}/typedload/exceptions.py
|
||||
${PYSITELIB}/typedload/exceptions.pyc
|
||||
${PYSITELIB}/typedload/exceptions.pyo
|
||||
${PYSITELIB}/typedload/py.typed
|
||||
${PYSITELIB}/typedload/typechecks.py
|
||||
${PYSITELIB}/typedload/typechecks.pyc
|
||||
${PYSITELIB}/typedload/typechecks.pyo
|
|
@ -0,0 +1,6 @@
|
|||
$NetBSD$
|
||||
|
||||
SHA1 (typedload-2.1.tar.gz) = 708180ce0f727a76ca5c8198fefb968e3541df14
|
||||
RMD160 (typedload-2.1.tar.gz) = ae8c7cbb50b7c7b8f80b0512fb6f1477a4dfcfd9
|
||||
SHA512 (typedload-2.1.tar.gz) = 5b3c70ab8c91418a4a1477b656bae7ec9424290bb59aae0ef6ef34232336d21c9b0f4cf25d174aeff164a6944c972652a5ffb6ab83fa49d6d81a660c5c457d31
|
||||
Size (typedload-2.1.tar.gz) = 12005 bytes
|
Loading…
Reference in New Issue