README.md 927 Bytes
Newer Older
Wei Shoulin's avatar
Wei Shoulin committed
1
2
3
4
5
6
7
8
# CSST DFS APIs library

## Introduction

This package provides APIs to access csst's files and databases.

## Installation

Wei Shoulin's avatar
Wei Shoulin committed
9
`csst-dfs-api` can be installed with the following command: 
Wei Shoulin's avatar
Wei Shoulin committed
10
11

```bash
Wei Shoulin's avatar
ephem    
Wei Shoulin committed
12
13
14
git clone https://github.com/astronomical-data-processing/csst-dfs-api.git
cd csst-dfs-api
pip install -r requirements.txt
Wei Shoulin's avatar
Wei Shoulin committed
15
16
17
python setup.py install
```

Wei Shoulin's avatar
Wei Shoulin committed
18
19
20
21
22
23
24
`csst-dfs-api` and relevant packages could be installed by running one of the following commands in your terminal.

```bash
sh -c "$(curl -fsSL https://raw.fastgit.org/astronomical-data-processing/csst-dfs-api/master/tools/csst-dfs-api-install.sh)" - v0.0.2
```


Wei Shoulin's avatar
Wei Shoulin committed
25
26
27
## Configuration

enviroment variables
Wei Shoulin's avatar
ephem    
Wei Shoulin committed
28
29
30
- CSST_DFS_API_MODE = local or cluster               # default: local
- CSST_LOCAL_FILE_ROOT = [a local file directory]    # required if DFS_API_MODE = local,  default: /opt/temp/csst
- CSST_DFS_GATEWAY = [gateway server's address]       # required if DFS_API_MODE = cluster,