Skip to main content

PyDecoder

https://img.shields.io/pypi/v/pydecoder.svg https://img.shields.io/travis/iodevs/pydecoder.svg Documentation Status Updates https://coveralls.io/repos/github/iodevs/pydecoder/badge.svg?branch=master

A XML, JSON,… decode library

Features

  • Decode and validate values from XML and JSON.

Install

To install PyDecoder, run this command in your terminal:

$ pip install pydecoder

Example

>>> from pydecoder.fields import required, optional
>>> from pydecoder.json import to_int, to_string, decode

# Define data
>>> data = {'foo': 'Text', 'bar': 1}

# Describe data
>>> decoders = [
...     required('foo', to_string),
...     required('bar', to_int),
...     optional('baz', to_int, -5),
... ]

# Decode/verify data
>>> decode(lambda x: x, decoders, data)
Result(status='Ok', value=['Text', 1, -5])

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.1.0 (2017-05-21)

  • First release on PyPI.

Metadata

Release files for pydecoder 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pydecoder 1.0.3
File Size Uploaded Provenance
pydecoder-1.0.3.tar.gz 17.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pydecoder 1.0.3
File Interpreter ABI Platform
pydecoder-1.0.3-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 25.9 kB

Release files / pydecoder-1.0.3.tar.gz

Download URL pydecoder-1.0.3.tar.gz
Size 17.8 kB
Tags Source
SHA-256 checksum
How to use checksums
63c564d8896fe97a7064cba43e27d9ac7c87dd5aeb1df374dac3c308ce07ec87
BLAKE2b-256 checksum
How to use checksums
e4a7b3fd2aa4341b00716c9eb5902505a1d7bcaf232cf9cf4f20834b332b0a1d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pydecoder-1.0.3-py2.py3-none-any.whl

Download URL pydecoder-1.0.3-py2.py3-none-any.whl
Size 8.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
484a5e88d072ebe6eeb151c83d1ad2d0b00af47c8a5346507ec1b8d85716a4f3
BLAKE2b-256 checksum
How to use checksums
fda0ddbde6b38d5291b4611476b7726eeef59670d8d45a8ad0f7f755b7f201ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pydecoder 1.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page