Skip to main content

A small package to consume Django-Piston web services

Project description

Piston_mini_client is a small package that allows you to easily describe an API provided by a Django server using django-piston that takes care of:

  • Serializing call arguments and deserializing responses from the api. It will deserialize json provided by Piston into light-weight objects that also know how to interact with the api.

  • Making the http calls for you. You should be able to call a method on an api object instead of having to fetch a particular URL.

  • Provide a in-code description of your API. People should be able to know your API by looking at the client code you provide.

Piston_mini_client is written with the following principles in mind:

  • It should have a small set of dependencies. We depend on httplib2 mainly because it provides caching, but you should not need to install a pile of packages just to use a rest client. Even the oauth package is only needed if you need to use oauth authentication.

  • Errors should be informative. Backtraces should point you in the right direction to solve your problem.

  • The client library shouldn’t restrict the way you layout your API. Piston_mini_client should be able to work with just about any rest api your server implements.

  • There should be good documentation available. Clear code is great, and it should be really easy to get started with a couple of simple examples, but there should be documentation available explaining, amongst other things, these principles. :)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

piston-mini-client-0.3.tar.gz (6.7 kB view details)

Uploaded Source

File details

Details for the file piston-mini-client-0.3.tar.gz.

File metadata

File hashes

Hashes for piston-mini-client-0.3.tar.gz
Algorithm Hash digest
SHA256 bb1ff6c98c46344e8ee89015fcf99848f15b3a70272ccac63b49f3772680059b
MD5 42f36b53502af4842b5e44ab78255bb7
BLAKE2b-256 a3f0df40e6ec967f69d3138d5f4b5c356d11693b0330f4c601e5996e4013c0af

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page