skip to navigation
skip to content

bonsai-config 0.4.4

A python library reading and writing bonsai configuration files

Latest Version: 0.4.5

A python library reading and writing bonsai configuration files.

Installation

Install the latest stable from PyPI:

$ pip install bonsai-config

Install the latest in-development version:

$ pip install https://github.com/BonsaiAI/bonsai-config

Usage

Once installed, import bonsai_config in order to access methods to read and write configuration files used by bonsai-cli and bonsai-python.

from bonsai_config import BonsaiConfig

# Read properties from the main bonsai config file:
bonsai_config = BonsaiConfig()
print(bonsai_config.username())
print(bonsai_config.access_key())

# Write properties to the main bonsai config file:
bonsai_config = BonsaiConfig()
bonsai_config.update_access_key_and_username('new_access_key', 'new_username')
 
File Type Py Version Uploaded on Size
bonsai_config-0.4.4-py2.py3-none-any.whl (md5) Python Wheel py2.py3 2018-02-13 5KB