=======
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
Raw data
{
"_id": null,
"home_page": "https://github.com/CasuallyCalm/jthon",
"name": "jthon",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.6,<4.0",
"maintainer_email": "",
"keywords": "",
"author": "CasuallyCalm",
"author_email": "29642143+CasuallyCalm@users.noreply.github.com",
"download_url": "https://files.pythonhosted.org/packages/ca/bf/dd607c699f4371b67e59ff97216089a92fa78f0a5329964accd48685e1a6/jthon-1.0.6.tar.gz",
"platform": null,
"description": "\n=======\n Jthon\n=======\nThis is a utility to make working with JSON files easier.\n\nInstallation \n=============\n\npip install jthon\n\nUsage\n------\n\n.. code-block:: python\n\n import jthon\n a_new_dict = {\n 'fruits': {\n 'pineapple':0,\n 'apples': 2,\n 'orange': 4,\n 'pears': 1\n }\n }\n example = jthon.load('fruits', a_new_dict)\n find = example.find(key='apple', exact=False)\n for found in find:\n print(\"I've found '{}', with a value of '{}'.\".format(found.key, found.value))\n print(\"{}\".format(found.siblings))\n\n print(\"There are {} oranges in the dict!\".format(example.get('fruits').get('orange')))\n example['fruits']['peach'] = 1\n example.save()\n print(example)\n\nMore examples can be found in the examples folder\n\nRequirements\n-------------\n\n.. code::\n \n python3.6 >\n\n\n\n\nAuthors\n=======\n* **CasuallyCalm** - `GitHub <https://github.com/CasuallyCalm>`__\n* **ProbsJustin** - `GitHub <https://github.com/SobieskiCodes>`__\n\n.. _ProbsJustin:\n\n\nLicense\n========\n\nThis project is licensed under MIT - see the [LICENSE](LICENSE.txt) file for details",
"bugtrack_url": null,
"license": "MIT",
"summary": "A JSON helper for Python",
"version": "1.0.6",
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "05aacfd8b182c9b21ce82bf0bcccf08d02e36df100b458ac7d3c97953493b957",
"md5": "cc4ce5a8d8fb264212f5f1db62f43d46",
"sha256": "13413cd39c68f52ac0a6ce9befd4ad3a33c0d7227a0fb12519e262db80103258"
},
"downloads": -1,
"filename": "jthon-1.0.6-py3-none-any.whl",
"has_sig": false,
"md5_digest": "cc4ce5a8d8fb264212f5f1db62f43d46",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6,<4.0",
"size": 5238,
"upload_time": "2023-04-25T17:50:40",
"upload_time_iso_8601": "2023-04-25T17:50:40.848040Z",
"url": "https://files.pythonhosted.org/packages/05/aa/cfd8b182c9b21ce82bf0bcccf08d02e36df100b458ac7d3c97953493b957/jthon-1.0.6-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "cabfdd607c699f4371b67e59ff97216089a92fa78f0a5329964accd48685e1a6",
"md5": "86bbc4ca3becebdd484de6ffe0b45f15",
"sha256": "c9f86861f34cbe1b96d70b3ae5554d2742a44ad7ce2bc12a003651b5aa0ff3b5"
},
"downloads": -1,
"filename": "jthon-1.0.6.tar.gz",
"has_sig": false,
"md5_digest": "86bbc4ca3becebdd484de6ffe0b45f15",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6,<4.0",
"size": 4381,
"upload_time": "2023-04-25T17:50:42",
"upload_time_iso_8601": "2023-04-25T17:50:42.061022Z",
"url": "https://files.pythonhosted.org/packages/ca/bf/dd607c699f4371b67e59ff97216089a92fa78f0a5329964accd48685e1a6/jthon-1.0.6.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-04-25 17:50:42",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "CasuallyCalm",
"github_project": "jthon",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "jthon"
}