Skip to content

Add safe and well maintained operator for running external code from web sources #954

Closed as not planned
@elronbandel

Description

@elronbandel

prototype:

class WebModuleOperator(FieldOperator):
    source_urls: List[str] # all downloaded to tempdir
    function: str # imported from tempdir when set
    hash: str # used to make sure the files hasnt changed

    def prepare(self):
        # here come your logic to set things up

    def process(self, value):
        return self._loaded_func(value)

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions