A Neuro-San powered Smart Agent Network Framework
Project description
nsflow - A FastAPI based client for NeuroSan
Note: To see and use how nsflow client works along with neuro-san library, please visit https://github.com/cognizant-ai-lab/neuro-san-studio
nsflow is a react-based developer-oriented client that enables users to explore, visualize, and interact with smart agent networks. It integrates with NeuroSan for intelligent agent-based interactions.
Installation & Running nsflow
nsflow can be installed and run in two different ways:
1️⃣ Run nsflow using pypi package
To simplify execution, nsflow provides a CLI command to start both the backend and frontend simultaneously.
Step 1: Create and source a virtual environment
python -m venv .venv
source .venv/bin/activate
Step 2: Install nsflow from pip
pip install nsflow
Step 3: Run Everything with a Single Command
python -m nsflow.run
By default, this will start:
- backend (FastAPI + NeuroSan) here:
http://127.0.0.1:4173/docsorhttp://127.0.0.1:4173/redoc - frontend (React) here:
http://127.0.0.1:4173
2️⃣ Development & Contribution (Manually Start Frontend & Backend)
If you want to contribute, ensure you have the necessary dependencies installed. To start the frontend and backend separately, follow these steps:
Step 1: Clone the Repository
git clone https://github.com/cognizant-ai-lab/nsflow.git
cd nsflow
Step 2: Install Dependencies
- Make sure you have python (preferably Python 3.12) installed.
python -m venv .venv source .venv/bin/activate pip install -r requirements.txt pip install -r requirements-dev.txt
Step 3: Start the Backend in dev mode & Frontend separately
-
Ensure that you have a few example hocon files in your
registriesand the same mapped inregistries/manifest. -
[Optional] Ensure that you have the necessary coded tools in the
coded_toolsdir. -
From the root start Backend:
python -m nsflow.run --dev
-
Start Frontend:
- Ensure that you have Node.js (with Yarn) installed.
- Follow the instructions to setup the frontend here: ./nsflow/frontend/README.md
- On another terminal window
cd nsflow/frontend; yarn install yarn dev
-
By default:
- backend will be available at:
http://127.0.0.1:8005 - frontend will be available at:
http://127.0.0.1:5173 - You may change the host/port configs using environment variables for fastapi (refer run.py) and using frontend/.env.development for react app
- backend will be available at:
Step 4: To make sure your changes to frontend take effect in the wheel, run the script
- To build the Frontend
sh build_scripts/build_frontend.sh
Note: The above script's output should show that ./nsflow dir contains a module prebuilt_frontend
- To build and test the wheel locally
sh build_scripts/build_wheel.sh
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nsflow-0.5.14.tar.gz.
File metadata
- Download URL: nsflow-0.5.14.tar.gz
- Upload date:
- Size: 239.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dba46c8abf9d526aeb7b37d1b446007bce41d505807d75e9bc4f1eeda4033e9b
|
|
| MD5 |
3583756130869462310bae27068424d3
|
|
| BLAKE2b-256 |
1eb3f240b27d834b473d077427b06068ebd5793939bbf19c67915174ae7bbbdf
|
File details
Details for the file nsflow-0.5.14-py3-none-any.whl.
File metadata
- Download URL: nsflow-0.5.14-py3-none-any.whl
- Upload date:
- Size: 246.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f72ac96bba82cea57bdbe92854f6fe677bf1152755bbb160671458e1904227b
|
|
| MD5 |
9c04de8049d381ee20d8e53c472edfbf
|
|
| BLAKE2b-256 |
d49cf5ce345663d7c06ee1b33e0889b83589cb6c21fdc9443d90c0d7e6a97822
|