add export flow on API modal and fix .env bug (#1896)

* feat(codeTabsComponent): add ExportModal component to enable exporting flow data in CodeTabsComponent

* refactor(service.py): update VariableService to handle environment variables with
whitespace by stripping the value before creating the variable

* chore: Update package versions to 1.0.0a33 and 0.0.44 for 'langflow' and 'langflow-base' respectively

* make lock
This commit is contained in:
anovazzi1 2024-05-14 19:23:36 -03:00 • committed by GitHub
commit 14ff98213d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 138 additions and 114 deletions

View file

@ -33,10 +33,13 @@ class VariableService(Service):
select(Variable).where(Variable.user_id == user_id, Variable.name == var)
).first():
try:
value = os.environ[var]
if isinstance(value, str):
value = value.strip()
self.create_variable(
user_id=user_id,
name=var,
value=os.environ[var],
value=value,
default_fields=[],
_type="Credential",
session=session,

View file

@ -1357,13 +1357,13 @@ source = ["Cython (>=3.0.10)"]
[[package]]
name = "mako"
version = "1.3.3"
version = "1.3.5"
description = "A super-fast templating language that borrows the best ideas from the existing templating languages."
optional = false
python-versions = ">=3.8"
files = [
{file = "Mako-1.3.3-py3-none-any.whl", hash = "sha256:5324b88089a8978bf76d1629774fcc2f1c07b82acdf00f4c5dd8ceadfffc4b40"},
{file = "Mako-1.3.3.tar.gz", hash = "sha256:e16c01d9ab9c11f7290eef1cfefc093fb5a45ee4a3da09e2fec2e4d1bae54e73"},
{file = "Mako-1.3.5-py3-none-any.whl", hash = "sha256:260f1dbc3a519453a9c856dedfe4beb4e50bd5a26d96386cb6c80856556bb91a"},
{file = "Mako-1.3.5.tar.gz", hash = "sha256:48dbc20568c1d276a2698b36d968fa76161bf127194907ea6fc594fa81f943bc"},
]
[package.dependencies]

View file

@ -1,6 +1,6 @@
[tool.poetry]
name = "langflow-base"
version = "0.0.43"
version = "0.0.44"
description = "A Python package with a built-in web application"
authors = ["Langflow <contact@langflow.org>"]
maintainers = [