# How to Import the Streamlit Module into Your Streamlit Application

When building a Streamlit app, the first step is to import the Streamlit module into your `app.py` **f**ile. The `app.py` file contains the Python code that defines your Streamlit application.

To import Streamlit, add the following statement at the beginning of your `app.py` file:

```python
import streamlit as st
```

This statement imports the `streamlit` module and assigns it the alias `st`, allowing you to access Streamlit's functionality using a shorter name.

*An* ***alias*** *is an alternative name used to refer to a module in your code. In Python, the* `as` *keyword allows you to assign an alias to an imported module.*

*For example, instead of writing streamlit every time you use its functionality, you can simply use* `st`.

---

This mini-guide was originally published on [**<u>PDF Python Hub</u>**](https://payhip.com/PDFPythonHub), where you can find more in-depth Python resources for working with PDFs.

---

### **Want to learn how to create an** `app.py` **file?**

Check out this mini-guide: [<u>Build and Deploy a “Hello World” Web App with Streamlit Community Cloud + GitHub</u>](https://payhip.com/PDFPythonHub/blog/news/build-and-deploy-a-hello-world-web-app-with-streamlit-community-cloud-github).

---

This mini-guide was originally published on [**<u>PDF Python Hub</u>**](https://payhip.com/PDFPythonHub), where you can find more in-depth Python resources for working with PDFs.
