Metadata-Version: 2.1
Name: jthon
Version: 1.0.6
Summary: A JSON helper for Python
Home-page: https://github.com/CasuallyCalm/jthon
License: MIT
Author: CasuallyCalm
Author-email: 29642143+CasuallyCalm@users.noreply.github.com
Requires-Python: >=3.6,<4.0
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Utilities
Project-URL: Repository, https://github.com/CasuallyCalm/jthon
Description-Content-Type: text/x-rst


=======
 Jthon
=======
This is a utility to make working with JSON files easier.

Installation 
=============

pip install jthon

Usage
------

.. code-block:: python

    import jthon
    a_new_dict = {
        'fruits': {
            'pineapple':0,
            'apples': 2,
            'orange': 4,
            'pears': 1
        }
    }
    example = jthon.load('fruits', a_new_dict)
    find = example.find(key='apple', exact=False)
    for found in find:
        print("I've found '{}', with a value of '{}'.".format(found.key, found.value))
        print("{}".format(found.siblings))

    print("There are {} oranges in the dict!".format(example.get('fruits').get('orange')))
    example['fruits']['peach'] = 1
    example.save()
    print(example)

More examples can be found in the examples folder

Requirements
-------------

.. code::
    
    python3.6 >




Authors
=======
* **CasuallyCalm** - `GitHub <https://github.com/CasuallyCalm>`__
* **ProbsJustin** - `GitHub <https://github.com/SobieskiCodes>`__

.. _ProbsJustin:


License
========

This project is licensed under MIT - see the [LICENSE](LICENSE.txt) file for details
