Pyplan Core is a Python library for using Pyplan models in any Python environment as for example a Jupyter Notebook.
Project description
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
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
Built Distribution
File details
Details for the file pyplan-core-0.1.27.tar.gz
.
File metadata
- Download URL: pyplan-core-0.1.27.tar.gz
- Upload date:
- Size: 384.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.6.1 requests/2.24.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b72f35cec62b69e4d4ed1dcbd34b7a66d02b6c42af1df0353911b88e7bd94080 |
|
MD5 | b468be0abe2ca9d598787f36a1ad45d5 |
|
BLAKE2b-256 | 0a6b19c02b9d81881ddd2e22006d99b1af8ccc5edc27d79925aaa59bd9905993 |
File details
Details for the file pyplan_core-0.1.27-py3-none-any.whl
.
File metadata
- Download URL: pyplan_core-0.1.27-py3-none-any.whl
- Upload date:
- Size: 538.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.6.1 requests/2.24.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e61496c220c3ada4e7e4d55f71f8d4c7fe543fb8340241dd5b54e74a7d6c1f5 |
|
MD5 | 2a0b7e44ea9525286481442d3ef1a026 |
|
BLAKE2b-256 | 5cbc416e9672c08e6272424045936169b5b1f62dbad0a033b4c44ea036d7f31e |