Skip to content

Commit 6ea1c79

Browse files
emmalugadomski
andauthored
docs: update pystapi-client readme (#81)
## What I'm changing - Updated the root and `pystac-client` READMEs, based on original content in [archived repo](https://github.com/stapi-spec/stapi-client), but with updated text & links - Added `pystac-client` to the docs ## How I did it - By reviewing and installing the `pystac-client` 💻 locally - <!-- more detail on decisions and choices --> ## Checklist - [x] Tests pass: `uv run pytest` - [ ] Checks pass: `uv run pre-commit --all-files` - [ ] CHANGELOG is updated (if necessary) --------- Co-authored-by: Pete Gadomski <[email protected]>
1 parent 7eea8b6 commit 6ea1c79

File tree

7 files changed

+56
-7
lines changed

7 files changed

+56
-7
lines changed

CONTRIBUTING.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ We use [mypy](https://mypy-lang.org/) for static typing.
4242
When possible, projects work in `strict` mode, meaning that type checking is strongly enforced.
4343
Some projects are not quite ready for `strict` mode, but we want to get them there.
4444

45+
## Docs
46+
47+
We use [mkdocs](https://www.mkdocs.org/) for our [documentation](/docs/).
48+
To build the docs, run `uv run mkdocs build`.
49+
To serve the docs locally, run `uv run mkdocs serve`.
50+
4551
## Lints and checks
4652

4753
We use [pre-commit](https://pre-commit.com/).

README.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@ source .venv/bin/activate
3535

3636
See our [contribution guidelines](./CONTRIBUTING.md) for information on contributing any changes, fixes, or features.
3737

38+
## Packages
39+
40+
```mermaid
41+
graph
42+
stapi-pydantic --> pystapi-client --> pystapi-validator
43+
stapi-pydantic --> stapi-fastapi
44+
```
45+
3846
### stapi-fastapi server
3947

4048
A minimal test implementation is provided in [stapi-fastapi/tests/application.py](stapi-fastapi/tests/application.py).
@@ -46,10 +54,8 @@ uv run fastapi dev stapi-fastapi/tests/application.py
4654

4755
The app should be accessible at `http://localhost:8000`.
4856

49-
## Packages
57+
### stapi-client
5058

51-
```mermaid
52-
graph
53-
stapi-pydantic --> pystapi-client --> pystapi-validator
54-
stapi-pydantic --> stapi-fastapi
55-
```
59+
The `stapi-client` package is a Python client (CLI tool) focused on interfacing with the STAPI specification, specifically with a STAPI server. This is a work in progress.
60+
61+
For more information, see the [README](pystapi-client/README.md).

docs/stapi-client/index.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# stapi-client
2+
3+
A Python client (CLI tool) for interfacing with a [Satellite Tasking API (STAPI)](https://github.com/stapi-spec) server.
4+
5+
!!! note
6+
7+
This is a work in progress.
8+
9+
## Installation
10+
11+
```shell
12+
python -m pip install pystapi-client
13+
```

docs/stapi-pydantic/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
!!! note
66

77
This repository intentionally has no input/output (IO) functionality.
8-
For making requests to a STAPI API, use **pystapi-client**.
8+
For making requests to a STAPI API, use **[pystapi-client](../stapi-client/index.md)**.

mkdocs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ nav:
1414
- stapi-pydantic:
1515
- stapi-pydantic/index.md
1616
- stapi-pydantic/api.md
17+
- stapi-client:
18+
- stapi-client/index.md
1719

1820
plugins:
1921
- mkdocstrings:

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ ignore_missing_imports = true
7575
plugins.md013.enabled = false # @gadomski likes to do one-line-per-sentence in markdown
7676
plugins.md024.enabled = false # duplicate headers in changelog
7777
plugins.md041.enabled = false # github templates don't start with an h1
78+
plugins.md046.enabled = false # code block style (we use both for mkdocs)
7879

7980
[tool.pytest.ini_options]
8081
filterwarnings = [

pystapi-client/README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# pystapi-client
2+
3+
[![CI](https://github.com/stapi-spec/pystapi/actions/workflows/ci.yaml/badge.svg)](https://github.com/stapi-spec/pystapi/actions/workflows/ci.yaml)
4+
<!--TODO: Add PyPI badge when package is released-->
5+
<!-- [![PyPI version](https://badge.fury.io/py/pystapi-client.svg)](https://badge.fury.io/py/pystapi-client) -->
6+
[![Documentation](https://stapi-spec.github.io/pystapi/stapi-client/)](https://stapi-spec.github.io/pystapi/stapi-client/)
7+
8+
A Python client for working with [STAPI](https://stapi-spec.github.io/pystapi/) APIs.
9+
10+
## Installation
11+
12+
Install from PyPi.
13+
Other than [stapi-pydantic](https://stapi-spec.github.io/pystapi/stapi-pydantic/) itself, the only dependencies for **pystapi-client** are the Python [httpx](https://www.python-httpx.org/) and [python-dateutil](https://dateutil.readthedocs.io) libraries.
14+
15+
## Development
16+
17+
See the instructions in the [pystapi monorepo](https://github.com/stapi-spec/pystapi?tab=readme-ov-file#development).
18+
19+
## Documentation
20+
21+
See the [documentation page](https://stapi-spec.github.io/pystapi/stapi-client/) for the latest docs.

0 commit comments

Comments
 (0)