<img src="/assets/logo.png" width="100px" alt="Barfi Logo">
# Welcome to Barfi ! 👋
**A Python visual Flow Based Programming library to buld workflows that integrates into existing codebases.**
![Demo GIF](/assets/demo.gif)
**Documentation** : [find it here](https://barfi.ai/docs)
Barfi is a Flow-Based Programming framework that offers a graphical programming interface. It is designed to integrate seamlessly into your existing Python applications.
Barfi serves as an abstraction of Graphical Programming, Flow-Based Programming, or Node Programming, where a Block corresponds to a Node, and a Link (or connection) corresponds to an Edge. These concepts go by different names, each reflecting specific needs or philosophies. In Barfi, they form the foundation of a framework for building, saving, and executing workflows as needed. The framework is intentionally kept simple, providing APIs that allow customization for diverse use cases and philosophies.
Many existing visual Flow-Based Programming (FBP) libraries/frameworks operate within their own confined isolated environments, limiting their usability as components in existing applications or scripts. Barfi addresses this by decoupling the graphical programming interface from the computation environment, which eables easy integration into existing apps. The graphical interface is provided through a Streamlit widget: `st_flow` (with a Jupyter Notebook widget currently in development), while the computation environment is managed independently via the `ComputeEngine`.
> Note: The current version >= 1.0.0 introduces many changes from <= 0.7.0. Check the (changelog)[./CHANGELOG.md] for more info on this. Versions will no longer be maintained.
## Quickstart
A workflow consists of a bunch of `Block`s connected to each other, the information of the blocks and connections is stored in a `FlowSchema`, which is then executed to execute each program/function connected to each `Block` and to propagate the data from one `Block` to another.
### Installation
Since we will be using the streamlit widget st_flow for the graphical interface here, we will install the package with the streamlit requirements:
```shell
pip install barfi[streamlit]
```
> Note: As a best practice, it is recommended to setup a virtual environment to manage the dependencies of the project. If you do not know how to do this, this blog or this section could be of help.
### Your First App
Follow this getting started guide on building your first `Blocks`, creating a `FlowSchema` and executing it using a `ComputeEngine`, save it using a `SchemaManager`.
**Getting Started** : [find it here](https://barfi.ai/docs/getting_started)
## Migration from v0
If you were using the versions <= 0.7.0, a migration guide is being written. For using version >= 1.0.0, conceptually all the concepts remain with a minor API changes. v1.0.0 introduces a stronger type checking mechanism, and decouples and `SchemaManager` and `ComputeEngine` from the UI by providing separate classes to run those functions. You can check the API docs to get familiarized on how to use them.
## Under the hood
The Flow Editor UI is built using [ReactFlow](https://reactflow.dev/).
Raw data
{
"_id": null,
"home_page": "https://github.com/krish-adi/barfi",
"name": "barfi",
"maintainer": null,
"docs_url": null,
"requires_python": "!=2.7.*,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,!=3.7.*,>=3.8",
"maintainer_email": null,
"keywords": "python, streamlit, graphical programming, AI, LLM",
"author": "Adithya Krishnan",
"author_email": "krishsandeep@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/64/cd/bfb9de4c1da3faa5cd2a583c3adea46ffe9fbe320b4800287e6df3700810/barfi-1.0.0.tar.gz",
"platform": null,
"description": "<img src=\"/assets/logo.png\" width=\"100px\" alt=\"Barfi Logo\">\n\n# Welcome to Barfi ! \ud83d\udc4b\n\n**A Python visual Flow Based Programming library to buld workflows that integrates into existing codebases.**\n\n![Demo GIF](/assets/demo.gif)\n\n**Documentation** : [find it here](https://barfi.ai/docs)\n\nBarfi is a Flow-Based Programming framework that offers a graphical programming interface. It is designed to integrate seamlessly into your existing Python applications.\n\nBarfi serves as an abstraction of Graphical Programming, Flow-Based Programming, or Node Programming, where a Block corresponds to a Node, and a Link (or connection) corresponds to an Edge. These concepts go by different names, each reflecting specific needs or philosophies. In Barfi, they form the foundation of a framework for building, saving, and executing workflows as needed. The framework is intentionally kept simple, providing APIs that allow customization for diverse use cases and philosophies.\n\nMany existing visual Flow-Based Programming (FBP) libraries/frameworks operate within their own confined isolated environments, limiting their usability as components in existing applications or scripts. Barfi addresses this by decoupling the graphical programming interface from the computation environment, which eables easy integration into existing apps. The graphical interface is provided through a Streamlit widget: `st_flow` (with a Jupyter Notebook widget currently in development), while the computation environment is managed independently via the `ComputeEngine`.\n\n> Note: The current version >= 1.0.0 introduces many changes from <= 0.7.0. Check the (changelog)[./CHANGELOG.md] for more info on this. Versions will no longer be maintained. \n\n## Quickstart\n\nA workflow consists of a bunch of `Block`s connected to each other, the information of the blocks and connections is stored in a `FlowSchema`, which is then executed to execute each program/function connected to each `Block` and to propagate the data from one `Block` to another.\n\n### Installation\n\nSince we will be using the streamlit widget st_flow for the graphical interface here, we will install the package with the streamlit requirements:\n\n```shell\npip install barfi[streamlit]\n```\n\n> Note: As a best practice, it is recommended to setup a virtual environment to manage the dependencies of the project. If you do not know how to do this, this blog or this section could be of help.\n\n### Your First App\n\nFollow this getting started guide on building your first `Blocks`, creating a `FlowSchema` and executing it using a `ComputeEngine`, save it using a `SchemaManager`.\n\n**Getting Started** : [find it here](https://barfi.ai/docs/getting_started)\n\n## Migration from v0\n\nIf you were using the versions <= 0.7.0, a migration guide is being written. For using version >= 1.0.0, conceptually all the concepts remain with a minor API changes. v1.0.0 introduces a stronger type checking mechanism, and decouples and `SchemaManager` and `ComputeEngine` from the UI by providing separate classes to run those functions. You can check the API docs to get familiarized on how to use them. \n\n## Under the hood\n\nThe Flow Editor UI is built using [ReactFlow](https://reactflow.dev/).",
"bugtrack_url": null,
"license": "MIT",
"summary": "Graphical programming framework for AI and data apps.",
"version": "1.0.0",
"project_urls": {
"Documentation": "https://github.com/krish-adi/barfi",
"Homepage": "https://github.com/krish-adi/barfi",
"Repository": "https://github.com/krish-adi/barfi"
},
"split_keywords": [
"python",
" streamlit",
" graphical programming",
" ai",
" llm"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "0f7493e60bade00719f7512c568259088120cc3d73fb8cc2cb1cccb4c9d6cc17",
"md5": "2571aa506c2c2dc1c5d2273f66f7d6c0",
"sha256": "fe3b70bd1d6c37defe0698e441b527e98e97fef79257655df654f79a79b6b562"
},
"downloads": -1,
"filename": "barfi-1.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "2571aa506c2c2dc1c5d2273f66f7d6c0",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "!=2.7.*,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,!=3.7.*,>=3.8",
"size": 906221,
"upload_time": "2025-01-06T03:50:19",
"upload_time_iso_8601": "2025-01-06T03:50:19.685388Z",
"url": "https://files.pythonhosted.org/packages/0f/74/93e60bade00719f7512c568259088120cc3d73fb8cc2cb1cccb4c9d6cc17/barfi-1.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "64cdbfb9de4c1da3faa5cd2a583c3adea46ffe9fbe320b4800287e6df3700810",
"md5": "ac2df2403e1585ff50bfec0ffa6cfe0f",
"sha256": "bed8da8d82dcf553ac20eff51e48df25e002160a486275122e32a3884ba6f5bb"
},
"downloads": -1,
"filename": "barfi-1.0.0.tar.gz",
"has_sig": false,
"md5_digest": "ac2df2403e1585ff50bfec0ffa6cfe0f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "!=2.7.*,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,!=3.7.*,>=3.8",
"size": 894085,
"upload_time": "2025-01-06T03:50:22",
"upload_time_iso_8601": "2025-01-06T03:50:22.610987Z",
"url": "https://files.pythonhosted.org/packages/64/cd/bfb9de4c1da3faa5cd2a583c3adea46ffe9fbe320b4800287e6df3700810/barfi-1.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-06 03:50:22",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "krish-adi",
"github_project": "barfi",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "barfi"
}