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.14.tar.gz (47.0 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.14-py3-none-any.whl (71.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: myjive-0.1.14.tar.gz
  • Upload date:
  • Size: 47.0 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.14.tar.gz
Algorithm Hash digest
SHA256 24afe84b8db83bc51448c92ad8eb396e801a6abf10801058352c791f7e3d9518
MD5 2e35aca75cb6cf940b168d294939a180
BLAKE2b-256 4996cea9d221763c36cbbc181424c0804d2c1a94394023617e6fba09fe812714

See more details on using hashes here.

File details

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

File metadata

  • Download URL: myjive-0.1.14-py3-none-any.whl
  • Upload date:
  • Size: 71.4 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.14-py3-none-any.whl
Algorithm Hash digest
SHA256 01641667c80d7239b2dc9b1bf974b4c01489dd0ceeffc206dede32a508724d50
MD5 e78ebbbb17232eb97db8c63c9f699235
BLAKE2b-256 cce77d36cda03041118e3308dd495337b82c6b30f49860736499659d8a47939d

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