Bizagi ODATA API handler for Python
Project description
Overview
pyzagi [WIP] is Bizagi ODATA API handler for Python
Changelog
0.2.0
- Refatored to match common design patterns
- Scenarios are described as part of manual for usage
0.1.0
- ProcessBPM has more attributes and methods, allowing to bind related entities
- EntityBPM is a new class for entities and their values
- EnvironmentBPM is a new class to hold environment specific attributes
- New methods: get_cases, workitems, workitem/next
Quick start guide
Establishing connection
First thing to do is make connection object, which will be used as main interface for calls
connection = ConnectionBPM(
baseURL,
clientid,
clientsecret
)
Process object
With known process id you can create ProcessBPM object. It is helful to use this object for operations with process, e.g. start, show related entities, etc.
simpleRequest = ProcessBPM(
processid = 'a88c3aab-a94b-49c5-b83b-5b845d721d86',
connection = connection,
startstructure = [
"Simplerequest.Requestdata.Startdate",
"Simplerequest.Requestdata.Enddate",
"Simplerequest.Requestdata.Commentary",
]
)
The startstructure property will create a base for startParameters when making process/start request.
Case creation (process/start)
simpleRequest.start([
"2023-08-28",
"2023-09-05",
"Sent from Python =)"
])
"""
This will set following request body and send the request:
"""
simpleRequest.body = {
"startParameters": [
{
"xpath": "Simplerequest.Requestdata.Startdate",
"value": "2023-08-28"
},
{
"xpath": "Simplerequest.Requestdata.Enddate",
"value": "2023-09-05"
},
{
"xpath": "Simplerequest.Requestdata.Commentary",
"value": "Sent from Python =)"
},
]
}
TODO
- flow / process structure???
- full coverage
- design patterns
- unittests
- get values as table
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyzagi-0.2.0.tar.gz.
File metadata
- Download URL: pyzagi-0.2.0.tar.gz
- Upload date:
- Size: 13.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b7fb0a33323e6069281530781fb049cd61c453f426246aedf0a31d7581a2bb1
|
|
| MD5 |
31551b6dcb1c4ac255f2a8fb12f97121
|
|
| BLAKE2b-256 |
c9de77538d397aa3a0b61c1427e11af798572a12100f67e074579bb360875883
|
File details
Details for the file pyzagi-0.2.0-py3-none-any.whl.
File metadata
- Download URL: pyzagi-0.2.0-py3-none-any.whl
- Upload date:
- Size: 15.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9bd4ffc5461736b8f242140e32ff608e25708dc3213a681ea8551785b686b01b
|
|
| MD5 |
a645a7735d397dbf2cc1cae497e8a375
|
|
| BLAKE2b-256 |
f540135d4f05de4f4725e6cb1e5df5976178dd6241b651cbfc094fb74b861b0d
|