prescient-sdk 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- prescient_sdk-0.1.0/.github/workflows/ci.yaml +49 -0
- prescient_sdk-0.1.0/.github/workflows/deploy-book.yaml +53 -0
- prescient_sdk-0.1.0/.github/workflows/publish.yaml +51 -0
- prescient_sdk-0.1.0/.gitignore +169 -0
- prescient_sdk-0.1.0/.python-version +1 -0
- prescient_sdk-0.1.0/LICENSE +21 -0
- prescient_sdk-0.1.0/Makefile +11 -0
- prescient_sdk-0.1.0/PKG-INFO +96 -0
- prescient_sdk-0.1.0/README.md +85 -0
- prescient_sdk-0.1.0/docs/PE-1.png +0 -0
- prescient_sdk-0.1.0/docs/_config.yml +43 -0
- prescient_sdk-0.1.0/docs/_toc.yml +17 -0
- prescient_sdk-0.1.0/docs/client-sdk.rst +5 -0
- prescient_sdk-0.1.0/docs/examples/configuration.ipynb +128 -0
- prescient_sdk-0.1.0/docs/examples/stac_search.ipynb +134 -0
- prescient_sdk-0.1.0/docs/index.md +11 -0
- prescient_sdk-0.1.0/docs/installation.md +15 -0
- prescient_sdk-0.1.0/prescient_sdk/__init__.py +0 -0
- prescient_sdk-0.1.0/prescient_sdk/client.py +206 -0
- prescient_sdk-0.1.0/prescient_sdk/config.py +33 -0
- prescient_sdk-0.1.0/pyproject.toml +28 -0
- prescient_sdk-0.1.0/tests/test_client.py +214 -0
- prescient_sdk-0.1.0/uv.lock +3172 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
name: ci
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
pull_request:
|
|
8
|
+
types: [opened, reopened]
|
|
9
|
+
|
|
10
|
+
# This job installs dependencies, runs tests, and checks formatting
|
|
11
|
+
jobs:
|
|
12
|
+
run-ci:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
permissions:
|
|
15
|
+
pages: write
|
|
16
|
+
id-token: write
|
|
17
|
+
|
|
18
|
+
strategy:
|
|
19
|
+
matrix:
|
|
20
|
+
python-version:
|
|
21
|
+
- "3.9"
|
|
22
|
+
- "3.10"
|
|
23
|
+
- "3.11"
|
|
24
|
+
- "3.12"
|
|
25
|
+
|
|
26
|
+
steps:
|
|
27
|
+
- uses: actions/checkout@v4
|
|
28
|
+
|
|
29
|
+
- name: Install uv
|
|
30
|
+
uses: astral-sh/setup-uv@v2
|
|
31
|
+
with:
|
|
32
|
+
# Install a specific version of uv.
|
|
33
|
+
version: "0.4.10"
|
|
34
|
+
enable-cache: true
|
|
35
|
+
cache-dependency-glob: "uv.lock"
|
|
36
|
+
|
|
37
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
38
|
+
run: uv python install ${{ matrix.python-version }}
|
|
39
|
+
|
|
40
|
+
- name: Install the project
|
|
41
|
+
run: uv sync --all-extras --dev
|
|
42
|
+
|
|
43
|
+
- name: run tests
|
|
44
|
+
run: |
|
|
45
|
+
uv run pytest tests/
|
|
46
|
+
|
|
47
|
+
- name: check-format
|
|
48
|
+
run: |
|
|
49
|
+
uv run ruff check
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
name: deploy-book
|
|
2
|
+
|
|
3
|
+
# Run this when a new release tag is pushed
|
|
4
|
+
on:
|
|
5
|
+
push:
|
|
6
|
+
tags: ['*.*.*']
|
|
7
|
+
|
|
8
|
+
# This job installs dependencies, builds the book, and pushes it to `gh-pages`
|
|
9
|
+
jobs:
|
|
10
|
+
deploy-book:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
permissions:
|
|
13
|
+
pages: write
|
|
14
|
+
id-token: write
|
|
15
|
+
steps:
|
|
16
|
+
- uses: actions/checkout@v4
|
|
17
|
+
|
|
18
|
+
- name: Install uv
|
|
19
|
+
uses: astral-sh/setup-uv@v2
|
|
20
|
+
with:
|
|
21
|
+
version: "0.4.10"
|
|
22
|
+
enable-cache: true
|
|
23
|
+
cache-dependency-glob: "uv.lock"
|
|
24
|
+
|
|
25
|
+
- name: "Set up Python"
|
|
26
|
+
uses: actions/setup-python@v5
|
|
27
|
+
with:
|
|
28
|
+
python-version-file: ".python-version"
|
|
29
|
+
|
|
30
|
+
- name: Install the project
|
|
31
|
+
run: uv sync --all-extras --dev
|
|
32
|
+
|
|
33
|
+
- name: cache executed notebooks
|
|
34
|
+
uses: actions/cache@v3
|
|
35
|
+
with:
|
|
36
|
+
path: _build/.jupyter_cache
|
|
37
|
+
key: jupyter-book-cache-${{ hashFiles('uv.lock') }}
|
|
38
|
+
|
|
39
|
+
# Build the book
|
|
40
|
+
- name: Build the book
|
|
41
|
+
run: |
|
|
42
|
+
uv run jupyter-book build docs/
|
|
43
|
+
|
|
44
|
+
# Upload the book's HTML as an artifact
|
|
45
|
+
- name: Upload artifact
|
|
46
|
+
uses: actions/upload-pages-artifact@v3
|
|
47
|
+
with:
|
|
48
|
+
path: "docs/_build/html"
|
|
49
|
+
|
|
50
|
+
# Deploy the book's HTML to GitHub Pages
|
|
51
|
+
- name: Deploy to GitHub Pages
|
|
52
|
+
id: deployment
|
|
53
|
+
uses: actions/deploy-pages@v4
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
name: Publish Python 🐍 distribution 📦 to PyPI and TestPyPI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags: ['*.*.*']
|
|
6
|
+
|
|
7
|
+
env:
|
|
8
|
+
TWINE_USERNAME: __token__
|
|
9
|
+
TWINE_PASSWORD: ${{ secrets.PY_PI_API_TOKEN }}
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
deploy-book:
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
permissions:
|
|
16
|
+
pages: write
|
|
17
|
+
id-token: write
|
|
18
|
+
steps:
|
|
19
|
+
- uses: actions/checkout@v4
|
|
20
|
+
|
|
21
|
+
- name: Install uv
|
|
22
|
+
uses: astral-sh/setup-uv@v2
|
|
23
|
+
with:
|
|
24
|
+
version: "0.4.10"
|
|
25
|
+
enable-cache: true
|
|
26
|
+
cache-dependency-glob: "uv.lock"
|
|
27
|
+
|
|
28
|
+
- name: "Set up Python"
|
|
29
|
+
uses: actions/setup-python@v5
|
|
30
|
+
with:
|
|
31
|
+
python-version-file: ".python-version"
|
|
32
|
+
|
|
33
|
+
- name: Install the project
|
|
34
|
+
run: uv sync --all-extras --dev
|
|
35
|
+
|
|
36
|
+
# run tests and check formatting
|
|
37
|
+
- name: run tests
|
|
38
|
+
run: |
|
|
39
|
+
uv run pytest tests/
|
|
40
|
+
|
|
41
|
+
- name: check-format
|
|
42
|
+
run: |
|
|
43
|
+
uv run ruff check
|
|
44
|
+
|
|
45
|
+
# build and publish
|
|
46
|
+
- name: build project
|
|
47
|
+
run: uv build
|
|
48
|
+
|
|
49
|
+
- name: Publish to PyPI
|
|
50
|
+
run: uvx twine upload dist/* --non-interactive
|
|
51
|
+
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
share/python-wheels/
|
|
24
|
+
*.egg-info/
|
|
25
|
+
.installed.cfg
|
|
26
|
+
*.egg
|
|
27
|
+
MANIFEST
|
|
28
|
+
|
|
29
|
+
# PyInstaller
|
|
30
|
+
# Usually these files are written by a python script from a template
|
|
31
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
32
|
+
*.manifest
|
|
33
|
+
*.spec
|
|
34
|
+
|
|
35
|
+
# Installer logs
|
|
36
|
+
pip-log.txt
|
|
37
|
+
pip-delete-this-directory.txt
|
|
38
|
+
|
|
39
|
+
# Unit test / coverage reports
|
|
40
|
+
htmlcov/
|
|
41
|
+
.tox/
|
|
42
|
+
.nox/
|
|
43
|
+
.coverage
|
|
44
|
+
.coverage.*
|
|
45
|
+
.cache
|
|
46
|
+
nosetests.xml
|
|
47
|
+
coverage.xml
|
|
48
|
+
*.cover
|
|
49
|
+
*.py,cover
|
|
50
|
+
.hypothesis/
|
|
51
|
+
.pytest_cache/
|
|
52
|
+
cover/
|
|
53
|
+
|
|
54
|
+
# Translations
|
|
55
|
+
*.mo
|
|
56
|
+
*.pot
|
|
57
|
+
|
|
58
|
+
# Django stuff:
|
|
59
|
+
*.log
|
|
60
|
+
local_settings.py
|
|
61
|
+
db.sqlite3
|
|
62
|
+
db.sqlite3-journal
|
|
63
|
+
|
|
64
|
+
# Flask stuff:
|
|
65
|
+
instance/
|
|
66
|
+
.webassets-cache
|
|
67
|
+
|
|
68
|
+
# Scrapy stuff:
|
|
69
|
+
.scrapy
|
|
70
|
+
|
|
71
|
+
# Sphinx documentation
|
|
72
|
+
docs/_build/
|
|
73
|
+
|
|
74
|
+
# PyBuilder
|
|
75
|
+
.pybuilder/
|
|
76
|
+
target/
|
|
77
|
+
|
|
78
|
+
# Jupyter Notebook
|
|
79
|
+
.ipynb_checkpoints
|
|
80
|
+
|
|
81
|
+
# IPython
|
|
82
|
+
profile_default/
|
|
83
|
+
ipython_config.py
|
|
84
|
+
|
|
85
|
+
# pyenv
|
|
86
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
87
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
88
|
+
# .python-version
|
|
89
|
+
|
|
90
|
+
# pipenv
|
|
91
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
92
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
93
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
94
|
+
# install all needed dependencies.
|
|
95
|
+
#Pipfile.lock
|
|
96
|
+
|
|
97
|
+
# poetry
|
|
98
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
99
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
100
|
+
# commonly ignored for libraries.
|
|
101
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
102
|
+
#poetry.lock
|
|
103
|
+
|
|
104
|
+
# pdm
|
|
105
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
106
|
+
#pdm.lock
|
|
107
|
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
|
108
|
+
# in version control.
|
|
109
|
+
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
|
|
110
|
+
.pdm.toml
|
|
111
|
+
.pdm-python
|
|
112
|
+
.pdm-build/
|
|
113
|
+
|
|
114
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
115
|
+
__pypackages__/
|
|
116
|
+
|
|
117
|
+
# Celery stuff
|
|
118
|
+
celerybeat-schedule
|
|
119
|
+
celerybeat.pid
|
|
120
|
+
|
|
121
|
+
# SageMath parsed files
|
|
122
|
+
*.sage.py
|
|
123
|
+
|
|
124
|
+
# Environments
|
|
125
|
+
.env
|
|
126
|
+
config.env
|
|
127
|
+
.venv
|
|
128
|
+
env/
|
|
129
|
+
venv/
|
|
130
|
+
ENV/
|
|
131
|
+
env.bak/
|
|
132
|
+
venv.bak/
|
|
133
|
+
|
|
134
|
+
# Spyder project settings
|
|
135
|
+
.spyderproject
|
|
136
|
+
.spyproject
|
|
137
|
+
|
|
138
|
+
# Rope project settings
|
|
139
|
+
.ropeproject
|
|
140
|
+
|
|
141
|
+
# mkdocs documentation
|
|
142
|
+
/site
|
|
143
|
+
|
|
144
|
+
# mypy
|
|
145
|
+
.mypy_cache/
|
|
146
|
+
.dmypy.json
|
|
147
|
+
dmypy.json
|
|
148
|
+
|
|
149
|
+
# Pyre type checker
|
|
150
|
+
.pyre/
|
|
151
|
+
|
|
152
|
+
# pytype static type analyzer
|
|
153
|
+
.pytype/
|
|
154
|
+
|
|
155
|
+
# Cython debug symbols
|
|
156
|
+
cython_debug/
|
|
157
|
+
|
|
158
|
+
# PyCharm
|
|
159
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
160
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
161
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
162
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
163
|
+
#.idea/
|
|
164
|
+
|
|
165
|
+
# config file for the prescient-sdk
|
|
166
|
+
config.yaml
|
|
167
|
+
|
|
168
|
+
# vscode
|
|
169
|
+
.vscode/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.12
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 sparkgeo.com
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
|
+
Name: prescient-sdk
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: A Python SDK for integrating with Prescient services
|
|
5
|
+
License-File: LICENSE
|
|
6
|
+
Requires-Python: >=3.9
|
|
7
|
+
Requires-Dist: boto3>=1.35.19
|
|
8
|
+
Requires-Dist: msal>=1.31.0
|
|
9
|
+
Requires-Dist: pydantic-settings>=2.5.2
|
|
10
|
+
Description-Content-Type: text/markdown
|
|
11
|
+
|
|
12
|
+
# prescient-sdk
|
|
13
|
+
A Python SDK for integrating with Prescient services
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
# Quickstart
|
|
17
|
+
|
|
18
|
+
## Local Development
|
|
19
|
+
|
|
20
|
+
The project is set up using [uv](https://docs.astral.sh/uv/) for package management. To develop locally:
|
|
21
|
+
|
|
22
|
+
1. Install uv following [these](https://docs.astral.sh/uv/getting-started/installation/) intructions
|
|
23
|
+
|
|
24
|
+
1. (Optional) Use uv to set up your local env.
|
|
25
|
+
|
|
26
|
+
Note that this will happen automatically when you run tests or any python application using uv, so it is not necessary
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
uv sync
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
1. Run the tests
|
|
33
|
+
|
|
34
|
+
```
|
|
35
|
+
uv run pytest
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
or
|
|
39
|
+
|
|
40
|
+
```
|
|
41
|
+
make run-tests
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Configuration
|
|
45
|
+
|
|
46
|
+
Configuration methods are discussed in the Jupyter Notebook [configuration.ipynb](./docs/examples/configuration.ipynb)
|
|
47
|
+
|
|
48
|
+
## Code Formatting/Linting
|
|
49
|
+
|
|
50
|
+
Code format is set using the [Ruff](https://docs.astral.sh/ruff/) formatter. To run this formatter:
|
|
51
|
+
|
|
52
|
+
```
|
|
53
|
+
make format
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Adding or removing dependencies
|
|
57
|
+
|
|
58
|
+
Add or remove dependencies using [UV](https://docs.astral.sh/uv/concepts/dependencies/).
|
|
59
|
+
|
|
60
|
+
In the simplest case, you can add a new dependency like this:
|
|
61
|
+
|
|
62
|
+
```
|
|
63
|
+
uv add <some-dependency>
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
To add a dev dependency:
|
|
67
|
+
|
|
68
|
+
```
|
|
69
|
+
uv add <some-dependency> --dev
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
To remove a dependency:
|
|
73
|
+
|
|
74
|
+
```
|
|
75
|
+
uv remove <some-dependency>
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
For more complex features, see the [uv documentation](https://docs.astral.sh/uv/)
|
|
79
|
+
|
|
80
|
+
## Build the documentation
|
|
81
|
+
|
|
82
|
+
Public facing documentation is built using [jupyter-books](https://jupyterbook.org/en/stable/intro.html).
|
|
83
|
+
|
|
84
|
+
The [docs](./docs) folder contains the layout for the public facing documentation.
|
|
85
|
+
|
|
86
|
+
You can build the documentation locally, and access the built html pages in a local browser:
|
|
87
|
+
|
|
88
|
+
1. Build the docs:
|
|
89
|
+
|
|
90
|
+
```
|
|
91
|
+
make build-docs
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
1. Open the html in a browser:
|
|
95
|
+
|
|
96
|
+
After building the docs, the path to the index.html file will be logged, and should look something like `docs/_build/html/index.html`
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# prescient-sdk
|
|
2
|
+
A Python SDK for integrating with Prescient services
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
# Quickstart
|
|
6
|
+
|
|
7
|
+
## Local Development
|
|
8
|
+
|
|
9
|
+
The project is set up using [uv](https://docs.astral.sh/uv/) for package management. To develop locally:
|
|
10
|
+
|
|
11
|
+
1. Install uv following [these](https://docs.astral.sh/uv/getting-started/installation/) intructions
|
|
12
|
+
|
|
13
|
+
1. (Optional) Use uv to set up your local env.
|
|
14
|
+
|
|
15
|
+
Note that this will happen automatically when you run tests or any python application using uv, so it is not necessary
|
|
16
|
+
|
|
17
|
+
```
|
|
18
|
+
uv sync
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
1. Run the tests
|
|
22
|
+
|
|
23
|
+
```
|
|
24
|
+
uv run pytest
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
or
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
make run-tests
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Configuration
|
|
34
|
+
|
|
35
|
+
Configuration methods are discussed in the Jupyter Notebook [configuration.ipynb](./docs/examples/configuration.ipynb)
|
|
36
|
+
|
|
37
|
+
## Code Formatting/Linting
|
|
38
|
+
|
|
39
|
+
Code format is set using the [Ruff](https://docs.astral.sh/ruff/) formatter. To run this formatter:
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
make format
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Adding or removing dependencies
|
|
46
|
+
|
|
47
|
+
Add or remove dependencies using [UV](https://docs.astral.sh/uv/concepts/dependencies/).
|
|
48
|
+
|
|
49
|
+
In the simplest case, you can add a new dependency like this:
|
|
50
|
+
|
|
51
|
+
```
|
|
52
|
+
uv add <some-dependency>
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
To add a dev dependency:
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
uv add <some-dependency> --dev
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
To remove a dependency:
|
|
62
|
+
|
|
63
|
+
```
|
|
64
|
+
uv remove <some-dependency>
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
For more complex features, see the [uv documentation](https://docs.astral.sh/uv/)
|
|
68
|
+
|
|
69
|
+
## Build the documentation
|
|
70
|
+
|
|
71
|
+
Public facing documentation is built using [jupyter-books](https://jupyterbook.org/en/stable/intro.html).
|
|
72
|
+
|
|
73
|
+
The [docs](./docs) folder contains the layout for the public facing documentation.
|
|
74
|
+
|
|
75
|
+
You can build the documentation locally, and access the built html pages in a local browser:
|
|
76
|
+
|
|
77
|
+
1. Build the docs:
|
|
78
|
+
|
|
79
|
+
```
|
|
80
|
+
make build-docs
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
1. Open the html in a browser:
|
|
84
|
+
|
|
85
|
+
After building the docs, the path to the index.html file will be logged, and should look something like `docs/_build/html/index.html`
|
|
Binary file
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Book settings
|
|
2
|
+
# Learn more at https://jupyterbook.org/customize/config.html
|
|
3
|
+
|
|
4
|
+
title: Prescient SDK
|
|
5
|
+
author: Sparkgeo Consulting Inc
|
|
6
|
+
logo: PE-1.png
|
|
7
|
+
only_build_toc_files: true
|
|
8
|
+
|
|
9
|
+
# Force re-execution of notebooks on each build.
|
|
10
|
+
# See https://jupyterbook.org/content/execute.html
|
|
11
|
+
execute:
|
|
12
|
+
execute_notebooks: off
|
|
13
|
+
|
|
14
|
+
# Define the name of the latex output file for PDF builds
|
|
15
|
+
latex:
|
|
16
|
+
latex_documents:
|
|
17
|
+
targetname: prescient_sdk.tex
|
|
18
|
+
|
|
19
|
+
# Launch button settings
|
|
20
|
+
launch_buttons:
|
|
21
|
+
notebook_interface: jupyterlab
|
|
22
|
+
binderhub_url: ""
|
|
23
|
+
|
|
24
|
+
# Information about where the book exists on the web
|
|
25
|
+
repository:
|
|
26
|
+
url: https://github.com/sparkgeo/prescient-sdk # Online location of your book
|
|
27
|
+
path_to_book: docs # Optional path to your book, relative to the repository root
|
|
28
|
+
branch: main # Which branch of the repository should be used when creating links (optional)
|
|
29
|
+
|
|
30
|
+
# Add GitHub buttons to your book
|
|
31
|
+
# See https://jupyterbook.org/customize/config.html#add-a-link-to-your-repository
|
|
32
|
+
html:
|
|
33
|
+
use_issues_button: true
|
|
34
|
+
use_repository_button: true
|
|
35
|
+
|
|
36
|
+
sphinx:
|
|
37
|
+
extra_extensions:
|
|
38
|
+
- 'sphinx.ext.autodoc'
|
|
39
|
+
- 'sphinx.ext.napoleon'
|
|
40
|
+
- 'sphinx.ext.viewcode'
|
|
41
|
+
config:
|
|
42
|
+
add_module_names: False
|
|
43
|
+
suppress_warnings: ["etoc.toctree"]
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Table of contents
|
|
2
|
+
# Learn more at https://jupyterbook.org/customize/toc.html
|
|
3
|
+
|
|
4
|
+
format: jb-book
|
|
5
|
+
root: index
|
|
6
|
+
parts:
|
|
7
|
+
- caption: Getting Started
|
|
8
|
+
chapters:
|
|
9
|
+
- file: installation
|
|
10
|
+
- file: examples/configuration
|
|
11
|
+
- caption: Examples
|
|
12
|
+
chapters:
|
|
13
|
+
- title: STAC Search
|
|
14
|
+
file: examples/stac_search
|
|
15
|
+
- caption: SDK Reference
|
|
16
|
+
chapters:
|
|
17
|
+
- file: client-sdk
|