Skip to main content

pyon

PYON Reader - Python Object Nation

Table of Contents

Installation

pip install pyonr

How to use

Creating PYON file

let's create our PYON file, i'm going to call it friends.pyon

{
    "me": {
        "name": "Nawaf",
        "age": 15
    }
}

Reading File

import pyonr

file = pyonr.read('friends.pyon') # Replace "friends.pyon" with your file name

fileData = file.read # {'me': {'name': 'Nawaf', 'age': 15}}
type(fileData) # <class 'dict'>

Writing File

import pyonr

file = pyonr.read('friends.pyon')
fileData = file.read

fileData['khayal'] = {
    "name": "Khayal",
    "age": 14
}
# This will update "fileData" only, we need to save it

file.write(fileData)

File will get updated too

{
    'me': {
        'name': 'Nawaf',
        'age': 15
        },

    'khayal': {
        'name': 'Khayal',
        'age': 14
    }
}

Metadata

Release files for pyonr 2.1.7

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

Source distribution (sdist)

Source distribution for pyonr 2.1.7
File Size Uploaded Provenance
pyonr-2.1.7.tar.gz 6.0 kB Without provenance Details

Release files / pyonr-2.1.7.tar.gz

Download URL pyonr-2.1.7.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b77d94625ddec9a2a93a73cc36b46ffd3f4159c95efd6c44baa43b54ba740ea4
BLAKE2b-256 checksum
How to use checksums
191bbf2f1fdd5a9731ff18ec7edf94932ee552773e618720c64aa91243e52deb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.10

Security for pyonr 2.1.7

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