Skip to content

Latest commit

 

History

History
executable file
·
31 lines (24 loc) · 709 Bytes

README.md

File metadata and controls

executable file
·
31 lines (24 loc) · 709 Bytes

Shuffle SDK

This is the SDK used for apps to behave like they should.

Usage

Refer to the Shuffle App Creation docs

**It is NOT meant to be used standalone with python scripts yet. This is a coming feature. **

Build

docker build . -t shuffle/shuffle:app_sdk

Download

pip install shuffle_sdk

Usage

import shuffle_sdk

Adding new Liquid filters

Add a function along these lines:

@shuffle_filters.register
def md5(a):
    a = str(a)
    return hashlib.md5(a.encode('utf-8')).hexdigest()

This can be used as {{ "string" | md5 }}, where "string" -> the a parameter of the function