Git Product home page Git Product logo

knime-python's Introduction

KNIME® Python

Jenkins Quality Gate Status

This repository is maintained by the KNIME Team Rakete.

The KNIME Python Integration closes the gap between KNIME Analytics Platform and Python. It provides nodes to write and execute Python scripts and functionality to make use of Python in other parts of KNIME Analytics Platform.

The legacy Python integrations can be found at knime-python-legacy.

Content

This repository contains the source code for the KNIME Python Integration. The code is organized as follows:

  • org.knime.ext.py4j: OSGi Wrapper for py4j
  • org.knime.python3.py4j.dependencies: Additional dependencies of the OSGi Wrapper for py4j to make classes visible to the classloader of the py4j wrapper plugin
  • org.knime.python3: Core functionality for running Python code from KNIME AP
  • org.knime.python3.arrow: Functionality for transferring Arrow tables between KNIME AP and Python
  • org.knime.python3.arrow.types: Python implementation of special types
  • org.knime.python3.nodes: Framework for writing KNIME AP nodes in Python
  • org.knime.python3.scripting: Useful functionality for providing Python scripting in KNIME AP
  • org.knime.python3.scripting.nodes: Implementation of Python scripting nodes for KNIME AP
  • org.knime.python3.views: Library for creating node views in Python

Tests

Test the unit tests locally:

  1. Pip install pytest
  2. pytest

Test the unit tests locally and see the coverage:

  1. Pip install coverage
  2. coverage run -m pytest
  3. coverage report # to get a report
  4. coverage html # to transform report to an html site for better view

Additionally, you can enhance VS Code to see the coverage:

  1. Install the VS Code extension Coverage Gutters
  2. coverage xml (after you did coverage run -m pytest and coverage report; this transforms the report to xml, which is read by VS Code)
  3. Left bottom: click watch to see the coverage generally indicated

You can also test within VS Code:

  1. Setup a testing framework (e.g. pytest) by using the Testing icon at the left sidebar
  2. Regularly execute tests from there

Development Notes

Use the Ruff Formatter for Python files.

$ ruff format .

You can find instructions on how to work with our code or develop extensions for KNIME Analytics Platform in the knime-sdk-setup repository on BitBucket or GitHub.

Join the Community

knime-python's People

Contributors

alex-j-w avatar atr1an avatar bernd-wiswedel avatar bjoernlohrmann avatar black-tea-lover avatar byanto avatar carlwitt avatar chaubold avatar christianalbrecht avatar davek-knime avatar david-hickey-tng avatar dietzc avatar gab1one avatar hedgehogcode avatar hornm-knime avatar iusethemouse avatar jonasklotz avatar koettert avatar leowoerteler avatar marcelwiedenmann avatar mareike-kb avatar markortmann avatar mrberthold avatar pbaern avatar peterohl avatar steffen-fissler avatar tgabriell avatar thorsten-meinl-knime avatar tobiaskampmann avatar tonqui avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.