Py-StackExchange

A Python binding to the StackExchange (Stack Overflow, Server Fault, etc.) website APIs
Download

Py-StackExchange Ranking & Summary

Advertisement

  • Rating:
  • License:
  • BSD License
  • Publisher Name:
  • Lucas Jones

Py-StackExchange Tags


Py-StackExchange Description

A Python binding to the StackExchange (Stack Overflow, Server Fault, etc.) website APIs Py-StackExchange is an API wrapper for Python.It is a Python library for querying the StackExchange API from your Python applications. Integration, ahoy!So why should you use it? After all, the SE API is sooo simple that you might think it'd be quicker to just write your own, and that it'd be faster and you wouldn't have to look at all that documentation and do all that thinking... Well:Let's start with the API coverage - what can the API do? And, more importantly, what can the library do? * Access any StackExchange site, with just its URL! Even those that aren't online yet! * If you just can't decide which one to use, you can use StackAuth to look up the full list of sites. * Once you're online, you can view everything about users, questions, answers, badges, comments and tags. * You can even go back in time by playing with post revisions. * Use any version of the API, from the venerable 0.8 all the way to, er, 1.0. * Stalk Generate a detailed profile of a user's life Help users by looking up every StackExchange account they have. Every single one. * See how well an SE site is doing; obsessively check its site statistics. * Search the questions of StackExchange sites.So, why not write your own classes to consume said pure, concentrated, unadulterated amazingness? * Let someone else deal with all that laborious HTTP request business... you know you want to... * All those little idiosyncratic potholes on your road to API happiness have been filled in for you. We have little elves which jump into your code and parse your JSON and your dates and your lists until every response is itself a little baby python. * URLs change 99.9% more often than the interface of this module. Fact. * Is faster than Michael Palin on a broken bicycle. It also knows about request throttling, so when it gets too fast for its own good, it applies the brakes just enough to restore order. * Loads lazily information that would take another request to fetch, meaning you never use more of your limit than you need to.Now, onto the religious advantages: * Documentation? Bah, we have naming conventions. (This feature was inspired by Rails.) Pssst - don't tell anyone, but there is documentation too, if that's you're style. * Naming conventions? Who needs them? We have an interactive program that writes your code for you while you look around the StackExchange site of your choice. (This feature was inspired by Jon Skeet/Ruby.) * Almost-sentient, artificially intelligent programming programs? Ugh, how 20th century. There are metric heaps of example code available in the source repo, a small excerpt of which is presented below for your viewing pleasure.Please note: This is not an official product of Stack Overflow Internet Services Incorporated. My, their full name sounds so dramatically evil. But you're not evil, Jeff, are you? Are you?Please see http://stackapps.com/questions/198/py-stackexchange-an-api-wrapper-for-python for a full description. Requirements: · Python


Py-StackExchange Related Software