Building Web APIs in Django with Tastypie
Issac Kelly — DjangoCon US - September 2011
About You
You have written a couple of django applications,
and are interested in making a REST API
About Me
Primiarly and API consumer, I've written several APIs
against Tastypie and have found it to be awesome
Why Tastypie?
- Makes Sense
- Well Tested
- HATEOAS
- Good features and support, fits well into existing ORM thinking
- Totally Extensible
- Works well with JavaScript*
- Cool stuff is coming out of the community*
Why NOT Tastypie?
- You know better than your users
- Restish is enough
Excellent, what else have I won?
Serialization Methods
- JSON
- Binary plist
- YAML
- XML
- ... Extensible
Excellent, what else have I won?
Authentication Classes
- NO-OP
- API Key
- Http Basic Auth and Digest
- ... Extensible
Excellent, what else have I won?
Authorization Classes
- ReadOnly
- Default Authorized
- Django Authorization!
- ... Extensible
Excellent, what else have I won?
It's Python, and it's Class Based
... Extensible