Skip to main content

A python library reading and writing bonsai configuration files

Project description

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')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

bonsai_config-0.4.5-py2.py3-none-any.whl (5.6 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page