Skip to main content

Python wrapper for the Trello API

Project description


CI Python Coverage Status PyPI version

Python wrapper for the Trello API

pytrello2 is a Python wrapper and ORM that provides an easy way to interact with the Trello API. Trello serves as a visual tool that enables teams to effectively oversee various projects, workflows, or task tracking via boards that can have files, checklists, and automation. pytrello2 handles authentication, mapping Python objects to Trello JSON, and provides a clean interface for all API endpoints.


You can install pytrello2 using pip:

pip install pytrello2

You can also install pytrello2 using Poetry:

cd pytrello2/
poetry install
poetry shell


A Trello API key and token is needed to use pytrello2. To set up authentication, follow these steps:

  1. Obtain your Trello API key by logging into Trello, and then visiting
  2. Generate a token using the key, and grant the necessary permissions.


import os
from pytrello2 import TrelloClient

# Replace 'YOUR_API_KEY' and 'YOUR_TOKEN' with your Trello API key and token.
token = os.environ["TRELLO_TOKEN"]
api_key = os.environ["TRELLO_API_KEY"]

client = TrelloClient(token, api_key)

# Get all boards of the authenticated user
boards = client.board.get_all_boards()

for board in boards:
    print(f"Board Name: {}, Board ID: {}")


Contributions are welcome!

Check out the Contributing Guidelines for more details.


This project is licensed under the MIT License - see the LICENSE file for details.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytrello2-0.1.0.tar.gz (6.0 kB view hashes)

Uploaded Source

Built Distribution

pytrello2-0.1.0-py3-none-any.whl (8.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page