json|dict to python object

Overview

Pyonize

convert json|dict to python object

Setup

pip install pyonize

Examples

from pyonize import pyonize

deneme = pyonize({"id": 1, "name": "jhon", "job": {"id": 1, "title": "CTO"}, "list": [
                1, 2, 3], "dictlist": [{"name": "foo"}, {"name": "bar"}]})

print(deneme.name)
print(deneme.job)
print(deneme.job.title)

from pyonize import Pyon

class Foo(Pyon):
    def bar(self):
        ...

data = {"id": 1, "name": "jhon", "job": {"id": 1, "title": "CTO"},
    "list": [1, 2, 3], "dictlist": [{"name": "foo"}, {"name": "bar"}]}

foo = Foo(data)

print(foo.id)
print(foo.dictlist[1].name)


You might also like...
simplejson is a simple, fast, extensible JSON encoder/decoder for Python

simplejson simplejson is a simple, fast, complete, correct and extensible JSON http://json.org encoder and decoder for Python 3.3+ with legacy suppo

import json files directly in your python scripts
import json files directly in your python scripts

Install Install from git repository pip install git+https://github.com/zaghaghi/direct-json-import.git Use With the following json in a file named inf

jq for Python programmers Process JSON and HTML on the command-line with familiar syntax.

jq for Python programmers Process JSON and HTML on the command-line with familiar syntax.

A JSON utility library for Python featuring Django-style queries and mutations.

JSON Enhanced JSON Enhanced implements fast and pythonic queries and mutations for JSON objects. Installation You can install json-enhanced with pip:

Python script for converting .json to .md files using Mako templates.

Install Just install poetry and update script dependencies Usage Put your settings in settings.py and .json data (optionally, with attachments) in dat

Editor for json/standard python data
Editor for json/standard python data

Editor for json/standard python data

Python script to extract news from RSS feeds and save it as json.

Python script to extract news from RSS feeds and save it as json.

Define your JSON schema as Python dataclasses

Define your JSON schema as Python dataclasses

A Python tool that parses JSON documents using JsonPath

A Python tool that parses JSON documents using JsonPath

Comments
  • Pyon .whl File

    Pyon .whl File

    First

    Download wheel and setuptools libraries

    pip install wheel setuptools

    After

    Make sure you are in the same folder as setup.py

    python setup.py bdist_wheel --universal

    Finally

    Stay in the same directory and copy the name of the .whl file in the dist folder

    pip install ./dist/copied file name

    Actually the filename is by default: "pyon-0.1.0-py2.py3-none-any.whl"

    opened by fatih51 0
Releases(v0.1.5)
  • v0.1.4(Sep 1, 2022)

    What's Changed

    • Potential vulrenabilities and Increase performance. by @barisx in https://github.com/BilalAlpaslan/Pyonize/pull/6
    • Pyonlist bugfix by @BilalAlpaslan in https://github.com/BilalAlpaslan/Pyonize/pull/8

    New Contributors

    • @barisx made their first contribution in https://github.com/BilalAlpaslan/Pyonize/pull/6

    Full Changelog: https://github.com/BilalAlpaslan/Pyonize/compare/v0.1.3...v0.1.4

    Source code(tar.gz)
    Source code(zip)
  • v0.1.3(Oct 31, 2021)

    What's Changed

    • Development by @BilalAlpaslan in https://github.com/BilalAlpaslan/Pyonize/pull/4
    • v0.1.3 by @BilalAlpaslan in https://github.com/BilalAlpaslan/Pyonize/pull/5

    Full Changelog: https://github.com/BilalAlpaslan/Pyonize/compare/v0.1.1...v0.1.3

    Source code(tar.gz)
    Source code(zip)
  • v0.1.2(Oct 30, 2021)

  • v0.1.1(Oct 30, 2021)

    What's Changed

    • v0.1.1 by @BilalAlpaslan in https://github.com/BilalAlpaslan/Pyon/pull/3

    New Contributors

    • @fatih51 made their first contribution in https://github.com/BilalAlpaslan/Pyon/pull/2

    Full Changelog: https://github.com/BilalAlpaslan/Pyon/compare/v0.1.0...v0.1.1

    Source code(tar.gz)
    Source code(zip)
  • v0.1.0(Oct 30, 2021)

Owner
bilal alpaslan
Project Manager and partner at Anneler Satıyor
bilal alpaslan
Roamtologseq - A script loads a json export of a Roam graph and cleans it up for import into Logseq

Roam to Logseq The script loads a json export of a Roam graph and cleans it up f

Sebastian Pech 4 Mar 07, 2022
A Cobalt Strike Scanner that retrieves detected Team Server beacons into a JSON object

melting-cobalt 👀 A tool to hunt/mine for Cobalt Strike beacons and "reduce" their beacon configuration for later indexing. Hunts can either be expans

Splunk GitHub 150 Nov 23, 2022
A python library to convert arbitrary strings representing business opening hours into a JSON format that's easier to use in code

A python library to convert arbitrary strings representing business opening hours into a JSON format that's easier to use in code

Adrian Edwards 9 Dec 02, 2022
import json files directly in your python scripts

Install Install from git repository pip install git+https://github.com/zaghaghi/direct-json-import.git Use With the following json in a file named inf

Hamed Zaghaghi 51 Dec 01, 2021
Python script for converting .json to .md files using Mako templates.

Install Just install poetry and update script dependencies Usage Put your settings in settings.py and .json data (optionally, with attachments) in dat

Alexey Borontov 6 Dec 07, 2021
JSON Schema validation library

jsonschema A JSON Schema validator implementation. It compiles schema into a validation tree to have validation as fast as possible. Supported drafts:

Dmitry Dygalo 309 Jan 01, 2023
Console to handle object storage using JSON serialization and deserealization.

Console to handle object storage using JSON serialization and deserealization. This is a team project to develop a Python3 console that emulates the AirBnb object management.

Ronald Alexander 3 Dec 03, 2022
json|dict to python object

Pyonize convert json|dict to python object Setup pip install pyonize Examples from pyonize import pyonize

bilal alpaslan 45 Nov 25, 2022
A JSON API for returning Godspeak sentences. Based on the works of Terry A Davis (Rest in Peace, King)

GodspeakAPI A simple API for generating random words ("godspeaks"), inspired by the works of Terrence Andrew Davis (Rest In Peace, King). Installation

Eccentrici 3 Jan 24, 2022
JSON for Modern C++ Release Scripts

JSON for Modern C++ Release Scripts Preparations Install required tools: make install_requirements. Add required keys to config.json (apparently not c

Niels Lohmann 4 Sep 19, 2022
Random JSON Key:Pair Json Generator

Random JSON Key:Value Pair Generator This simple script take an engish dictionary of words and and makes random key value pairs. The dictionary has ap

Chris Edwards 1 Oct 14, 2021
Convert your JSON data to a valid Python object to allow accessing keys with the member access operator(.)

JSONObjectMapper Allows you to transform JSON data into an object whose members can be queried using the member access operator. Unlike json.dumps in

Owen Trump 4 Jul 20, 2022
Make JSON serialization easier

Make JSON serialization easier

4 Jun 30, 2022
A fast streaming JSON parser for Python that generates SAX-like events using yajl

json-streamer jsonstreamer provides a SAX-like push parser via the JSONStreamer class and a 'object' parser via the ObjectStreamer class which emits t

Kashif Razzaqui 196 Dec 15, 2022
Convert your subscriptions csv file into a valid json for Newpipe!

Newpipe-CSV-Fixer Convert your Google subscriptions CSV file into a valid JSON for Newpipe! Thanks to nikcorg for sharing how to convert the CSV into

Juanjo 44 Dec 29, 2022
API that provides Wordle (ES) solutions in JSON format

Wordle (ES) solutions API that provides Wordle (ES) solutions in JSON format.

Álvaro García Jaén 2 Feb 10, 2022
Easy JSON wrapper modfied to wrok with suggestions

🈷️ Suggester Easy JSON wrapper modfied to wrok with suggestions. This was made for small discord bots, for big bots you should not use this. 📥 Usage

RGBCube 1 Jan 22, 2022
cysimdjson - Very fast Python JSON parsing library

Fast JSON parsing library for Python, 7-12 times faster than standard Python JSON parser.

TeskaLabs 235 Dec 29, 2022
MOSP is a platform for creating, editing and sharing validated JSON objects of any type.

MONARC Objects Sharing Platform Presentation MOSP is a platform for creating, editing and sharing validated JSON objects of any type. You can use any

CASES Luxembourg 72 Dec 14, 2022
Generate code from JSON schema files

json-schema-codegen Generate code from JSON schema files. Table of contents Introduction Currently supported languages Requirements Installation Usage

Daniele Esposti 30 Dec 23, 2022