A collection of Python utilities
Project description
zutilities
A collection of Python utilities
Table of Contents
Prerequisites
You'll need to have Python installed in order to use zutilities
. Start by downloading and installing Python.
Note: Python 3 is recommended, however
zutilities
will probably work just fine with most verions of Python 2
Installation
python -m pip install zutilities
Usage
zutilities.
jprint(list_or_dict, indent=2)
Prints a list or dictionary as formatted JSON.
>>> zutilities.jprint([{'key1':'value1','key2':'value2'}])
[
{
"key1": "value1",
"key2": "value2"
}
]
zutilities.
read_json_file(json_file)
Reads a JSON file from the filesystem and returns a list or dictionary.
j = zutilities.read_json_file('file.json')
>>> j
[{'key1': 'value1', 'key2': 'value2'}]
License
This project is licensed under the MIT License
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
zutilities-0.1.1a0.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for zutilities-0.1.1a0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2ecfaa585356841ed299c0c71465cc581b80784bf26c42ec676ec075958a086 |
|
MD5 | 6f8787025f8bbc2b399aeeb5d23c2fb1 |
|
BLAKE2b-256 | 29a91f6c31a415272888ac64d907a9b3dbc4b635792741b51a5d555c48d86e38 |