Skip to main content

Python SDK and runtime for Flyde - a visual flow-based programming language and IDE.

Project description

PyFlyde

Build

Python runtime for Flyde with Data Engineering emphasis.

Example graph running K-means clustering with Pandas and Scikit-learn

PoC warning

This is a proof-of-concept and not a final implementation. Structure and API may change drastically before public release.

Getting started

You need Python 3.9+ installed on your machine to run PyFlyde.

First, you need to install its dependencies:

pip install .

Then you can run the Hello World example:

./flyde.py examples/HelloPy.flyde

Using the visual editor

Install Flyde VSCode extension from the marketplace.

Whenever you change your component library classes or their interfaces, use flyde.py gen command to generate .flyde.ts definitions, e.g.:

./flyde.py gen examples/mylib/components.py

Running a Machine Learning example

Clustering.flyde is a more complex example which uses Pandas and Scikit-Learn to run K-means clustering on a wine clustering dataset from Kaggle. It's a PyFlyde version of https://github.com/Shivangi0503/Wine_Clustering_KMeans.

To run this example, you need to install its dependencies first:

cd examples
pip install .
cd ..

After going back to the main folder you can run it with:

./flyde.py examples/Clustering.flyde

Contributing

Install dev dependencies

pip install .\[dev\]

Run tests and coverage reports

To run tests only:

make test

TO run tests with coverage and see report:

make cover report

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyflyde-0.0.3.tar.gz (287.2 kB view hashes)

Uploaded Source

Built Distribution

pyflyde-0.0.3-py3-none-any.whl (10.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page