This is the SDK used for apps to behave like they should.
Refer to the Shuffle App Creation docs
**It is NOT meant to be used standalone with python scripts yet. This is a coming feature. **
docker build . -t shuffle/shuffle:app_sdk
pip install shuffle_sdk
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