Skip to main content

Wrapper for Polymatica API

Project description

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

Основным модулем бизнес-логики является файл business_scenarios.py, импортировать который можно с помощью команды from polyapi import business_scenarios as sc.

Модуль предоставляет два класса для работы с Полиматикой - BusinessLogic и GetDataChunk. Методы этих классов можно посмотреть при помощи стандартной функции dir().

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

Инициализация нового клиентского подключения: client = sc.BusinessLogic(login="your_login", password="your_password", url="polymatica_server_url", **args)

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_chunk” 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

5.6.16.0 (04/10/2021)

  • add parms “default_value” and “convert_empty_values” to load_sphere_chunk function
  • fixed function names in “func_timing”
  • fixed other bugs

5.6.17.0 (03/02/2022)

  • fixed problem with encoding for Polymatica 5.7
  • fixed work/reworked of following methods: “create_calculated_measure”, “wait_cube_loading”, “delete_dim_filter”, “select_all_dims”, “create_sphere”
  • changed the api of following methods: “group_dimensions”
  • “unselect_all_dims” method added
  • fixed many bugs

5.6.17.1 (08/02/2022, hotfix)

  • fixed “wait_cube_loading” method

5.6.18.0 (11/03/2022)

  • fixed settings for labels on charts for Polymatica 5.7
  • fixed “create_sphere” method
  • added “is_guest” param for Polymatica 5.7
  • fixed other little bugs

5.6.19.0 (08/04/2022)

  • fixed bugs in “get_data_frame”, “load_sphere_chunk” and “sort_measure” methods
  • added “get_row_and_col_num” method
  • 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.19.0.tar.gz (123.0 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page