Skip to content

Plugin interface for the Nanowire data processing plugin system

License

Notifications You must be signed in to change notification settings

stuartspotlight/nanowire-plugin-py

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nanowire Plugin Interface

This is the Python library for receiving data in a Nanowire pipeline.

Installation

Library is on PyPI: https://pypi.python.org/pypi/nanowire-plugin

pip install nanowire-plugin

Usage

from nanowire_plugin import bind

def my_analysis(nmo: dict, jsonld: dict, url: str) -> dict:
    # perform analysis

    return result

bind(my_analysis, "my_plugin")

Callback function parameters:

  • nmo: a copy of the Nanowire Metadata Object (for source.misc access)
  • jsonld: the JSON-LD document to mutate
  • url: a URL pointing to the task's source file

Result is a dict object with the mutated JSON-LD document.

About

Plugin interface for the Nanowire data processing plugin system

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 93.1%
  • Makefile 6.9%