README.md 898 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
```bash
zxl's avatar
zxl committed
15
git clone https://csst-tb.bao.ac.cn/code/zhangxiaoli/pyscalebox.git
zxl's avatar
zxl committed
16
17
18
19
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
```bash
zxl's avatar
zxl committed
24
sh -c "$(curl -fsSL https://csst-tb.bao.ac.cn/code/zhangxiaoli/pyscalebox/-/raw/main/csst-pyscalebox-install.sh)"
zxl's avatar
zxl committed
25
```
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