# Python app Installation

Integrate our [**Jet Bridge**](https://app.gitbook.com/@jetadmin/s/doc/~/drafts/-M9TnCmHUbdvDWPtOccj/jet-bridge-deployment/install) plugin with Python installation. You can place it behind your VPN, in your own VPC, and works locally. We won’t get access to your data, however, you will still receive updates normally.

![](https://3448227606-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LQ08RFAKZvFADEiXKFy%2F-MjZ3LfsU1ZReomd0nUz%2F-MjZDAnqL4DrfAe8ZOPy%2Fimage.png?alt=media\&token=5da62cf8-e625-439f-9628-c0ccc09ed4d9)

#### Requirements:

* Python 2.7 or 3.4+
* **pip** - package manager for Python
* Any of the following SQL Databases:
  * PostgreSQL
  * MySQL
  * SQLite
  * Oracle
  * Microsoft SQL Server
  * Firebird
  * Sybase
* **localhost** or **web server** with an external IP

#### Installation

1\. [Install Python](https://www.python.org/downloads/) 2.7 or 3.4+ (comes with **pip**).

2\. Install jet\_bridge package using **pip** or update it from the command line as follows:

```bash
pip install jet_bridge -U
# or for Python 3
pip3 install jet_bridge -U
```

3\. Install an appropriate database adapter and libraries:

```bash
# for PostgreSQL
pip install psycopg2

# for PostgreSQL + PosGIS
pip install GeoAlchemy2==0.6.2
pip install Shapely==1.6.4

# for MySQL
pip install mysqlclient

# for MSSQL
pip install pyodbc
```

&#x20;4\. Run Jet Bridge from the command line as shown below:

```bash
# for Ubuntu/MacOS/Linux/etc (UNIX systems)
PROJECT={{project_name}} TOKEN={{token}} jet_bridge

# for Windows
set PROJECT={{Project Name}} && set TOKEN={{Token}} && jet_bridge
```

{% hint style="info" %}
**{Project Name} and {Token}** is automatically generated when you connect resource.
{% endhint %}

{% hint style="info" %}
If you are using **Jet Bridge** just for HTTP requests (and not SQL) you can use **Project Token** as value for {Token}.

Go to the API key and below the API keys

![](https://3448227606-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LQ08RFAKZvFADEiXKFy%2Fuploads%2Foi4hfA2p54ts5yzRgqrV%2Fapi.jpg?alt=media\&token=ecdcbdc8-070e-47a7-b567-8d50aa7803cf)

Copy **UNIQUE APP NAME** and **JET BRIDGE TOKEN.**

{% endhint %}

<figure><img src="https://3448227606-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LQ08RFAKZvFADEiXKFy%2Fuploads%2FiD0UWpks6WupCyNPTDDC%2Fapi2.jpg?alt=media&#x26;token=3c9d3769-6198-4e13-bdc0-f07169e439c1" alt=""><figcaption></figcaption></figure>

This command creates a config if you run it for the first time.

After filling all required options you can now run Jet Bridge by executing the command once again:

```bash
jet_bridge
```

5\.  Finish your project installation by opening this link in your browser (usually, it opens automatically):

```bash
http://localhost:8888/api/register/
```

**localhost** is your **Jet Bridge** HOST and **8888** is its PORT.

If you want to run Jet Bridge on a different host or port, read the instructions on the [Configuration page](https://docs.jetadmin.io/jet-bridge-deployment/jet-admin/configuration#setting-up-your-configuration).

{% content-ref url="../../data" %}
[data](https://docs.jetadmin.io/user-guide/data)
{% endcontent-ref %}
