Metadata-Version: 2.1
Name: libpfapi
Version: 0.4.5
Summary: Base library providing basic pathfinder REST api access utilities
Author-email: Jordi Castells <jordi.castells@gilytics.com>, Rafael Ruiz <rafa.romero@gilytics.com>
Project-URL: Homepage, https://www.gilytics.com/
Project-URL: Issues, https://www.gilytics.com/faqs
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE

Base library providing basic pathfinder REST api access utilities.

Documentation and examples available under the `doc` directory, 
can be built via sphinx for easy reading.

    cd doc
    pip install -U sphinx
    make html
    firefox _build/html/index.html

Script usage examples are documented in `scripts/README.md`.

## Baselayer workflow (upload + update)

Upload a new dataset:

    python scripts/upload_baselayer.py /path/to/layer.zip --name "Roads v1"
    python scripts/upload_baselayer.py /path/to/dem.tif --raster --name "DEM v1"

Update an existing BaseLayer source file by ID:

    python scripts/update_baselayer.py 123 /path/to/layer_v2.zip
    python scripts/update_baselayer.py 456 /path/to/dem_v2.tif

For detailed options and compatibility notes, see `scripts/README.md`.

# Testing

Create a new `.env` file from `.env.example` and change the values.
Just run the function from a `python` shell or from `command line`.
