Skip to main content

Python API for LANA Process Mining

Project description

Pylana

Python 3.7 Pylana Maintenance

Python API for LANA Process Mining

This package provides a Python API for LANA Process Mining.
Attention: This package is still in alpha state. Functions and parameters may be renamed and changed at any time.

Installation

To install pylana, you need python version 3.6.0 or above. Pylana could be installed from pypi:

$ python3 -m pip install pylana

To establish a connection with the server, you could use either the access token or the API key.

import pylana
myLana = pylana.LanaAPI(url = "https://cloud.lanalabs.com/", apikey = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9")

Usage Example

Pylana provides a simple interface which supports:

  • Uploading / retrieving / sharing event logs
  • Uploading / connecting target models
  • Creating / connecting / sharing shiny dashboards

Upload an Event Log

# without case attribute
myLana.uploadEventLog(logFile, logSemantics)

# with case attributes
myLana.uploadEventLogWithCaseAttributes(logFile, logSemantics, 
    caseAttributeFile, caseAttributeSemantics)

Retrieve Event Logs

# get a list of event logs associated with the current user
myLana.getUserLogs()

# get the log id of a particular log
mylana.chooseLog(logName)

Create a Shiny Dashboard

# initate a new shiny dashboard id
id = mylana.createShinyDashboard(dashboardName)

# upload the dashboard file to server
mylana.uploadShinyDashboard(dashboardFile, id)

# connect the dashboard to an event log
mylana.connectDashboardToLog(id, logId)

License

Apache License 2.0

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

pylana-0.0.1.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

pylana-0.0.1-py3-none-any.whl (8.5 kB view hashes)

Uploaded Python 3

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