Skip to main content

A small but useful package to load, validate and use typed data structures, including configuration files.

Project description

Latest Version License Python Versions CI Coverage

datastruct

A small but useful package to load, validate and use typed data structures, including configuration files.

You get:

  • An easy way to define a typed hierarchical data structure.

  • Hassle free definition nested structures.

  • Loading from a variety of formats (json, yaml and everything supported by Serialize),

  • Error checking including: missing values, unexpected value, wrong type, wrong value.

  • Easy to integrate in another app error reporting.

Installation

pip install datastruct

Usage

When an invalid value is found, an exception will be raised.

If you want to accumulate all errors for inspection:

You can then use the DataStruct object in your code:

See AUTHORS for a list of the maintainers.

To review an ordered list of notable changes for each version of a project, see CHANGES

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

datastruct-0.1.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

datastruct-0.1-py2.py3-none-any.whl (10.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file datastruct-0.1.tar.gz.

File metadata

  • Download URL: datastruct-0.1.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0.post20200106 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.6.7

File hashes

Hashes for datastruct-0.1.tar.gz
Algorithm Hash digest
SHA256 c713d3440f0cd3f33aafa48d4a5be4af11c126a3ddf7bfc7053e53b7dcc5ae59
MD5 92967a606474d171b132585e845632a2
BLAKE2b-256 d3be115db1ec9906b6f0c792f6b094bdfabea74d1acbcd4795e7f46be7c347b3

See more details on using hashes here.

File details

Details for the file datastruct-0.1-py2.py3-none-any.whl.

File metadata

  • Download URL: datastruct-0.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0.post20200106 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.6.7

File hashes

Hashes for datastruct-0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e1dfaf1703957c2658c81cd05f7098c067894ee15863480cec5c5fd4e3c04aff
MD5 bc770b7a31f3c295d366d78c3e518108
BLAKE2b-256 c319f7b3670bb8a898659638315705b531b8a10294933fda62e779a24ab33571

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page