Home

Awesome

<div align="center">

Safitty logo

Build Status Pypi version Downloads Github contributors License

Safitty is a wrapper on JSON/YAML configs for Python. Designed with a focus on safe data reading and writing for deep-nested dictionaries and lists.

</div>

Installation

pip install -U safitty

Features

Quickstart

import safitty

# Loads config YAML or JSON
config = safitty.load("/path/to/config.yml")

# Getting value from the config
safitty.get(config, "very", "deep", "call", default="This is the default value")

# Setting value into
safitty.set(config, "clients", 0, "address", value="localhost:8888")

More examples in the getting-started notebook.