Skip to content

Instantly share code, notes, and snippets.

@dylanjbarth
dylanjbarth / graph_gist_template.adoc
Created June 29, 2017 21:25 — forked from jexp/graph_gist_template.adoc
CHANGEME: GraphGist Template. Fork to make your own, view source to see instruction comments

REPLACEME: TITLE OF YOUR GRAPHGIST

Introduction

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens
@dylanjbarth
dylanjbarth / Trello Auto Archiving
Created October 17, 2013 23:10
Introduction to using the Trello API and trello Python package.
import logging
import requests
# Learn how to get your TRELLO_APP_KEY and TOKEN information! https://trello.com/docs/
def archive_all_done_cards(list_id="exampleexampleexample"):
"""Archive all cards in trello 'done' list"""
# python trello package doesn't support this so using requests the old fashioned way
try:
r = requests.post(url="https://api.trello.com/1/lists/%s/archiveAllCards?key=%s&token=%s" %(list_id, TRELLO_APP_KEY, TOKEN))