Note: the personal access token (PAT) in pip.conf only lasts for one year. It started on 10/27/2021.
For more details, please visit [Get started with Python packages in Azure Artifacts](https://docs.microsoft.com/en-us/azure/devops/artifacts/quickstarts/python-packages?view=azure-devops)
- Install dependencies
`pip install -r requirements.txt`
...
...
@@ -32,31 +38,46 @@ This project will provide restful APIs to access SEGY file headers.
2. Software dependencies
- fastapi
- uvicorn
- segysdk-python==<latestversion>
Note: you can find the latest version of segysdk-python on the following link:
1. set environment variable `SDMS_SERVICE_HOST` to the url of seismic store service
## Build and Test
1. set environment variable `SDMS_SERVICE_HOST` to the url of [seismic store service](https://slb-swt.visualstudio.com/carbon/_wiki/wikis/carbon.wiki/12539/SDMS-Core-Services).
For QA: `https://evt-mvp.managed-osdu.cloud.slb-ds.com/seistore-svc/api/v3`
2.`python main.py`
3. Open `http://localhost:8000/seismic-file-metadata/api/v1/swagger-ui.html` in web browser
- Enter bearer token and appkey for authorization
- Enter sdpath i.e. `sd://slb/sandbox/l10f1.sgy`
- Enter bearer token (you can get it from Delfi Portal) and appkey for authorization
- Enter sdpath i.e. `sd://opendes/dchentest/test.sgy`
2. Run the docker image. `docker run -d -it --rm --name segycontainer -p 8080:8000 segyimage`
3. Launch the web site. `http://localhost:8000/seismic-file-metadata/api/v1/swagger-ui.html`
4. Note: the personal access token in pip.conf only lasts for 90 days. It started on 7/26/2021.
## Build and Test
1. Run the docker image. `docker run --env SDMS_SERVICE_HOST=<SDMS_SERVICE_HOST> -d -it --rm --name segycontainer -p 8080:8000 segyimage`
Replace environment variable `<SDMS_SERVICE_HOST>` with the url of [seismic store service](https://slb-swt.visualstudio.com/carbon/_wiki/wikis/carbon.wiki/12539/SDMS-Core-Services).