OSS_API
Allows to script the creation of scenarios and uploading of layers to OSS for displaying in synapps.
installation
pip install git+https://IMDCdocker:#######@gitlab.com:imdc/packages/oss_api
command line interface
- configure the project id:
oss configure -p 42 - create a scenario:
oss createScenario -n "new scenario"# scenario_id = e.g. 108 - Upload a *.tif / *.shp file:
oss uploadLayer -i 108 -f D:\shapefile.shp -s shapefile.sld -n "new layer" -g Group1
python interface
from oss_api import configure, createScenario, uploadLayer
import os
configure(project=42)
scen = createScenario(name="Testing new scenario")
layers = [r"D:\dev\testdata\subcatchments.shp", r"D:\dev\testdata\dem.tif"]
for idx, layer in enumerate(layers):
uploadLayer(scenario=scen, name=os.path.basename(layer), filename=layer, sld="polygon", group="Group+%d"%idx)
Metadata
Release files for oss-api 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| oss_api-0.0.4.tar.gz | 4.7 kB | Without provenance | Details for oss_api-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| oss_api-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for oss_api-0.0.4-py3-none-any.whl |
Total release size: 13.0 kB
Release files / oss_api-0.0.4.tar.gz
| Download URL | oss_api-0.0.4.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
57cc8bab17b86a48da351011f17ee68223706495a6c00a3bda3896e4b6cfa0e8
|
|
BLAKE2b-256 checksum How to use checksums |
466feb5ec6e19d9da3804525597bab20b0202803e128cdefda0a1d6dda6655f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8
|
Release files / oss_api-0.0.4-py3-none-any.whl
| Download URL | oss_api-0.0.4-py3-none-any.whl |
|---|---|
| Size | 8.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
533eb0be103551db901194c2f53c07d8d6a29bd90d82019265e72a013d35bdce
|
|
BLAKE2b-256 checksum How to use checksums |
07370d20e880a1fd5a62355f1b4c67748124a98585fcb9891a15492f76484c75
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8
|
Security for oss-api 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.