fir-api-cli-0.4.4
توضیحات
Package for exploring and downloading data from the FIR API service.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | fir-api-cli-0.4.4 |
| نام | fir-api-cli |
| نسخه کتابخانه | 0.4.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | "Earth Observation Operation Center (FOK)" <fok@lechnerkozpont.hu> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/fir-api-cli/ |
| مجوز | - |
# FIR API CLI
FIR API CLI is a command line interface tool for exploring and downloading
Sentinel satellite images from the FIR API service.
The tool can be used to explore and download dataset based on product
id or metadata filtering.
In order to use the package, users must have a
valid FIR eFöld registration.
More information at: https://efold.gov.hu/
## Installation
```bash
pip install fir-api-cli
```
## Usage
Get some help:
```bash
fir-cli --help
```
Save username and password to config file (if executed, no need to support username and password to commands):
```bash
fir-cli config <username> <password>
```
Get information about individual product based on product id:
```bash
fir-cli -u <username> -pw <password> query-id -i <product_id>
```
Download individual product based on product id:
```bash
fir-cli -u <username> -pw <password> query-id -i <product_id> -d <path/to/folder>
```
Get information about products based on query:
```bash
fir-cli -u <username> -pw <password> query -p Sentinel-2 -dt 2021-01-01 2021-01-05 -c 1
```
Download products based on query and save product list to csv:
```bash
fir-cli -u <username> -pw <password> query -p Sentinel-2 -dt 2021-01-01 2021-01-05 -c 1 -d <path/to/folder> -o <path/to/csv_file.csv>
```
*Note: username and password can be automatically supplied by setting the FIR_API_USERNAME and FIR_API_PASSWORD environment variables or by running the config command.*
نیازمندی
| مقدار | نام |
|---|---|
| >=0.7.0 | typer[all] |
| >=2.28.1 | requests |
| >=0.10.1 | requests-toolbelt |
| >=4.65.0 | tqdm |
| >=3.4.0 | gql |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8 | Python |
نحوه نصب
نصب پکیج whl fir-api-cli-0.4.4:
pip install fir-api-cli-0.4.4.whl
نصب پکیج tar.gz fir-api-cli-0.4.4:
pip install fir-api-cli-0.4.4.tar.gz