MyABCM Corporate Python client API
Overview
MyABCM Corporate (v14 or newer) provides a simple and extensive REST API for end users to connect and control MyABCM from other languages.
The purpose of this package is to simplify the usage of MyABCM Corporate REST API by wrapping the most common calls in a simple to use Python class.
MyABCM Corporate v13 or older has to use version 0.2.4 of this package.
0.2.5 and newer versions of this package are compatible with MyABCM Corporate v14 and newer.
0.2.9 and newer versions support the import, export and script groups (folders) of MyABCM Corporate. Older 0.2.x versions fail against servers that have this feature.
A bit of history
MyABCM Corporate since its first versions, provided a REST API so users could control it from external systems/programs.
To make the use of the REST API simpler, MyABCM even released a command line utility named "MyABCM.Client.Shell" that used the provided REST API to control the basic functions of MyABCM Corporate.
The initial goal of "MyABCM.Client.Shell" was to serve as a simple example of the potential of MyABCM Corporate API but many users ended up using the utility in production to automate processes like model imports, calculation and fact/cube generation.
MyABCM.Client.Shell certainly served its purpose, but it is limited in flexibility as it does not implement the functionality of a full scripting language. Due to that limitation came the idea of implementing a Python package that could wrap around MyABCM Corporate REST API and make it easier for end users to control MyABCM Corporate from Python scripts.
How does it work?
This package implements a single class named CorporateServer that implements multiple methods to control MyABCM Corporate.
Here is a simple example of a Python script to connect to MyABCM and calculate a model:
from myabcm_corporate_client_api import CorporateServer
# Create a new instance of CorporateServer class with the provided servername and credentials
corporate_server = CorporateServer("https://corporate.my-company.com/proxy", "user123", "myabcm123")
# Logon to MyABCM Corporate
corporate_server.logon()
# Select a model
corporate_server.select_model("MY-MODEL-REFERENCE-ABC")
# Execute calculation
corporate_server.calculate_model("JAN2025", "ACTUAL" , False)
# Logoff from MyABCM Corporate
corporate_server.logoff()
This python package is designed to connect to the version v1 of the server API, so when you inform the API URL, you must not inform the API version (as it is already embedded inside the Python code). If just for example, the "API URL" returned by Abm.Server.WEB.Shell.exe LIST_PARAMETERS returns myabcm.mycompany.com/v1, you should use myabcm,mycompany.com without the v1
Methods provided by the CorporateServer class
Here are all methods exposed by the CorporateServer class. Additional details on the parameters required for each method can be obtained directly from most Python code editors as the source code of the package is fully documented using Docstrings.
With the exception of process_fact_associations, all other methods are executed synchronously. This means if you call a method like execute_import, execute_export or any other method that executes as an operation in the server, the call will block until the operation ends.
Logon/logoff methods
| Method | Description |
|---|---|
| logon | Logon to the Corporate server informed in the class constructor |
| logoff | Logoff from the server |
Model related methods
| Method | Description |
|---|---|
| model_exists | Check if a model exists |
| select_model | Select a model |
| remove_model | Remove a model |
| add_model | Add a new model |
| calculate_model | Calculate a specific association |
| reset_association | Reset an existing association |
| remove_cubes_from_olap_server | Remove ALL cubes from OLAP Server (tabular and SSAS) |
| scenario_builder | Execute scenario builder |
File store related methods
| Method | Description |
|---|---|
| upload_file | Upload a local file to the server |
| download_file | Download a file from server |
| file_exists | Check if a file exists in the user's file store |
| remove_file | Remove a file from user's file store |
Integration groups (folders)
Imports, exports and scripts can be organized in groups (folders), and a reference is unique only inside its group. Every method that receives an import, export or script reference also accepts an optional group reference (group_reference, or script_group_reference / import_group_reference / export_group_reference in the script operation methods). When it is omitted, the item is expected to be outside any group. In add_import and add_export the group is informed with the optional ImportGroupReference / ExportGroupReference property of the parameters dictionary.
# Execute an import that is outside any group
corporate_server.execute_import("IMP-SALES", False, "en-US", True)
# Execute an import that is inside the group (folder) MONTHLY
corporate_server.execute_import("IMP-SALES", False, "en-US", True, group_reference="MONTHLY")
Import related methods
| Method | Description |
|---|---|
| import_group_exists | Check if an import group (folder) exists |
| add_import_group | Add a new import group (folder) |
| remove_import_group | Remove an import group (folder) |
| import_exists | Check if an import exists |
| add_import | Add a new import |
| remove_import | Remove an import |
| execute_import | Execute import |
Export related methods
| Method | Description |
|---|---|
| export_group_exists | Check if an export group (folder) exists |
| add_export_group | Add a new export group (folder) |
| remove_export_group | Remove an export group (folder) |
| export_exists | Check if an export exists |
| add_export | Add a new export |
| remove_export | Remove an export |
| execute_export | Execute an export |
Scripts related methods
| Method | Description |
|---|---|
| script_group_exists | Check if a script group (folder) exists |
| add_script_group | Add a new script group (folder) |
| remove_script_group | Remove a script group (folder) |
| add_script | Add a new script |
| remove_script | Remove script |
| execute_script | Execute script |
| add_md_cube_to_script | Add a multidimensional cube to a script |
| add_tb_cube_to_script | Add a tabular cube to a script |
| add_export_to_script | Add an export to a script |
| add_import_to_script | Add an import to a script |
| add_model_calculation_to_script | Add a calculate model operation to a script |
| get_etl_executable_type | Get the type of an ETL executable |
| add_etlx_file_to_script | Add an ETLX package processing operation to a script |
| add_etlx_database_to_script | Add an ETLX(Database) package processing operation to a script |
| add_fact_to_script | Add a fact processing operation to a script |
Fact related methods
| Method | Description |
|---|---|
| add_fact_associations | Add new associations to a fact |
| remove_fact_associations | Remove associations to a fact |
| process_fact_associations | Process a fact association |
| process_fact | Process all fact associations |
Cube related methods
| Method | Description |
|---|---|
| process_regular_cube | Process a regular (SSAS) cube |
| process_tabular_cube | Process a tabular cube |
Metadata
Release files for myabcm-corporate-client-api 0.3.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| myabcm_corporate_client_api-0.3.3.tar.gz | 32.9 kB | Without provenance | Details for myabcm_corporate_client_api-0.3.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| myabcm_corporate_client_api-0.3.3-py3-none-any.whl | Python 3 | none | any | Details for myabcm_corporate_client_api-0.3.3-py3-none-any.whl |
Total release size: 64.4 kB
Release files / myabcm_corporate_client_api-0.3.3.tar.gz
| Download URL | myabcm_corporate_client_api-0.3.3.tar.gz |
|---|---|
| Size | 32.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f7ad3b3cc94efdef179c3c6bf64af6a14bc082591982b42bab4b2fe66017f2c5
|
|
BLAKE2b-256 checksum How to use checksums |
c7355061c47cf882b3332d6c330f729fa2c554ac08f2dbcac469b7e20eddd1b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.0
|
Release files / myabcm_corporate_client_api-0.3.3-py3-none-any.whl
| Download URL | myabcm_corporate_client_api-0.3.3-py3-none-any.whl |
|---|---|
| Size | 31.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f4127a0c887e1be26b3330cae5e34f721488dbd23699a3f2719114dfc1149b31
|
|
BLAKE2b-256 checksum How to use checksums |
f9738d6f66e8e3abbfa752a97dec2852658ab2db26f76c8bbae6369f6552d597
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.0
|
Security for myabcm-corporate-client-api 0.3.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.