Skip to main content

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.

Getting started

Run the following anaconda commands to take care of all dependencies:

conda env create -f ENVIRONMENT.yml
conda activate myjive
conda develop /path/to/myjive

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. The MultiModel 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 the MultiModel class is redundant.
  • take_action(action) has been removed. In (Py)Jive, modules use the take_action function to determine which model functions are called. The take_action function is called on all child models, and based on the value of the action 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 and declare_module functions have been replaced with the declare class method in the Module and Model classes.
  • Jive and non-Jive functionality has been separated into different folders (/jive/ and /core/, respectively).

Project details


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.11.tar.gz (46.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

myjive-0.1.11-py3-none-any.whl (70.1 kB view details)

Uploaded Python 3

File details

Details for the file myjive-0.1.11.tar.gz.

File metadata

  • Download URL: myjive-0.1.11.tar.gz
  • Upload date:
  • Size: 46.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for myjive-0.1.11.tar.gz
Algorithm Hash digest
SHA256 ae0bcdf8cc7c6b00b4dddf8158eedcc0a4066290990ca6754d8a201515fdf01a
MD5 51245bc4286b0f926e38b56d6cff72ac
BLAKE2b-256 83a540f7c317d01c326482b745cc4f61a5ced91c506b32e0a722f495c9e69703

See more details on using hashes here.

File details

Details for the file myjive-0.1.11-py3-none-any.whl.

File metadata

  • Download URL: myjive-0.1.11-py3-none-any.whl
  • Upload date:
  • Size: 70.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for myjive-0.1.11-py3-none-any.whl
Algorithm Hash digest
SHA256 998b588e539cac3cc8de42f28b53d2739594217d372666be3a2f167c7d9d9fce
MD5 4b6020c99852b218aeb6edd4077d7e5d
BLAKE2b-256 d7ce61655ce506310cf1588a4dee231893fcb0c34401de840493a7eef8b50d3c

See more details on using hashes here.

Supported by

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