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

Uploaded Source

Built Distribution

pyplan_core-0.1.23-py3-none-any.whl (532.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyplan-core-0.1.23.tar.gz
  • Upload date:
  • Size: 378.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.8

File hashes

Hashes for pyplan-core-0.1.23.tar.gz
Algorithm Hash digest
SHA256 e07cb012c380bdd9ea55c822eb3a2f796012f13408689805a7f23245165de282
MD5 4b5c73c8b7f1734016c6aad91d9f4596
BLAKE2b-256 2cbc33e5c2d8ed8cabaa9e99520676edb7d8d3321c10dddf15e7610a9bd48ab7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyplan_core-0.1.23-py3-none-any.whl
  • Upload date:
  • Size: 532.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.8

File hashes

Hashes for pyplan_core-0.1.23-py3-none-any.whl
Algorithm Hash digest
SHA256 dd2de318a3dea57ff29c689eea6b08e151d035a3c4e4ec40114d3e9fa0899260
MD5 1b1d0d2f508661d9c3243b84ad0103ce
BLAKE2b-256 0079ec616919283234c364741371ea211bf09109fc7589ac2ee8c9e538a7c8c3

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