Python Trello API Wrapper
This library is a Python wrapper around the Trello REST API.
Requires Python 3.6 or later.
If you wish to use this with Python 2 or Python 3.5 or lower, please use version 0.9.4.
Getting Started
To use the Python API, first install it from PyPI using pip:
pip install trello
or from source:
python setup.py install
Once you have it installed, get an API key from https://trello.com/app-key.
>>> from trello import TrelloApi
>>> trello = TrelloApi(TRELLO_APP_KEY)
>>> trello.boards.get('4d5ea62fd76aa1136000000c')
{
"closed": false,
"desc": "Trello board used by the Trello team to track work on Trello. How meta!",
"id": "4d5ea62fd76aa1136000000c",
"idOrganization": "4e1452614e4b8698470000e0",
"name": "Trello Development",
"pinned": true,
"prefs": {
"comments": "public",
"invitations": "members",
"permissionLevel": "public",
"voting": "public"
},
"url": "https://trello.com/board/trello-development/4d5ea62fd76aa1136000000c"
}
Because the Trello development board is public, we didn't need a user's token, but if we want to access private boards, we'll have to have one. We can get it by calling:
>>> trello.get_token_url('My App', expires='30days', write_access=True)
'https://trello.com/1/authorize?key=TRELLO_APP_KEY&name=My+App&expiration=30days&response_type=token&scope=read,write'
If you send your user to the resulting URL, it will ask them to allow your app access to their account, and then it will give them a token (64-digit hex string) that they will pass back to your app.
>>> trello.set_token(user_token)
(Note: Trello does support OAuth, but the Python API does not have any support for it yet.)
Once you have set the user's token, all calls to the API will include that token, as if the user was logged in.
Metadata
Release files for trello 0.9.7.3
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 | |
|---|---|---|---|---|
| trello-0.9.7.3.tar.gz | 14.6 kB | Without provenance | Details |
Release files / trello-0.9.7.3.tar.gz
| Download URL | trello-0.9.7.3.tar.gz |
|---|---|
| Size | 14.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aa6c100e872f251b96aa916f6df0d4c550671817d65d25af29191ccbb7a6b765
|
|
BLAKE2b-256 checksum How to use checksums |
489d979d8deb937d02d66de4174dbd38da6a345a79e8efb5c3ffb93bb1686442
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.0
|
Security for trello 0.9.7.3
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.