bflower


Namebflower JSON
Version 1.0.0a32 PyPI version JSON
download
home_pagehttps://github.com/BNationsDEV/BFlower
SummaryA Python package with a built-in web application
upload_time2024-05-22 11:22:01
maintainerCarlos Coelho
docs_urlNone
authorLangflow
requires_python<3.13,>=3.10
licenseMIT
keywords nlp langchain openai gpt gui
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <!-- markdownlint-disable MD030 -->

# [![Langflow](https://github.com/langflow-ai/langflow/blob/dev/docs/static/img/hero.png)](https://www.langflow.org)

### [Langflow](https://www.langflow.org) is a new, visual way to build, iterate and deploy AI apps.

# ⚑️ Documentation and Community

- [Documentation](https://docs.langflow.org)
- [Discord](https://discord.com/invite/EqksyE2EX9)

# πŸ“¦ Installation

You can install Langflow with pip:

```shell
# Make sure you have Python 3.10 installed on your system.
# Install the pre-release version
python -m pip install langflow --pre --force-reinstall

# or stable version
python -m pip install langflow -U
```

Then, run Langflow with:

```shell
python -m langflow run
```

You can also preview Langflow in [HuggingFace Spaces](https://huggingface.co/spaces/Langflow/Langflow-Preview). [Clone the space using this link](https://huggingface.co/spaces/Langflow/Langflow-Preview?duplicate=true), to create your own Langflow workspace in minutes.

# 🎨 Creating Flows

Creating flows with Langflow is easy. Simply drag components from the sidebar onto the canvas and connect them to start building your application.

Explore by editing prompt parameters, grouping components into a single high-level component, and building your own Custom Components.

Once you’re done, you can export your flow as a JSON file.

Load the flow with:

```python
from langflow.load import run_flow_from_json

results = run_flow_from_json("path/to/flow.json", input_value="Hello, World!")
```

# πŸ–₯️ Command Line Interface (CLI)

Langflow provides a command-line interface (CLI) for easy management and configuration.

## Usage

You can run the Langflow using the following command:

```shell
langflow run [OPTIONS]
```

Each option is detailed below:

- `--help`: Displays all available options.
- `--host`: Defines the host to bind the server to. Can be set using the `LANGFLOW_HOST` environment variable. The default is `127.0.0.1`.
- `--workers`: Sets the number of worker processes. Can be set using the `LANGFLOW_WORKERS` environment variable. The default is `1`.
- `--timeout`: Sets the worker timeout in seconds. The default is `60`.
- `--port`: Sets the port to listen on. Can be set using the `LANGFLOW_PORT` environment variable. The default is `7860`.
- `--config`: Defines the path to the configuration file. The default is `config.yaml`.
- `--env-file`: Specifies the path to the .env file containing environment variables. The default is `.env`.
- `--log-level`: Defines the logging level. Can be set using the `LANGFLOW_LOG_LEVEL` environment variable. The default is `critical`.
- `--components-path`: Specifies the path to the directory containing custom components. Can be set using the `LANGFLOW_COMPONENTS_PATH` environment variable. The default is `langflow/components`.
- `--log-file`: Specifies the path to the log file. Can be set using the `LANGFLOW_LOG_FILE` environment variable. The default is `logs/langflow.log`.
- `--cache`: Selects the type of cache to use. Options are `InMemoryCache` and `SQLiteCache`. Can be set using the `LANGFLOW_LANGCHAIN_CACHE` environment variable. The default is `SQLiteCache`.
- `--dev/--no-dev`: Toggles the development mode. The default is `no-dev`.
- `--path`: Specifies the path to the frontend directory containing build files. This option is for development purposes only. Can be set using the `LANGFLOW_FRONTEND_PATH` environment variable.
- `--open-browser/--no-open-browser`: Toggles the option to open the browser after starting the server. Can be set using the `LANGFLOW_OPEN_BROWSER` environment variable. The default is `open-browser`.
- `--remove-api-keys/--no-remove-api-keys`: Toggles the option to remove API keys from the projects saved in the database. Can be set using the `LANGFLOW_REMOVE_API_KEYS` environment variable. The default is `no-remove-api-keys`.
- `--install-completion [bash|zsh|fish|powershell|pwsh]`: Installs completion for the specified shell.
- `--show-completion [bash|zsh|fish|powershell|pwsh]`: Shows completion for the specified shell, allowing you to copy it or customize the installation.
- `--backend-only`: This parameter, with a default value of `False`, allows running only the backend server without the frontend. It can also be set using the `LANGFLOW_BACKEND_ONLY` environment variable.
- `--store`: This parameter, with a default value of `True`, enables the store features, use `--no-store` to deactivate it. It can be configured using the `LANGFLOW_STORE` environment variable.

These parameters are important for users who need to customize the behavior of Langflow, especially in development or specialized deployment scenarios.

### Environment Variables

You can configure many of the CLI options using environment variables. These can be exported in your operating system or added to a `.env` file and loaded using the `--env-file` option.

A sample `.env` file named `.env.example` is included with the project. Copy this file to a new file named `.env` and replace the example values with your actual settings. If you're setting values in both your OS and the `.env` file, the `.env` settings will take precedence.

# Deployment

## Deploy Langflow on Google Cloud Platform

Follow our step-by-step guide to deploy Langflow on Google Cloud Platform (GCP) using Google Cloud Shell. The guide is available in the [**Langflow in Google Cloud Platform**](GCP_DEPLOYMENT.md) document.

Alternatively, click the **"Open in Cloud Shell"** button below to launch Google Cloud Shell, clone the Langflow repository, and start an **interactive tutorial** that will guide you through the process of setting up the necessary resources and deploying Langflow on your GCP project.

[![Open in Cloud Shell](https://gstatic.com/cloudssh/images/open-btn.svg)](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/langflow-ai/langflow&working_dir=scripts/gcp&shellonly=true&tutorial=walkthroughtutorial_spot.md)

## Deploy on Railway

[![Deploy on Railway](https://railway.app/button.svg)](https://railway.app/template/JMXEWp?referralCode=MnPSdg)

## Deploy on Render

<a href="https://render.com/deploy?repo=https://github.com/langflow-ai/langflow/tree/main">
<img src="https://render.com/images/deploy-to-render-button.svg" alt="Deploy to Render" />
</a>

# πŸ‘‹ Contributing

We welcome contributions from developers of all levels to our open-source project on GitHub. If you'd like to contribute, please check our [contributing guidelines](./CONTRIBUTING.md) and help make Langflow more accessible.

---

[![Star History Chart](https://api.star-history.com/svg?repos=langflow-ai/langflow&type=Timeline)](https://star-history.com/#langflow-ai/langflow&Date)

# 🌟 Contributors

[![langflow contributors](https://contrib.rocks/image?repo=langflow-ai/langflow)](https://github.com/langflow-ai/langflow/graphs/contributors)

# πŸ“„ License

Langflow is released under the MIT License. See the [LICENSE](LICENSE) file for details.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/BNationsDEV/BFlower",
    "name": "bflower",
    "maintainer": "Carlos Coelho",
    "docs_url": null,
    "requires_python": "<3.13,>=3.10",
    "maintainer_email": "carlos@langflow.org",
    "keywords": "nlp, langchain, openai, gpt, gui",
    "author": "Langflow",
    "author_email": "contact@langflow.org",
    "download_url": "https://files.pythonhosted.org/packages/45/6f/c295272f9e5da9cb4f7608695ad756c505d1519db9a226a77312617129dd/bflower-1.0.0a32.tar.gz",
    "platform": null,
    "description": "<!-- markdownlint-disable MD030 -->\n\n# [![Langflow](https://github.com/langflow-ai/langflow/blob/dev/docs/static/img/hero.png)](https://www.langflow.org)\n\n### [Langflow](https://www.langflow.org) is a new, visual way to build, iterate and deploy AI apps.\n\n# \u26a1\ufe0f Documentation and Community\n\n- [Documentation](https://docs.langflow.org)\n- [Discord](https://discord.com/invite/EqksyE2EX9)\n\n# \ud83d\udce6 Installation\n\nYou can install Langflow with pip:\n\n```shell\n# Make sure you have Python 3.10 installed on your system.\n# Install the pre-release version\npython -m pip install langflow --pre --force-reinstall\n\n# or stable version\npython -m pip install langflow -U\n```\n\nThen, run Langflow with:\n\n```shell\npython -m langflow run\n```\n\nYou can also preview Langflow in [HuggingFace Spaces](https://huggingface.co/spaces/Langflow/Langflow-Preview). [Clone the space using this link](https://huggingface.co/spaces/Langflow/Langflow-Preview?duplicate=true), to create your own Langflow workspace in minutes.\n\n# \ud83c\udfa8 Creating Flows\n\nCreating flows with Langflow is easy. Simply drag components from the sidebar onto the canvas and connect them to start building your application.\n\nExplore by editing prompt parameters, grouping components into a single high-level component, and building your own Custom Components.\n\nOnce you\u2019re done, you can export your flow as a JSON file.\n\nLoad the flow with:\n\n```python\nfrom langflow.load import run_flow_from_json\n\nresults = run_flow_from_json(\"path/to/flow.json\", input_value=\"Hello, World!\")\n```\n\n# \ud83d\udda5\ufe0f Command Line Interface (CLI)\n\nLangflow provides a command-line interface (CLI) for easy management and configuration.\n\n## Usage\n\nYou can run the Langflow using the following command:\n\n```shell\nlangflow run [OPTIONS]\n```\n\nEach option is detailed below:\n\n- `--help`: Displays all available options.\n- `--host`: Defines the host to bind the server to. Can be set using the `LANGFLOW_HOST` environment variable. The default is `127.0.0.1`.\n- `--workers`: Sets the number of worker processes. Can be set using the `LANGFLOW_WORKERS` environment variable. The default is `1`.\n- `--timeout`: Sets the worker timeout in seconds. The default is `60`.\n- `--port`: Sets the port to listen on. Can be set using the `LANGFLOW_PORT` environment variable. The default is `7860`.\n- `--config`: Defines the path to the configuration file. The default is `config.yaml`.\n- `--env-file`: Specifies the path to the .env file containing environment variables. The default is `.env`.\n- `--log-level`: Defines the logging level. Can be set using the `LANGFLOW_LOG_LEVEL` environment variable. The default is `critical`.\n- `--components-path`: Specifies the path to the directory containing custom components. Can be set using the `LANGFLOW_COMPONENTS_PATH` environment variable. The default is `langflow/components`.\n- `--log-file`: Specifies the path to the log file. Can be set using the `LANGFLOW_LOG_FILE` environment variable. The default is `logs/langflow.log`.\n- `--cache`: Selects the type of cache to use. Options are `InMemoryCache` and `SQLiteCache`. Can be set using the `LANGFLOW_LANGCHAIN_CACHE` environment variable. The default is `SQLiteCache`.\n- `--dev/--no-dev`: Toggles the development mode. The default is `no-dev`.\n- `--path`: Specifies the path to the frontend directory containing build files. This option is for development purposes only. Can be set using the `LANGFLOW_FRONTEND_PATH` environment variable.\n- `--open-browser/--no-open-browser`: Toggles the option to open the browser after starting the server. Can be set using the `LANGFLOW_OPEN_BROWSER` environment variable. The default is `open-browser`.\n- `--remove-api-keys/--no-remove-api-keys`: Toggles the option to remove API keys from the projects saved in the database. Can be set using the `LANGFLOW_REMOVE_API_KEYS` environment variable. The default is `no-remove-api-keys`.\n- `--install-completion [bash|zsh|fish|powershell|pwsh]`: Installs completion for the specified shell.\n- `--show-completion [bash|zsh|fish|powershell|pwsh]`: Shows completion for the specified shell, allowing you to copy it or customize the installation.\n- `--backend-only`: This parameter, with a default value of `False`, allows running only the backend server without the frontend. It can also be set using the `LANGFLOW_BACKEND_ONLY` environment variable.\n- `--store`: This parameter, with a default value of `True`, enables the store features, use `--no-store` to deactivate it. It can be configured using the `LANGFLOW_STORE` environment variable.\n\nThese parameters are important for users who need to customize the behavior of Langflow, especially in development or specialized deployment scenarios.\n\n### Environment Variables\n\nYou can configure many of the CLI options using environment variables. These can be exported in your operating system or added to a `.env` file and loaded using the `--env-file` option.\n\nA sample `.env` file named `.env.example` is included with the project. Copy this file to a new file named `.env` and replace the example values with your actual settings. If you're setting values in both your OS and the `.env` file, the `.env` settings will take precedence.\n\n# Deployment\n\n## Deploy Langflow on Google Cloud Platform\n\nFollow our step-by-step guide to deploy Langflow on Google Cloud Platform (GCP) using Google Cloud Shell. The guide is available in the [**Langflow in Google Cloud Platform**](GCP_DEPLOYMENT.md) document.\n\nAlternatively, click the **\"Open in Cloud Shell\"** button below to launch Google Cloud Shell, clone the Langflow repository, and start an **interactive tutorial** that will guide you through the process of setting up the necessary resources and deploying Langflow on your GCP project.\n\n[![Open in Cloud Shell](https://gstatic.com/cloudssh/images/open-btn.svg)](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/langflow-ai/langflow&working_dir=scripts/gcp&shellonly=true&tutorial=walkthroughtutorial_spot.md)\n\n## Deploy on Railway\n\n[![Deploy on Railway](https://railway.app/button.svg)](https://railway.app/template/JMXEWp?referralCode=MnPSdg)\n\n## Deploy on Render\n\n<a href=\"https://render.com/deploy?repo=https://github.com/langflow-ai/langflow/tree/main\">\n<img src=\"https://render.com/images/deploy-to-render-button.svg\" alt=\"Deploy to Render\" />\n</a>\n\n# \ud83d\udc4b Contributing\n\nWe welcome contributions from developers of all levels to our open-source project on GitHub. If you'd like to contribute, please check our [contributing guidelines](./CONTRIBUTING.md) and help make Langflow more accessible.\n\n---\n\n[![Star History Chart](https://api.star-history.com/svg?repos=langflow-ai/langflow&type=Timeline)](https://star-history.com/#langflow-ai/langflow&Date)\n\n# \ud83c\udf1f Contributors\n\n[![langflow contributors](https://contrib.rocks/image?repo=langflow-ai/langflow)](https://github.com/langflow-ai/langflow/graphs/contributors)\n\n# \ud83d\udcc4 License\n\nLangflow is released under the MIT License. See the [LICENSE](LICENSE) file for details.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A Python package with a built-in web application",
    "version": "1.0.0a32",
    "project_urls": {
        "Documentation": "https://docs.langflow.org",
        "Homepage": "https://github.com/BNationsDEV/BFlower",
        "Repository": "https://github.com/BNationsDEV/BFlower"
    },
    "split_keywords": [
        "nlp",
        " langchain",
        " openai",
        " gpt",
        " gui"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b2058f6df64a19a69030fac56a57eb43fba4ec28db9524894a5c04a183a1fa7b",
                "md5": "68951d0936238c06d2196c46e9a3b2ed",
                "sha256": "ca690ccf6e30776f9679712ccf49c01f8cd2b98d34948fbd594fe030b60fd33b"
            },
            "downloads": -1,
            "filename": "bflower-1.0.0a32-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "68951d0936238c06d2196c46e9a3b2ed",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<3.13,>=3.10",
            "size": 6292,
            "upload_time": "2024-05-22T11:21:59",
            "upload_time_iso_8601": "2024-05-22T11:21:59.735106Z",
            "url": "https://files.pythonhosted.org/packages/b2/05/8f6df64a19a69030fac56a57eb43fba4ec28db9524894a5c04a183a1fa7b/bflower-1.0.0a32-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "456fc295272f9e5da9cb4f7608695ad756c505d1519db9a226a77312617129dd",
                "md5": "4f5c253f03bdc36012f3174d2696e37e",
                "sha256": "58eeee9f18f025014dabc2ce85eecf9da7327bfced2419e9225c55308697ed6f"
            },
            "downloads": -1,
            "filename": "bflower-1.0.0a32.tar.gz",
            "has_sig": false,
            "md5_digest": "4f5c253f03bdc36012f3174d2696e37e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<3.13,>=3.10",
            "size": 6846,
            "upload_time": "2024-05-22T11:22:01",
            "upload_time_iso_8601": "2024-05-22T11:22:01.792521Z",
            "url": "https://files.pythonhosted.org/packages/45/6f/c295272f9e5da9cb4f7608695ad756c505d1519db9a226a77312617129dd/bflower-1.0.0a32.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-22 11:22:01",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "BNationsDEV",
    "github_project": "BFlower",
    "github_not_found": true,
    "lcname": "bflower"
}
        
Elapsed time: 0.28118s