backend.ai-webserver-23.3.1
23.3.1
23.3.0a4
23.3.0a3
23.3.0a2
23.3.0a1
23.3.0.dev0
23.3.0
22.9.9
22.9.8
22.9.7
22.9.6
22.9.5
22.9.4
22.9.3
22.9.21
22.9.20
22.9.2
22.9.19
22.9.18
22.9.17
22.9.16
22.9.15
22.9.14
22.9.13
22.9.12
22.9.11
22.9.10
22.9.1
22.9.0b6
22.9.0b5
22.9.0b4
22.9.0b3
22.9.0b2
22.9.0b1
22.9.0
22.6.0b4
22.6.0b3
22.6.0b2
22.6.0b1
22.6.0.dev4
22.6.0.dev2
22.6.0.dev1
22.6.0.dev0
22.3.9
22.3.8
22.3.7
22.3.6
22.3.5
22.3.4rc1
22.3.4
22.3.2
22.3.14
22.3.13
22.3.12
22.3.11
22.3.10
22.3.0b1
22.3.0a1
22.3.0
21.9.5
21.9.4
21.9.3
21.9.1
21.9.0
21.3.9
21.3.8
21.3.7
21.3.6
21.3.5
21.3.4
21.3.3
21.3.2
21.3.14
21.3.12
21.3.11
21.3.10
21.3.1.post0
21.3.1
21.3.0.post1
20.9.9
20.9.8
20.9.19
20.9.18
20.9.17
20.9.16
20.9.15
20.9.14
20.9.13
20.9.12
20.9.11
20.9.10
23.3.1
23.3.0a4
23.3.0a3
23.3.0a2
23.3.0a1
23.3.0
22.9.9
22.9.8
22.9.7
22.9.6
22.9.5
22.9.4
22.9.3
22.9.21
22.9.20
22.9.2
22.9.19
22.9.18
22.9.17
22.9.16
22.9.15
22.9.14
22.9.13
22.9.12
22.9.11
22.9.10
22.9.1
22.9.0b6
22.9.0b5
22.9.0b4
22.9.0b3
22.9.0b2
22.9.0b1
22.9.0
22.6.0b4
22.6.0b3
22.6.0b2
22.6.0b1
22.6.0.dev4
22.6.0.dev2
22.3.9
22.3.8
22.3.7
22.3.6
22.3.5
22.3.4rc1
22.3.4
22.3.2
22.3.14
22.3.13
22.3.12
22.3.11
22.3.10
22.3.0b1
22.3.0a1
22.3.0
21.9.5
21.9.4
21.9.3
21.9.1
21.9.0
21.3.9
21.3.8
21.3.7
21.3.6
21.3.5
21.3.4
21.3.3
21.3.2
21.3.14
21.3.12
21.3.11
21.3.10
21.3.1.post0
21.3.1
21.3.0.post1
20.9.9
20.9.8
20.9.19
20.9.18
20.9.17
20.9.16
20.9.15
20.9.14
20.9.13
20.9.12
20.9.11
20.9.10
توضیحات
Backend.AI WebUI Host
| ویژگی | مقدار |
|---|---|
| سیستم عامل | POSIX :: Linux |
| نام فایل | backend.ai-webserver-23.3.1 |
| نام | backend.ai-webserver |
| نسخه کتابخانه | 23.3.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Lablup Inc. and contributors |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/lablup/backend.ai |
| آدرس اینترنتی | https://pypi.org/project/backend.ai-webserver/ |
| مجوز | LGPLv3 |
# Backend.AI Web Server
[](https://badge.fury.io/gh/lablup%2Fbackend.ai-webserver) [](https://badge.fury.io/py/backend.ai-webserver)
A webapp hosting daemon which serves our `webui` as a SPA and proxies API requests
## Installation
Prepare a Python virtualenv (Python 3.9 or higher) and a Redis server (6.2 or higher).
```console
$ git clone https://github.com/lablup/backend.ai-webserver webserver
$ cd webserver
$ pip install -U -e .
$ cp webserver.sample.conf webserver.conf
```
## Mode
If `service.mode` is set "webui" (the default), the webserver handles
PWA-style fallbacks (e.g., serving `index.html` when there are no matching
files for the requested URL path).
The PWA must exclude `/server` and `/func` URL prefixes from its own routing
to work with the webserver's web sessions and the API proxy.
If it is set "static", the webserver serves the static files as-is,
without any fallbacks or hooking, while preserving the `/server` and `/func`
prefixed URLs and their functionalities.
If you want to serve web UI in webserver with "webui" mode, prepare static web UI source by choosing one of the followings.
### Option 1: Build web UI from source
Build **[backend.ai-webui](https://github.com/lablup/backend.ai-webui)** and copy all files under `build/bundle`
into the `src/ai/backend/web/static` directory.
### Option 2: Use pre-built web UI
To download and deploy web UI from pre-built source, do the following:
```console
git submodule init
git submodule update
cd src/ai/backend/web/static
git checkout main # or target branch
git fetch
git pull
```
### Setup configuration for webserver
You don't have to write `config.toml` for the web UI as this webserver auto-generates it on-the-fly.
Edit `webserver.conf` to match with your environment.
## Usage
To execute web server, run command below. (for debugging, append a `--debug` flag)
```console
$ python -m ai.backend.web.server
```
نیازمندی
| مقدار | نام |
|---|---|
| ~=3.1.2 | Jinja2 |
| ~=0.7 | aiohttp-cors |
| ~=3.8.1 | aiohttp |
| ~=1.6.1 | aiotools |
| ==23.03.1 | backend.ai-cli |
| ==23.03.1 | backend.ai-client |
| ==23.03.1 | backend.ai-common |
| ==23.03.1 | backend.ai-plugin |
| >=7.1.2 | click |
| ~=15.0 | coloredlogs |
| >=3.14.1 | pycryptodome |
| ~=4.3.4 | redis[hiredis] |
| ~=1.2.2 | setproctitle |
| ~=2.0.1 | tomli |
| ~=2.1 | trafaret |
| - | types-pkg-resources |
| >=1.7 | yarl |
| >=0.17 | uvloop |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.11,<3.12 | Python |
نحوه نصب
نصب پکیج whl backend.ai-webserver-23.3.1:
pip install backend.ai-webserver-23.3.1.whl
نصب پکیج tar.gz backend.ai-webserver-23.3.1:
pip install backend.ai-webserver-23.3.1.tar.gz