pytrello2
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.
Installation
You can install pytrello2 using pip:
pip install pytrello2
You can also install pytrello2 using Poetry:
cd pytrello2/
poetry install
poetry shell
Authentication
A Trello API key and token is needed to use pytrello2. To set up authentication, follow these steps:
- Obtain your Trello API key by logging into Trello, and then visiting https://trello.com/1/appKey/generate.
- Generate a token using the key, and grant the necessary permissions.
Example
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.name}, Board ID: {board.id}")
Contributing
Contributions are welcome!
Check out the Contributing Guidelines for more details.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Metadata
Release files for pytrello2 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pytrello2-0.1.0.tar.gz | 6.0 kB | Without provenance | Details for pytrello2-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pytrello2-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for pytrello2-0.1.0-py3-none-any.whl |
Total release size: 14.3 kB
Release files / pytrello2-0.1.0.tar.gz
| Download URL | pytrello2-0.1.0.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6a57893d97802c57764b4f8ee97bf7c3a141a138e79b09a3a627232a128a615c
|
|
BLAKE2b-256 checksum How to use checksums |
f41ba9b9bdd44bdfb967ac5f78dd788310de8fc139e976b9b28a97469d691237
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.9.18 Linux/6.2.0-1018-azure
|
Release files / pytrello2-0.1.0-py3-none-any.whl
| Download URL | pytrello2-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ed19ccd947418c768763b5a01e909d71b5501e8b4e9b3c889c99e7dd8d5f47c4
|
|
BLAKE2b-256 checksum How to use checksums |
0f51d8dc3952900d21f252296f91e5b038c37759a7e15309f313d328c891e3fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.9.18 Linux/6.2.0-1018-azure
|
Security for pytrello2 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.