Skip to main content

Official Python SDK for the Droplo content API

Project description

Python client for

Latest PyPI version MIT License Circle CI

Getting started

Install the client for your project

Simply run:

pip install droplo

Basic example of use:

>>> import droplo
>>> api = droplo.Api("YOUR_ACCESS_TOKEN")
>>> blogposts = api.get("blogposts")
>>> blogposts.files[0].name

Using Memcached (or any other cache)

By default, the kit will use Shelve to cache the requests (a file-based cache from the standard library). It is recommended to use a cache server instead, for example Memcached.

You can pass a Memcached client to the droplo.get call:

>>> import memcache
>>> api = droplo.Api("YOUR_ACCESS_TOKEN", cache=memcache.Client(['']))

By duck typing you can pass any object that implement the set and get methods (see the NoCache object for the methods to implement).


Copyright (c) 2018 Droplo, Inc. See LICENSE for further details.

Project details

Download files

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

Files for droplo, version 0.1.3
Filename, size File type Python version Upload date Hashes
Filename, size droplo-0.1.3-py2-none-any.whl (7.0 kB) File type Wheel Python version py2 Upload date Hashes View
Filename, size droplo-0.1.3.tar.gz (5.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page