Sybren A. Stüvel 2e4c5b2663 Split Node.create_asset_from_file and added direct uploading from file obj
Node.create_asset_from_file() is split such that the actual file upload is
handled by File.upload_to_project(). This now also supports directly
uploading from a file object, which could be an io.BytesIO() object to
upload from RAM.
2016-07-07 11:08:30 +02:00
2016-05-10 15:03:09 +02:00
2015-08-31 19:25:01 +02:00
2016-03-18 12:41:24 +01:00
2016-06-28 15:28:06 +02:00

Pillar Python REST SDK

Integrate this module in your Python app to communicate with an Pillar server.

Caching

Requests-Cache can be used to cache HTTP requests. The Pillar Python REST SDK does not support it directly, but provides the means to plug in different session objects:

import requests_cache
import pillarsdk

req_sess = requests_cache.CachedSession(backend='sqlite',
                                        cache_name='blender_cloud')
pillarsdk.Api.requests_session = req_sess

Any pillarsdk.Api instance will now use the cached session. To temporary disable it, use:

api = pillarsdk.Api.Default(endpoint="https://your.endpoint")
with api.requests_session.cache_disabled():
    node = pillarsdk.Node.find('1234')
Description
Pillar-python-sdk
Readme 225 KiB
Languages
Python 99.4%
Shell 0.6%