Metadata-Version: 2.0
Name: bonsai-python
Version: 0.6.2
Summary: A library creating and training AIs with Bonsai BRAIN
Home-page: http://github.com/BonsaiAI/bonsai-python
Author: Bonsai Engineering
Author-email: opensource@bons.ai
License: BSD
Keywords: bonsai
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: License :: OSI Approved :: BSD License
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Natural Language :: English
Requires-Dist: bonsai-config (>=0.3.0)
Requires-Dist: protobuf (<=3.1,>=3.0.0)
Requires-Dist: six (>=1.10.0)
Requires-Dist: tornado (>=4.2.2)

Bonsai SDK
==========

A python library for integrating data sources with Bonsai BRAIN.

Installation
------------

::

    $ pip install bonsai-python

Install the latest stable from PyPI:

::

    $ pip install bonsai-python

Install the latest in-development version:

::

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

Usage
-----

Subclass either ``bonsai.Simulator`` or ``bonsai.Generator``,
implementing the necessary required methods.

::

    class MySimulator(bonsai.Simulator):
        # Simulator methods implementations...

Run your simulator with the helper method from
``bonsai.BrainServerConnection``.

::

    $ python3
    > import bonsai
    > bonsai.run_for_training_or_prediction(
    .     "my_simulator", MySimulator())

Note that the schema used by your simulator (or generator), as well as
the name used to identify it, should match the schemas and identifier in
the corresponding inkling file.


