A python library reading and writing bonsai configuration files
Project description
Bonsai Config
==========
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](https://github.com/BonsaiAI/bonsai-cli) and [bonsai-python](https://github.com/BonsaiAI/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')
```
==========
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](https://github.com/BonsaiAI/bonsai-cli) and [bonsai-python](https://github.com/BonsaiAI/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
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for bonsai_config-0.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5351eac7751becd89cbc1d5e52d51c83ba8ea630755d280a15463a8b6f17a67 |
|
MD5 | faeffa08e1cd4263ac9867c2dece844c |
|
BLAKE2b-256 | cb14aef094089f9a1f78cefd7bd0302a4444321aed03b721bd9698f190bed372 |