README.md 891 Bytes
Newer Older
zxl's avatar
zxl committed
1
2
3
4
5
6
7
8
9
# pyscalebox APIs library

## Prepare
grpc need the python3
`python3` can be installed with the following commdand:
```bash
yum install python3 python3-pip
python3 -m pip install --upgrade pip==20.3.4
python3 -m pip install --upgrade setuptools
Zhang Xiaoli's avatar
Zhang Xiaoli committed
10
11
```
## Installation
zxl's avatar
zxl committed
12
`pyscalebox` can be installed with the following command:
Zhang Xiaoli's avatar
Zhang Xiaoli committed
13

zxl's avatar
zxl committed
14
15
16
17
18
19
```bash
git clone https://hub.cstcloud.cn/git/csst/pyscalebox.git
cd pyscalebox
python3 -m pip install -r requirements.txt
python3 setup.py install
```
Zhang Xiaoli's avatar
Zhang Xiaoli committed
20

zxl's avatar
zxl committed
21
`pyscalebox` and relevant packages could be installed by running one of the following commands in your terminal.
Zhang Xiaoli's avatar
Zhang Xiaoli committed
22

zxl's avatar
zxl committed
23
24
25
```bash
sh -c "$(curl -fsSL https://csst-tb.bao.ac.cn/code/zhangxiaoli/pytscalebox/-/raw/master/csst-pyscalebox-install.sh)"
```
Zhang Xiaoli's avatar
Zhang Xiaoli committed
26
27


zxl's avatar
zxl committed
28
29
30
## Configuration
- CSST_PIPELINE_GRPC_SERVER = scalebox plat server    # default: 122.96.144.152:39092
- CSST_ADML2_JOB_ID = Admin level2 ID                 # default: 2