Skip to content

DaoCloud/dce-plugin-sdk-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dce-plugin-sdk-py

DCE plugin SDK for Python.

Requirements

  • Python 2.7.*

Installation

Install from PYPI:

$ pip install dce-plugin-sdk

Install from source:

$ pip install https://github.com/DaoCloud/dce-plugin-sdk-py/archive/master.zip

Example/Usage

Set/Get Plugin Config

You can use this SDK to save your plugin's config. config should not bigger than 1MB.

from dce_plugin import PluginSDK

sdk = PluginSDK()
config = {
    'key': 'Hello, World'
}

saved = sdk.set_config(config)
retrived = sdk.get_config()

License

dce-plugin-sdk-py is licensed under the MIT License - see the LICENSE file for details