Skip to main content

The SDK used for Shuffle

Project description

Shuffle SDK

This is the SDK used for app development, testing and production of ALL apps in Shuffle. Works with manual runs, Docker, k8s, cloud serverless.

Released under Python pip for usage outside of Shuffle

Python apps: https://github.com/shuffle/python-apps All apps: https://shuffler.io/search

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

from shuffle_sdk import AppBase

class Example(AppBase):
    def __init__(self):
        pass

    def sample_function(self):
        return "Hello World"

if __name__ == "__main__":
    Example.run()

Testing an app function standalone

python3 app.py --standalone --action=<actionname> param1=<paramvalue> param2=<paramvalue>

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

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

shuffle_sdk-0.0.6.tar.gz (42.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

shuffle_sdk-0.0.6-py3-none-any.whl (43.0 kB view details)

Uploaded Python 3

File details

Details for the file shuffle_sdk-0.0.6.tar.gz.

File metadata

  • Download URL: shuffle_sdk-0.0.6.tar.gz
  • Upload date:
  • Size: 42.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.8

File hashes

Hashes for shuffle_sdk-0.0.6.tar.gz
Algorithm Hash digest
SHA256 8d162005fe6cc758e970da926d2a358afa3cc42d5667796cd2d1367d2642439e
MD5 84abb602a5850790de8740c4ccf5390f
BLAKE2b-256 bb934fb37ec027d6a08c90cde67ea22cd903fdcd7192988baf43a4ce068ec172

See more details on using hashes here.

File details

Details for the file shuffle_sdk-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: shuffle_sdk-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 43.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.8

File hashes

Hashes for shuffle_sdk-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 1a6066a6b7e68aad889df4959a0e00c8f92a4d963579f4db0a334130d7df12cf
MD5 ffce3dd87a67024e8d71665e5afbc5ab
BLAKE2b-256 bd5e0c708b0eabb92a62236ec642b1320b3331897a35553af1f0bf4b35f82dfe

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page