Skip to main content

Wrapper for Polymatica API

Project description

Библиотека предназначенна для работы с Polymatica API.

Первым шагом необходимо импортировать модуль бизнес-логики командой from polyapi import business_scenarios as sc

Далее нужно инициализировать класс бизнес-логики. Если используется механизм беспарольной авторизации, то password указывать не нужно.

sc = sc.BusinessLogic(login="your_login", password="your_password", url="polymatica_server_url")

Скрипты запускаются при помощи методов, находящихся в файле business_scenarios.py

Методы класса BusinessLogic можно посмотреть при помощи стандартной функции Python: dir()

Аргументы функций, их смысл, а также прочую docstring-документацию модуля и функций можно посмотреть при помощи стандартной функции Python: help()

В модуле business_scenarios есть функции execute_olap_command() и execute_manager_command(). execute_olap_command() должна запускать любые выбранные команды модуля Olap. execute_manager_command() должна запускать любые выбранные команды модуля Manager.

Change Log

0.0.1 (08/12/2020)

  • First Release

0.0.2 (08/12/2020)

  • Minor fixes

0.0.4 (15/12/2020)

  • fixed FileNotFoundError

0.0.5 (29/12/2020)

  • added getLogger

  • new functions in business_scenarios

0.0.6 (15/01/2021)

  • fixed logging: logs are displayed in stdout (default) or logs can be redirected to file

  • fixed other bugs

  • added new functions in business_scenarios

0.0.8 (17/02/2021)

  • fixed logging: only significant logs are recorded in DEBUG mode

  • fixed method exceptions: relieved of sys.exit(), now only exceptions are thrown

  • fixed other bugs

  • added new functions in business_scenarios

0.0.9 (12/03/2021)

  • fixed “load_sphere_chunc” method bug

  • fixed scenario timeout

  • fixed other bugs

  • added new functions in business_scenarios

  • rewrite module docstring

5.6.10.0 (19/03/2021)

  • fixed “get_data_frame” method

  • fixed other bugs

  • Changed way of PPL versioning; version is now define as “x.y.n.h” where

    “x.y” - version of Polymatica (for example, 5.6), “n” - version of PPL in association with version of Polymatica, “h” - number of hotfix. Example: “5.6.10.0”, “5.6.18.1”, “5.7.0.0”

5.6.11.0 (16/04/2021)

  • added methods for working with charts: graph_create, graph_modify; the following types of graphs are available: lines, cylinders, cumulative cylinders

  • implemented the ability to execute commands of charts module (execute_graph_command)

  • fixed other bugs

5.6.12.0 (22/06/2021)

  • implemented all graph types, except “Corridors”, “Surface”, “Graph”

  • fixed bugs for Polymatica 5.7

  • fixed other bugs

5.6.13.0 (13/07/2021)

  • fixed bugs for Polymatica 5.7

  • fixed other bugs

5.6.14.0 (23/07/2021)

  • fixed the problem of encoding cyrillic symbols

  • fixed all methods of working with scripts for Polymatica 5.7

  • fixed other bugs

5.6.15.0 (27/08/2021)

  • all types of graphs are implemented

  • fixed authentication bugs

  • fixed the problem of encoding cyrillic symbols

  • fixed other bugs

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

polyapi-5.6.15.0.tar.gz (102.6 kB view hashes)

Uploaded Source

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