Skip to main content

Pyplan Core is a Python library for using Pyplan models in any Python environment as for example a Jupyter Notebook.

Project description

https://raw.githubusercontent.com/pyplan/pyplan-ide/master/docs/assets/img/logo.png

Pyplan is a Python development environment intended for easily creating and deploying data analytics apps. Different than a Jupyter Notebook, where code is structured as a list of sentences, in Pyplan code is contained in nodes that work as calculation steps, organized in a hierarchical influence diagram. Nodes can be evaluated, and its result inspected through a console output or rendered as a table or graph.

Pyplan Core is a Python library for using Pyplan models in any Python environment as for example a Jupyter Notebook. It provides methods to open a model, set selectors values and get results of nodes. This library expands the possibilities of using Pyplan models embedded in your own application. Models still have to be created using the Pyplan Graphical IDE that you can download and use for free at www.pyplan.org

Installing and running Pyplan Core

You can install Pyplan Core in your computer following the instructions below:

pip install pyplan_core

You can use Pyplan Core following the instructions below:

from pyplan_core.pyplan import Pyplan

pyplan = Pyplan()

#model_filename = "path/to/my_model_file.ppl"
model_filename = pyplan.sample_models.use_of_pyplan_core()  # for sample purposes
pyplan.openModel(model_filename)
value = pyplan.getResult("total_of_cases")
print(value)

pyplan.closeModel()

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

pyplan-core-0.1.34.tar.gz (401.7 kB view details)

Uploaded Source

Built Distribution

pyplan_core-0.1.34-py3-none-any.whl (550.8 kB view details)

Uploaded Python 3

File details

Details for the file pyplan-core-0.1.34.tar.gz.

File metadata

  • Download URL: pyplan-core-0.1.34.tar.gz
  • Upload date:
  • Size: 401.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.7.1 requests/2.26.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.10

File hashes

Hashes for pyplan-core-0.1.34.tar.gz
Algorithm Hash digest
SHA256 809d64f4993dacde3366d1bc93d7e1d1f4a33340cd1d9035f54f626ed5af07d0
MD5 7a6ba39b109fb20712cd58fae6b7a8a2
BLAKE2b-256 f3486c57733f98b1ab72bcd2515c24216aeda5488c31067eee1ce9232158dcd0

See more details on using hashes here.

File details

Details for the file pyplan_core-0.1.34-py3-none-any.whl.

File metadata

  • Download URL: pyplan_core-0.1.34-py3-none-any.whl
  • Upload date:
  • Size: 550.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.7.1 requests/2.26.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.10

File hashes

Hashes for pyplan_core-0.1.34-py3-none-any.whl
Algorithm Hash digest
SHA256 121a5531b5215a5e859427fab5827ca352475201418faefed76dc3162c60ea1a
MD5 923ff25bbc64ccc6183165e02592482d
BLAKE2b-256 6682d82ed4e1e3533a6fe21becb0c920ed686a5b68c0be3e2d2a0abe4df69634

See more details on using hashes here.

Supported by

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