Python SDK installation
It is essential to know that any action available on Picsellia's User Interface can also be done programmatically using the Picsellia Python SDK.
The SDK lets you automate repetitive tasks so that you can focus on your work and, as a consequence, optimize your Computer Vision projects.
How do you install and use the Picsellia Python SDK?
1. Prerequisites
Before you get started, you need:
- Your favorite IDE or text editor
- Python 3.10 - Python 3.14
- PIP
2. Set up your virtual environment
Regardless of which package management tool you are using, installing Picsellia in a virtual environment is strongly recommended. This ensures that the dependencies pulled in for Picsellia don't impact any other Python projects you're working on.
Below are a few tools you can use for environment management:
3. Install Picsellia 🥑
To install Picsellia, run the following command in your terminal:
pip install picsellia
4. Retrieve your API Token
Initializing a Picsellia client with the Python SDK requires your personal API Token, available from your Personal Settings, in the Tokens tab. Exhaustive documentation on retrieving and managing this token is available here.
from picsellia import Client
client = Client(api_token="YOUR API TOKEN", organization_name="organization_name")5. Documentation & first use
All the SDK documentation you need to use it is available here.
During the first use of the SDK, it is recommended to leverage the Recipes tab, which will help you familiarize yourself with the Picsellia package and perform the essential steps.
Updated 12 days ago