sarumont / py-trello

Python API wrapper around Trello's API
BSD 3-Clause "New" or "Revised" License
945 stars 330 forks source link

Archived cards? #301

Open boulderresident opened 4 years ago

boulderresident commented 4 years ago

Hi, I don't see archived cards or lists.. in any of the methods... how do we access archived content on a board? (.. appreciate if you could point me in the right direction.. tnx.

boulderresident commented 4 years ago

I see/found it. .. I was looking for archived cards in the various lists (.list_lists() method) which appear to exclude such cards, where .all_cards() method appears to include all (even archived) cards. I also available via .closed_cards()

leo-smi commented 2 years ago

For those who needs more docs: https://py-trello-dev.readthedocs.io/en/latest/trello.html#module-trello.board

all_boards = client.list_boards()
for board in all_boards:
    print(board.closed_lists())
    print(board.closed_cards())