Skip to main content

PyLana

Python 3.7 Pylana Maintenance

PyLana is Python API for LANA Process Mining. It focuses on resource management, but provides methods that can be used to access the processed data as well.

This package is still in initial development state. Anything may change at any time. The public API should not be considered stable.

Installation

You can install PyLana directly from PyPi with e.g.

$ pip install pylana

How to get started

To connect with an api at e.g. 'https:://cloud-backend.lanalabs.com', first create an API with

from pylana import create_api

api = create_api('https', 'cloud-backend.lanalabs.com', <API Key>)

You will require an API key that is valid for your LANA deployment. The returned api stores the url for a LANA Process Mining api as well as your authentication. After creation you can us it to manage the LANA process mining resources. Among other things you can upload data from python pandas data frames directly or connect logs and shiny dashboard resources referencing them by their names.

To upload a new log called "new-event-log" and shiny-dashboard named "new-shiny-dashboard", and connect them with each other, you can use the following code

upload_response = api.upload_event_log_df(
                            'new-event-log', df_event_log,
                            time_format='YYYY-mm-dd',
                            df_case=df_case_attributes)
shiny_dashboard = api.create_shiny_dashboard('new-shiny-dashboard')
connection_response = api.connect_shiny_dashboard(
                                upload_response.json()['id'],
                                shiny_dashboard['id'])

We also provide basic methods for direct http requests to LANA API endpoints, for example

response_list = api.get('/api/v2/dashboards')

will return a response with a list of dashboard metadata. For details about the endpoints refer to the swagger documentation of the LANA API.

How to contribute

See the details in CONTRIBUTING.md.

License

Apache License 2.0

Metadata

Release files for pylana 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pylana 0.2.1
File Size Uploaded
pylana-0.2.1.tar.gz 21.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pylana 0.2.1
File Interpreter ABI Platform
pylana-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 53.0 kB

Release files / pylana-0.2.1.tar.gz

Download URL pylana-0.2.1.tar.gz
Size 21.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f0793b43a2a87f9373f529b3d5b4931d28e85d7000438456cb46b075ae396223
BLAKE2b-256 checksum
How to use checksums
34bc1a66442289d9aa3a2961f508a98ec18deb857b0c0e16d9d4417539131975
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.1

Release files / pylana-0.2.1-py3-none-any.whl

Download URL pylana-0.2.1-py3-none-any.whl
Size 31.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3aa4e1a691992c263625a27836663772fc285a79bc4704c1b24872f5fb4107cc
BLAKE2b-256 checksum
How to use checksums
4173fcefccb2bfb57d5d370b6a3769a2d892abddd978053902d33ee67ad7539d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.1

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page