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

Uploaded Python 2 Python 3

File details

Details for the file bonsai_config-0.4.5-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for bonsai_config-0.4.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d4d0e00767bdf2c2e5739a3198ed2bb18dc432705e32500a69ae2928e08cc1f8
MD5 681233ccb930379d866bbe09fbefa663
BLAKE2b-256 76115ea8154f2e2b95aa3433bcd562683d8227ed3f011f7260cb573f209aa353

See more details on using hashes here.

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