doc/development/python_guide/getting_started.md
This guide helps non-Python developers get started with Python quickly and efficiently.
Set up Python:
Install Python from the official Python website.
Python can also be installed with Mise:
mise use [email protected]
While macOS comes with Python pre-installed, it's strongly advised to install and use a separate version of Python
Install Poetry for package management:
Poetry is a modern, Python-specific dependency manager that simplifies packaging and dependency handling. To install it, run:
curl --silent --show-error --location "https://install.python-poetry.org" | python3 -
Poetry can also be installed with Mise:
mise install poetry
Make sure to read the Poetry installation guide for full installation details
Once installed, create a new Python project with Poetry:
poetry new my_project
cd my_project
poetry install
Run and Debug Existing Code
If you are new to Python or looking to refresh your knowledge, this section provides various materials for learning the language.
When building Python APIs, we use FastAPI and Pydantic. To get started with building and reviewing these technologies, refer to the following resources:
We use pytest for testing Python code. To learn more about writing and running tests with pytest, refer to the following resources:
A collaborative space for developers to study Python, FastAPI, and Pydantic, focusing on building real-world apps.
Refer to Track and Propose Sessions for Python Learning Group issue for ongoing updates and discussions.
Core Topics for Group Learning:
Basic Python Syntax:
FastAPI and Pydantic:
#python_getting_startedAll review and study group meetings will be recorded and shared, covering key concepts in Python, FastAPI, and Pydantic. These recordings are great for revisiting topics or catching up if you miss a session.
Add any uploaded videos to the Python Resources playlist.
1:1 mentorship for Python is possible and encouraged. For more information on how to get started with a mentor, see the GitLab Mentoring Handbook.
In addition to the resources already mentioned, this section provides various materials for learning the language and it's ecosystem. In no particular order.
virtualenv and pip are built-in tool to handle project dependencies and environments. Why and when should you use
Poetry?