Official Python SDK for the Droplo content API
Project description
Python client for droplo.io
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(['127.0.0.1:11211']))
By duck typing you can pass any object that implement the set and get methods (see the NoCache object for the methods
to implement).
Licence
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.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file droplo-0.1.3.tar.gz.
File metadata
- Download URL: droplo-0.1.3.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52db8b46d7049350694165be11a70c0698f8976df9d18031b47cc0541b3dc496
|
|
| MD5 |
a9d13a3c7e9533dfcba07cfc0abdae60
|
|
| BLAKE2b-256 |
0e1ea74f24e685d69afb818e8517dbf8ede3a164004b06b7d5dadf7a9d6ef225
|
File details
Details for the file droplo-0.1.3-py2-none-any.whl.
File metadata
- Download URL: droplo-0.1.3-py2-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52acaecc000e0efabad71080f3f0d89a69818951c0a03e354d91224bbe57d74d
|
|
| MD5 |
8f263a6199a1748394ab9bd8b72d376b
|
|
| BLAKE2b-256 |
e8db6994e7353a41f6af2266f777b67f146c81450ba4852d8ca3a0ee830973e5
|