Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# STAC Auth Proxy

STAC Auth Proxy is a proxy API that mediates between the client and and some internally accessible STAC API in order to provide a flexible authentication mechanism.

## Development

```sh
uv run python -m stac_auth_proxy
```
37 changes: 24 additions & 13 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,29 +1,40 @@
[project]
name = "stac-auth-proxy"
version = "0.1.0"
description = "STAC authentication proxy with FastAPI"
readme = "README.md"
requires-python = ">=3.8"
license = {file = "LICENSE"}
authors = [{name = "Your Name", email = "[email protected]"}]
keywords = ["STAC", "FastAPI", "Authentication", "Proxy"]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"License :: OSI Approved :: MIT License",
]
dependencies = [
"authlib>=1.3.2",
"fastapi>=0.115.5",
"httpx>=0.28.0",
"uvicorn>=0.32.1",
]
description = "STAC authentication proxy with FastAPI"
keywords = ["STAC", "FastAPI", "Authentication", "Proxy"]
license = {file = "LICENSE"}
name = "stac-auth-proxy"
readme = "README.md"
requires-python = ">=3.8"
version = "0.1.0"

[tool.coverage.run]
branch = true

[tool.isort]
profile = "black"
known_first_party = ["stac_auth_proxy"]
profile = "black"

[tool.ruff]
select = ["D", "E", "F"]
ignore = ["E501"]
select = ["D", "E", "F"]

[build-system]
requires = ["hatchling>=1.12.0"]
build-backend = "hatchling.build"
requires = ["hatchling>=1.12.0"]

[dependency-groups]
dev = [
"pre-commit>=3.5.0",
]
1 change: 0 additions & 1 deletion requirements-dev.txt

This file was deleted.

4 changes: 0 additions & 4 deletions requirements.txt

This file was deleted.

16 changes: 16 additions & 0 deletions src/stac_auth_proxy/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import uvicorn
from uvicorn.config import LOGGING_CONFIG


LOGGING_CONFIG["loggers"][__package__] = {
"level": "DEBUG",
"handlers": ["default"],
}

uvicorn.run(
f"{__package__}.app:app",
host="0.0.0.0",
port=8000,
log_config=LOGGING_CONFIG,
reload=True,
)
5 changes: 0 additions & 5 deletions src/stac_auth_proxy/main.py → src/stac_auth_proxy/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,3 @@
from fastapi import FastAPI

app = FastAPI()

if __name__ == "__main__":
import uvicorn

uvicorn.run(app, host="0.0.0.0", port=8000)
605 changes: 605 additions & 0 deletions uv.lock

Large diffs are not rendered by default.