Access and manipulate dictionaries and JSON files.
Project description
arkivist
Access and manipulate dictionaries and JSON files.
Import
from arkivist.arkivist import update, read
Usage
1. Reading from JSON file
people = read("people.json")
2. Updating JSON file
people = read("people.json")
# item 1
person = {}
person.update({"name": "Abc Xyz"})
person.update({"age": 12})
people.update({"abcxyz": person})
# item 2
person = {}
person.update({"name": "Lmn Opq"})
person.update({"age": 15})
people.update({"lmnopq": person})
# basic usage
update("people.json", people)
# adjust indent
update("people.json", people, indent=3)
# sort and reverse order
update("people.json", people, sort=True, reverse=True)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
arkivist-1.0.3.tar.gz
(2.5 kB
view hashes)