Metadata-Version: 2.1
Name: trusty
Version: 1.1.0
Summary: Persistent dictionaries
Home-page: 
Author: Chris Varga
Author-email: 
Keywords: trusty dictionary json persistent
Classifier: Programming Language :: Python
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown

# Trusty
Persistent dictionaries

## Example Usage
```python
import os
import trusty

# Create a trusty dictionary at location `pack`.
pack = trusty.get('pack')

# Set a key value pair.
pack['food'] = 'lembas'

# Persist the dictionary to disk.
pack.save()

# Confirm that the dictionary was saved.
# The `location` specifies the path on disk.
print(pack.location)
print(os.path.abspath(pack.location))
print(os.path.exists(pack.location))
```

We can later retrieve the dictionary like so:
```python
import trusty

new_session = trusty.get('pack')
print(new_session)

# We can then further edit the data, and store it to the same location.
new_session['supplies'] = 'taters'
new_session.save()
```
