Metadata-Version: 2.4
Name: s2gos-server
Version: 0.1.0
Summary: Python server for the ESA DTE-S2GOS synthetic scene generator service
Project-URL: Documentation, https://s2gos-dev.github.io/s2gos-controller
Project-URL: Repository, https://github.com/s2gos-dev/s2gos-controller
Project-URL: Changelog, https://github.com/s2gos-dev/s2gos-controller/blob/main/CHANGES.md
Project-URL: Issues, https://github.com/s2gos-dev/s2gos-controller/issues
Author: Norman Fomferra (Brockmann Consult GmbH), Tejas Morbagal Harish (Brockmann Consult GmbH)
License: Apache-2.0
License-File: LICENSE
Keywords: eRadiate,esa,synthetic scene generation,zarr
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: MacOS
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX
Classifier: Operating System :: Unix
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Software Development
Classifier: Typing :: Typed
Requires-Python: >=3.11
Requires-Dist: gavicore>=0.1.0
Requires-Dist: universal-pathlib<0.4,>=0.3.8
Requires-Dist: wraptile>=0.1.0
Description-Content-Type: text/markdown

# DTE-S2GOS controller server

Python gateway server for the ESA DTE-S2GOS synthetic scene generator service.

## Airflow service

Start by running a local Airflow instance with some test DAGs:
```commandline
cd s2gos-airflow
pixi install
pixi run airflow standalone
```

Then run the S2GOS gateway server with the local Airflow instance (assuming
the local Airflow webserver runs on http://localhost:8080):

```commandline
pixi shell
s2gos-server run -- s2gos_server.services.airflow:service --airflow-password=a8e7f4bb230
```

The possible options are

* `--airflow-base-url=TEXT`: The base URL of the Airflow web API, defaults to 
  `http://localhost:8080`. 
* `--airflow-username=TEXT`: The Airflow username, defaults to `admin`. 
* `--airflow-password=TEXT`: The Airflow password. 
  For an Airflow installation with the simple Auth manager, use the one from
  `.airflow/simple_auth_manager_passwords.json.generated`.


## Local service

Running the S2GOS gateway server with a local service:

```commandline
pixi shell
s2gos-server run -- s2gos_server.services.local.testing:service --processes --max-workers=5
```

The possible options are

* `--processes` /  `--no-processes`: Whether to use processes or threads, defaults
  to threads.
* `--max-workers=INTEGER`: Maximum number of processes or threads, defaults to 3.

