Personal implementation of jive C++ library in Python
Project description
MyJive
A personal adaptation of PyJive that is set up in a more "Pythonic" way.
Contributors
Anne Poot (a.poot-1@tudelft.nl)
Differences with PyJive
PyJive is a Python adaptation of the C++ Jive library that stays very close to C++ setup. In MyJive, more liberty is taken, since Python offers a lot more flexibility that C++ does not have.
Key differences are:
MultiModel()
has been removed. In (Py)Jive, each module can only have a single model associated with it. TheMultiModel
class was created to connect multiple models to a single module. In MyJive, each module has a list of models associated with it, rather than a single model, so theMultiModel
class is redundant.take_action(action)
has been removed. In (Py)Jive, modules use thetake_action
function to determine which model functions are called. Thetake_action
function is called on all child models, and based on the value of theaction
parameter, each child model decides whether it should do something or not. To make it less opaque what models come into play at which actions, MyJive has been set up so that modules collect all relevant models that are able to perform a certain action, and then call the action only on these models. All methods with an all-caps name are considered actions.params
has been fully removed. All input and output and output has now been made explicit for all actions that are executed by the modules in the models. Optional arguments are handled with**kwargs
arguments.- Individual
declare_model
anddeclare_module
functions have been replaced with thedeclare
class method in theModule
andModel
classes. - Jive and non-Jive functionality has been separated into different folders (
/jive/
and/core/
, respectively).
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 Distribution
myjive-0.1.4.tar.gz
(38.9 kB
view hashes)