Bundling blocks into a plugin
Package Workflow blocks into a plugin: required interface, kinds, initializers, serializers, and loading.
Proposed structure of plugin
.
├── requirements.txt # file with requirements
├── setup.py # use different package creation method if you like
├── {plugin_name}
│ ├── __init__.py # main module that contains loaders
│ ├── kinds.py # optionally - definitions of custom kinds
│ ├── {block_name} # package for your block
│ │ ├── v1.py # version 1 of your block
│ │ ├── ... # ... next versions
│ │ └── v5.py # version 5 of your block
│ └── {block_name} # package for another block
└── tests # tests for blocksRequired interface
load_blocks() function
load_kinds() function
REGISTERED_INITIALIZERS dictionary
Serializers and deserializers for Kinds
Tips And Tricks
Enabling plugin in your Workflows ecosystem
Last updated
Was this helpful?