Deployment
To deploy the module, we need to also create amodule.yml file that describes the module. This file is used to describe the module, and also to provide the metadata that is used to deploy the module to the Kodexa Platform.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Build, deploy, and manage Kodexa modules using Python and the Kodexa SDK to extract data from documents and integrate processing into projects.
def infer(document):
return document
module/
__init__.py
module.py
module.yml file that describes the module. This file is used to describe the module, and also to provide the metadata that is used to deploy the module to the Kodexa Platform.
# A very simple first module
slug: my-module
version: 1.0.0
orgSlug: kodexa
type: store
storeType: MODEL
name: My Module
metadata:
moduleRuntimeRef: kodexa/base-module-runtime
type: module
contents:
- module/*
kdx apply -f module.yml
# A very simple first module
slug: my-module
version: 1.0.0
orgSlug: kodexa
type: store
storeType: MODEL
name: My Module
metadata:
# Adding Keep Zip will mean the implementation ZIP file is not cleaned up
# when you run kdx apply -f <module.yml>
keepZip: true
moduleRuntimeRef: kodexa/base-module-runtime
type: module
contents:
- module/*
kdx get module my-org/my-module -o yaml
