Build applications that make decisions (chatbots, agents, simulations, etc...). Monitor, trace, persist, and execute on your own infrastructure.
Python aiburrchatbot-frameworkdagsgenerative-aigraphshacktoberfestllmopsllmsmlopspersistent-data-structurestate-machinestate-managementvisibility
Fixes for pypi distribution
elijahbenizzyb933eab49a55
diff --git a/burr/core/application.py b/burr/core/application.pyindex ae3539b9..e08bd80c 100644--- a/burr/core/application.py+++ b/burr/core/application.py@@ -309,7 +309,7 @@ class Application:except ModuleNotFoundError:logger.exception(" graphviz is required for visualizing the application graph. Install it with:"- '\n\n pip install "burr[visualization]" or pip install graphviz \n\n'+ '\n\n pip install "burr[graphviz]" or pip install graphviz \n\n')returndigraph_attr = dict(diff --git a/burr/integrations/streamlit.py b/burr/integrations/streamlit.pyindex 8b4ab70f..f7f77565 100644--- a/burr/integrations/streamlit.py+++ b/burr/integrations/streamlit.py@@ -1,3 +1,4 @@+import colorsysimport dataclassesimport inspectimport json@@ -9,15 +10,13 @@ from burr.integrations.base import require_pluginfrom burr.integrations.hamilton import Hamilton, StateSourcetry:- import colorsys-import graphvizimport matplotlib.colors as mcimport streamlit as stexcept ImportError as e:require_plugin(e,- ["streamlit", "graphviz", "colorsys", "matplotlib"],+ ["streamlit", "graphviz", "matplotlib"],"streamlit",)diff --git a/docs/getting_started/install.rst b/docs/getting_started/install.rstindex 2bb7d2c6..0d32cd08 100644--- a/docs/getting_started/install.rst+++ b/docs/getting_started/install.rst@@ -3,17 +3,17 @@ Installing==========Burr requires almost no dependencies. Every "extra"/"plugin" is an additional install target. Note, if you're using ``zsh``,-you'll need to add quotes around the install target, like `pip install "burr[visualization]"`.+you'll need to add quotes around the install target, like `pip install "burr[graphviz]"`... code-block:: bashpip install burr-To get visualization capabilities, you can install the `burr[visualization]` extra:+To get visualization capabilities, you can install the `burr[graphviz]` extra:.. code-block:: bash- pip install burr[visualization]+ pip install burr[graphviz]And to visualize your state machines on streamlit, you can install the `burr[streamlit]` extra:diff --git a/docs/getting_started/simple-example.rst b/docs/getting_started/simple-example.rstindex c87314aa..98b93dd7 100644--- a/docs/getting_started/simple-example.rst+++ b/docs/getting_started/simple-example.rst@@ -59,7 +59,7 @@ Next, let's put together our application. To do this, we'll use an ``Application)-We can visualize the application (note you need ``burr[visualization]`` installed):+We can visualize the application (note you need ``burr[graphviz]`` installed):.. code-block:: pythondiff --git a/examples/cowsay/requirements.txt b/examples/cowsay/requirements.txtindex 3155b767..ee7475ae 100644--- a/examples/cowsay/requirements.txt+++ b/examples/cowsay/requirements.txt@@ -1,2 +1,2 @@+burr[streamlit,graphviz]cowsay-dw-burr[streamlit]diff --git a/pyproject.toml b/pyproject.tomlindex 9316885a..3327cb5e 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"[project]name = "burr"-version = "0.0.1"+version = "0.1.0"dependencies = ["sf-hamilton>=1.47.0"]@@ -28,7 +28,9 @@ classifiers = [[project.optional-dependencies]streamlit = [- "streamlit"+ "streamlit",+ "graphviz",+ "matplotlib"]graphviz = [@@ -50,13 +52,10 @@ documentation = [][tool.poetry.packages]-include = [- { include = "burr", from = "." },-]-+py_modules = ["burr"][project.urls]Homepage = "https://github.com/dagworks-inc/burr"Documentation = "https://github.com/dagworks-inc/burr"Repository = "https://github.com/dagworks-inc/burr"-"Bug Tracker" = "https://github.com/dagworks-inc/burr"\ No newline at end of file+"Bug Tracker" = "https://github.com/dagworks-inc/burr"