> ## Content Index
> Fetch the complete content index at: https://openlab.app/llms.txt
> Use this file to discover other available public pages before exploring further.

# OpenLab Python Client
- URL: https://openlab.app/blog/openlab-python-client/
- Published: 2018-11-23T14:51:29.000Z
- Updated: 2019-07-25T10:13:32.000Z
- Author: Andrew Holsæter
- Tags: Blog, Python, #Import 2026-11-06 18:08

Introducing, the new [OpenLab ](https://medium.com/@openlab.test.user/openlab-drilling-ec53546f05ae?ref=openlab.app)Python client! Programmatically interact with OpenLab Drilling data or create and control a new simulation with the free OpenLab Python API. You can download the package from our Downloads page [here](https://openlab.app/downloads/). Or if you have Python 3.4+, simply run the command “pip install openlab” from a command line to download the package. Once downloaded, follow the README instructions provided in the folder to get started. And read more about OpenLab [here](https://medium.com/@openlab.test.user/openlab-drilling-ec53546f05ae?ref=openlab.app)! 

### Creating a simulation is made easy

![](https://cdn-images-1.medium.com/max/720/1*zuxuwCdPFl2CQIJzdBf1JA.png)

You can create a simple simulation or pass in more advance optional parameters like influx type or time step if a transient model is desired. 

### Running a simulation is even easier

![](https://cdn-images-1.medium.com/max/720/1*u1vQsIGa0zkmHaoArGdn4g.png)

---

## Machine Learning

Utilize python’s rich library collections to interact with OpenLab as you want. Python shines with machine learning. In fact, the OpenLab Python client has already been utilized in the industry with machine learning (Ambrus and Saadallah 2018).

---

## Jupyter/Teaching aid

Get to know both Jupyter notebooks and the OpenLab python client. The python package comes packaged with a Jupyter notebook section and several tutorials designed to be both a python teaching aid, as well as a guide on how to use the OpenLab python client. 

Using these Jupyter notebooks, you can then share live simulation code snippets and run and share them with colleagues and classmates in a web browser.

---

## Process Control

Drilling automation is all about process control. Use the provided PI Controller class or create your own controller to create complex simulations and explore control systems. 

![](https://cdn-images-1.medium.com/max/720/1*nbgQsbjgb1ivT_3qbxiX-Q.png)

Example setup for the PI Controller

![](https://cdn-images-1.medium.com/max/720/1*tsPp1qDavQMXHA8-_oyj7w.png)

The sweep.py example that comes with the python client utilizes the PI controller to maintain bottom hole pressures at different flow rates by automatically adjusting the choke opening

---

With the OpenLab python client, it is easy to get and interact with results and simulations however you want. Below are just a few more examples of the possibilities: 

- Compare 2 simulations that were run in the browser to isolate differences
- Run a simulation with outside influence (e.g. drilling data from another program)
- Much, much more

Try now for free at [l](https://live.openlab.app/?ref=openlab.app)ive.openlab.app!