Nifi-Python-Api: A convenient Python wrapper for the Apache NiFi Rest API
The easiest way to install NiPyApi is with pip:
# in bash pip install nipyapi
Then import and use the modules:
# in python from nipyapi.canvas import * from nipyapi.templates import * from nipyapi.system import * from nipyapi.versioning import * dir() >['__builtins__', 'all_templates', 'create_pg_snippet', 'create_process_group', 'create_processor', 'create_registry_bucket', 'create_registry_client', 'create_template', 'delete_process_group', 'delete_processor', 'delete_registry_bucket', 'delete_registry_client', 'delete_template', 'deploy_template', 'export_template', 'get_flow', 'get_process_group', 'get_process_group_status', 'get_processor', 'get_processor_type', 'get_registry_bucket', 'get_registry_client', 'get_root_pg_id', 'get_template_by_name', 'list_all_process_groups', 'list_all_processor_types', 'list_all_processors', 'list_registry_buckets', 'list_registry_clients', 'recurse_flow', 'schedule_process_group', 'schedule_processor', 'sys', 'upload_template'] get_root_pg_id() >'4d5dcf9a-015e-1000-097e-e505ed0f7fd2'
You can also pull the repository from Github and play or contribute on the latest features, check out the Contribution Guide for more info.
Python 2.7 or 3.6 supported, though other versions may work
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template
Inspired by the equivalent Java client maintained over at hermannpencole/nifi-config
The swagger 2.0 compliant client auto-generated using the Swagger Codegen project, and then cleaned / bugfixed by the authors