[PR #267] [MERGED] feat: add HTTP api to interact with Manager #362

Closed
opened 2026-02-16 01:17:03 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/run-llama/llama_deploy/pull/267
Author: @masci
Created: 9/24/2024
Status: Merged
Merged: 9/26/2024
Merged by: @masci

Base: mainHead: massi/http


📝 Commits (8)

  • 8f8453a feat: add HTTP api to interact with Manager
  • 4ba31c5 skip cleanup if folder was never used
  • 5ed0cb2 better stubs
  • 2a9bb20 install python-multipart for file upload support
  • 62ce962 update lockfile
  • a2e267c exclude files from coverage count
  • 883e528 add unit tests
  • 5e9e2e3 better variable naming

📊 Changes

19 files changed (+467 additions, -216 deletions)

View changed files

📝 llama_deploy/apiserver/__init__.py (+2 -1)
llama_deploy/apiserver/__main__.py (+5 -0)
llama_deploy/apiserver/app.py (+24 -0)
📝 llama_deploy/apiserver/config_parser.py (+6 -0)
📝 llama_deploy/apiserver/deployment.py (+18 -9)
llama_deploy/apiserver/routers/__init__.py (+5 -0)
llama_deploy/apiserver/routers/deploy.py (+45 -0)
llama_deploy/apiserver/routers/status.py (+20 -0)
llama_deploy/apiserver/server.py (+27 -0)
📝 poetry.lock (+206 -195)
📝 pyproject.toml (+6 -0)
📝 tests/apiserver/conftest.py (+9 -2)
tests/apiserver/routers/__init__.py (+0 -0)
tests/apiserver/routers/test_deploy.py (+40 -0)
tests/apiserver/routers/test_status.py (+11 -0)
tests/apiserver/test_app.py (+7 -0)
📝 tests/apiserver/test_config_parser.py (+12 -2)
📝 tests/apiserver/test_deployment.py (+7 -7)
tests/apiserver/test_server.py (+17 -0)

📄 Description

This PR adds an HTTP API implemented with FastAPI in front of the deployment Manager.

To run the server, from the llama_deploy folder:

python -m apiserver

To create a deployment:

curl -X POST -F "config_file=@tests/apiserver/data/git_service.yaml" http://localhost:4501/deployments/create/

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/run-llama/llama_deploy/pull/267 **Author:** [@masci](https://github.com/masci) **Created:** 9/24/2024 **Status:** ✅ Merged **Merged:** 9/26/2024 **Merged by:** [@masci](https://github.com/masci) **Base:** `main` ← **Head:** `massi/http` --- ### 📝 Commits (8) - [`8f8453a`](https://github.com/run-llama/llama_deploy/commit/8f8453a437219f947d8c41d2476307c7021480e9) feat: add HTTP api to interact with Manager - [`4ba31c5`](https://github.com/run-llama/llama_deploy/commit/4ba31c5e4c9d8653bb654ff8256ddff9e3800d96) skip cleanup if folder was never used - [`5ed0cb2`](https://github.com/run-llama/llama_deploy/commit/5ed0cb20b93bd8a267f0184cd08d3602f24dd9e8) better stubs - [`2a9bb20`](https://github.com/run-llama/llama_deploy/commit/2a9bb2001d3cac8d4da2ef68b857ab135d47cabb) install python-multipart for file upload support - [`62ce962`](https://github.com/run-llama/llama_deploy/commit/62ce962cd730df4cbf51df055fef19d6cfe5ccfe) update lockfile - [`a2e267c`](https://github.com/run-llama/llama_deploy/commit/a2e267c3ec3d931de6208b9d375aa0037df523e1) exclude files from coverage count - [`883e528`](https://github.com/run-llama/llama_deploy/commit/883e52873775f487e1c70eb5b73314b75e803dfc) add unit tests - [`5e9e2e3`](https://github.com/run-llama/llama_deploy/commit/5e9e2e313a811ef11329fc9a6c9680737ccdde3f) better variable naming ### 📊 Changes **19 files changed** (+467 additions, -216 deletions) <details> <summary>View changed files</summary> 📝 `llama_deploy/apiserver/__init__.py` (+2 -1) ➕ `llama_deploy/apiserver/__main__.py` (+5 -0) ➕ `llama_deploy/apiserver/app.py` (+24 -0) 📝 `llama_deploy/apiserver/config_parser.py` (+6 -0) 📝 `llama_deploy/apiserver/deployment.py` (+18 -9) ➕ `llama_deploy/apiserver/routers/__init__.py` (+5 -0) ➕ `llama_deploy/apiserver/routers/deploy.py` (+45 -0) ➕ `llama_deploy/apiserver/routers/status.py` (+20 -0) ➕ `llama_deploy/apiserver/server.py` (+27 -0) 📝 `poetry.lock` (+206 -195) 📝 `pyproject.toml` (+6 -0) 📝 `tests/apiserver/conftest.py` (+9 -2) ➕ `tests/apiserver/routers/__init__.py` (+0 -0) ➕ `tests/apiserver/routers/test_deploy.py` (+40 -0) ➕ `tests/apiserver/routers/test_status.py` (+11 -0) ➕ `tests/apiserver/test_app.py` (+7 -0) 📝 `tests/apiserver/test_config_parser.py` (+12 -2) 📝 `tests/apiserver/test_deployment.py` (+7 -7) ➕ `tests/apiserver/test_server.py` (+17 -0) </details> ### 📄 Description This PR adds an HTTP API implemented with FastAPI in front of the deployment Manager. To run the server, from the llama_deploy folder: ``` python -m apiserver ``` To create a deployment: ``` curl -X POST -F "config_file=@tests/apiserver/data/git_service.yaml" http://localhost:4501/deployments/create/ ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 01:17:03 -05:00
yindo closed this issue 2026-02-16 01:17:03 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: run-llama/llama_deploy#362