Skip to content

Instantly share code, notes, and snippets.

View ajmaradiaga's full-sized avatar

Antonio Maradiaga ajmaradiaga

View GitHub Profile
@sloria
sloria / bobp-python.md
Last active May 12, 2024 06:54
A "Best of the Best Practices" (BOBP) guide to developing in Python.

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
(r'^api/$', 'flipea.html.views.api'),
(r'^api/favorites\.(xml|json)$', 'flipea.api.views.favorites'),
(r'^api/public\.(xml|json)$', 'flipea.api.views.public_timeline'),
(r'^api/statuses/replies\.(xml|json)$', 'flipea.api.views.user_timeline_mentions'),
(r'^api/statuses/friends_timeline\.(xml|json)$', 'flipea.api.views.home_timeline'),
(r'^api/statuses/user_timeline\.(xml|json)$', 'flipea.api.views.user_timeline'),
(r'^api/statuses/user_timeline/([a-zA-Z0-9_\-]+)\.(xml|json)$', 'flipea.api.views.username_timeline'),
(r'^api/statuses/home_timeline\.(xml|json)$', 'flipea.api.views.home_timeline'),
(r'^api/statuses/public_timeline\.(xml|json)$', 'flipea.api.views.public_timeline'),
(r'^api/statuses/friends\.(xml|json)$', 'flipea.api.views.following'),