{"id":22409476,"url":"https://github.com/iodevs/pydecoder","last_synced_at":"2025-07-31T20:31:15.651Z","repository":{"id":21263345,"uuid":"91945188","full_name":"iodevs/pydecoder","owner":"iodevs","description":"A XML, JSON,... decode library for python","archived":false,"fork":false,"pushed_at":"2024-10-30T03:21:26.000Z","size":91,"stargazers_count":3,"open_issues_count":21,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-30T06:20:34.928Z","etag":null,"topics":["hacktoberfest"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iodevs.png","metadata":{"files":{"readme":"README.rst","changelog":"HISTORY.rst","contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.rst","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-21T09:10:26.000Z","updated_at":"2024-01-28T23:59:35.000Z","dependencies_parsed_at":"2023-02-15T09:45:41.809Z","dependency_job_id":"7e9cf58f-f651-48e8-b830-d95bdb896ee3","html_url":"https://github.com/iodevs/pydecoder","commit_stats":{"total_commits":61,"total_committers":3,"mean_commits":"20.333333333333332","dds":0.4098360655737705,"last_synced_commit":"7b264ea7b17f5af4a06c190ef0973fb535d28fc3"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iodevs%2Fpydecoder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iodevs%2Fpydecoder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iodevs%2Fpydecoder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iodevs%2Fpydecoder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iodevs","download_url":"https://codeload.github.com/iodevs/pydecoder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228295605,"owners_count":17897596,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hacktoberfest"],"created_at":"2024-12-05T12:07:49.276Z","updated_at":"2024-12-05T12:07:49.838Z","avatar_url":"https://github.com/iodevs.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"=========\nPyDecoder\n=========\n\n\n.. image:: https://img.shields.io/pypi/v/pydecoder.svg\n        :target: https://pypi.python.org/pypi/pydecoder\n\n.. image:: https://img.shields.io/travis/iodevs/pydecoder.svg\n        :target: https://travis-ci.org/iodevs/pydecoder\n\n.. image:: https://readthedocs.org/projects/pydecoder/badge/?version=latest\n        :target: https://pydecoder.readthedocs.io/en/latest/?badge=latest\n        :alt: Documentation Status\n\n.. image:: https://pyup.io/repos/github/iodevs/pydecoder/shield.svg\n        :target: https://pyup.io/repos/github/iodevs/pydecoder/\n        :alt: Updates\n\n.. image:: https://coveralls.io/repos/github/iodevs/pydecoder/badge.svg?branch=master\n        :target: https://coveralls.io/github/iodevs/pydecoder?branch=master\n\n\nA XML, JSON,... decode library\n\n\n* Free software: BSD license\n* Documentation: https://pydecoder.readthedocs.io.\n\n\nFeatures\n--------\n\n* Decode and validate values from XML and JSON.\n\nInstall\n-------\n\nTo install PyDecoder, run this command in your terminal:\n\n.. code-block:: console\n\n    $ pip install pydecoder\n\n\nExample\n-------\n\n.. code:: python\n\n    \u003e\u003e\u003e from pydecoder.fields import required, optional\n    \u003e\u003e\u003e from pydecoder.json import to_int, to_string, decode\n\n    # Define data\n    \u003e\u003e\u003e data = {'foo': 'Text', 'bar': 1}\n\n    # Describe data\n    \u003e\u003e\u003e decoders = [\n    ...     required('foo', to_string),\n    ...     required('bar', to_int),\n    ...     optional('baz', to_int, -5),\n    ... ]\n\n    # Decode/verify data\n    \u003e\u003e\u003e decode(lambda x: x, decoders, data)\n    Result(status='Ok', value=['Text', 1, -5])\n\n\nCredits\n---------\n\nThis package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.\n\n.. _Cookiecutter: https://github.com/audreyr/cookiecutter\n.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiodevs%2Fpydecoder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiodevs%2Fpydecoder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiodevs%2Fpydecoder/lists"}