stac-fastapi.pgstac 6.2.0__tar.gz → 6.2.2__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.
Files changed (21) hide show
  1. {stac_fastapi_pgstac-6.2.0 → stac_fastapi_pgstac-6.2.2}/PKG-INFO +1 -1
  2. {stac_fastapi_pgstac-6.2.0 → stac_fastapi_pgstac-6.2.2}/pyproject.toml +1 -2
  3. {stac_fastapi_pgstac-6.2.0 → stac_fastapi_pgstac-6.2.2}/stac_fastapi/pgstac/app.py +3 -1
  4. {stac_fastapi_pgstac-6.2.0 → stac_fastapi_pgstac-6.2.2}/stac_fastapi/pgstac/config.py +6 -6
  5. {stac_fastapi_pgstac-6.2.0 → stac_fastapi_pgstac-6.2.2}/stac_fastapi/pgstac/version.py +1 -1
  6. {stac_fastapi_pgstac-6.2.0 → stac_fastapi_pgstac-6.2.2}/.gitignore +0 -0
  7. {stac_fastapi_pgstac-6.2.0 → stac_fastapi_pgstac-6.2.2}/LICENSE +0 -0
  8. {stac_fastapi_pgstac-6.2.0 → stac_fastapi_pgstac-6.2.2}/README.md +0 -0
  9. {stac_fastapi_pgstac-6.2.0 → stac_fastapi_pgstac-6.2.2}/stac_fastapi/pgstac/__init__.py +0 -0
  10. {stac_fastapi_pgstac-6.2.0 → stac_fastapi_pgstac-6.2.2}/stac_fastapi/pgstac/core.py +0 -0
  11. {stac_fastapi_pgstac-6.2.0 → stac_fastapi_pgstac-6.2.2}/stac_fastapi/pgstac/db.py +0 -0
  12. {stac_fastapi_pgstac-6.2.0 → stac_fastapi_pgstac-6.2.2}/stac_fastapi/pgstac/extensions/__init__.py +0 -0
  13. {stac_fastapi_pgstac-6.2.0 → stac_fastapi_pgstac-6.2.2}/stac_fastapi/pgstac/extensions/filter.py +0 -0
  14. {stac_fastapi_pgstac-6.2.0 → stac_fastapi_pgstac-6.2.2}/stac_fastapi/pgstac/extensions/free_text.py +0 -0
  15. {stac_fastapi_pgstac-6.2.0 → stac_fastapi_pgstac-6.2.2}/stac_fastapi/pgstac/extensions/query.py +0 -0
  16. {stac_fastapi_pgstac-6.2.0 → stac_fastapi_pgstac-6.2.2}/stac_fastapi/pgstac/models/__init__.py +0 -0
  17. {stac_fastapi_pgstac-6.2.0 → stac_fastapi_pgstac-6.2.2}/stac_fastapi/pgstac/models/links.py +0 -0
  18. {stac_fastapi_pgstac-6.2.0 → stac_fastapi_pgstac-6.2.2}/stac_fastapi/pgstac/transactions.py +0 -0
  19. {stac_fastapi_pgstac-6.2.0 → stac_fastapi_pgstac-6.2.2}/stac_fastapi/pgstac/types/base_item_cache.py +0 -0
  20. {stac_fastapi_pgstac-6.2.0 → stac_fastapi_pgstac-6.2.2}/stac_fastapi/pgstac/types/search.py +0 -0
  21. {stac_fastapi_pgstac-6.2.0 → stac_fastapi_pgstac-6.2.2}/stac_fastapi/pgstac/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: stac-fastapi-pgstac
3
- Version: 6.2.0
3
+ Version: 6.2.2
4
4
  Summary: An implementation of STAC API based on the FastAPI framework and using the pgstac backend.
5
5
  Project-URL: Homepage, https://github.com/stac-utils/stac-fastapi-pgstac
6
6
  Author-email: David Bitner <david@developmentseed.org>
@@ -71,7 +71,6 @@ dev = [
71
71
  "httpx",
72
72
  "psycopg[pool,binary]==3.2.*",
73
73
  "pre-commit",
74
- "bump-my-version",
75
74
  ]
76
75
  docs = [
77
76
  "black>=23.10.1",
@@ -141,7 +140,7 @@ ignore = [
141
140
  ]
142
141
 
143
142
  [tool.bumpversion]
144
- current_version = "6.2.0"
143
+ current_version = "6.2.2"
145
144
  parse = """(?x)
146
145
  (?P<major>\\d+)\\.
147
146
  (?P<minor>\\d+)\\.
@@ -12,7 +12,7 @@ from typing import cast
12
12
  from brotli_asgi import BrotliMiddleware
13
13
  from fastapi import APIRouter, FastAPI
14
14
  from stac_fastapi.api.app import StacApi
15
- from stac_fastapi.api.middleware import CORSMiddleware, ProxyHeaderMiddleware
15
+ from stac_fastapi.api.middleware import ProxyHeaderMiddleware
16
16
  from stac_fastapi.api.models import (
17
17
  EmptyRequest,
18
18
  ItemCollectionUri,
@@ -40,6 +40,7 @@ from stac_fastapi.extensions.third_party import BulkTransactionExtension
40
40
  from stac_fastapi.types.extension import ApiExtension
41
41
  from stac_fastapi.types.search import APIRequest
42
42
  from starlette.middleware import Middleware
43
+ from starlette.middleware.cors import CORSMiddleware
43
44
 
44
45
  from stac_fastapi.pgstac.config import Settings
45
46
  from stac_fastapi.pgstac.core import CoreCrudClient, health_check
@@ -196,6 +197,7 @@ api = StacApi(
196
197
  allow_methods=settings.cors_methods,
197
198
  allow_credentials=settings.cors_credentials,
198
199
  allow_headers=settings.cors_headers,
200
+ max_age=600,
199
201
  ),
200
202
  ],
201
203
  health_check=health_check, # type: ignore [arg-type]
@@ -68,41 +68,41 @@ class PostgresSettings(BaseSettings):
68
68
  Field(
69
69
  deprecated="`postgres_user` is deprecated, please use `pguser`", default=None
70
70
  ),
71
- ]
71
+ ] = None
72
72
  postgres_pass: Annotated[
73
73
  str | None,
74
74
  Field(
75
75
  deprecated="`postgres_pass` is deprecated, please use `pgpassword`",
76
76
  default=None,
77
77
  ),
78
- ]
78
+ ] = None
79
79
  postgres_host_reader: Annotated[
80
80
  str | None,
81
81
  Field(
82
82
  deprecated="`postgres_host_reader` is deprecated, please use `pghost`",
83
83
  default=None,
84
84
  ),
85
- ]
85
+ ] = None
86
86
  postgres_host_writer: Annotated[
87
87
  str | None,
88
88
  Field(
89
89
  deprecated="`postgres_host_writer` is deprecated, please use `pghost`",
90
90
  default=None,
91
91
  ),
92
- ]
92
+ ] = None
93
93
  postgres_port: Annotated[
94
94
  int | None,
95
95
  Field(
96
96
  deprecated="`postgres_port` is deprecated, please use `pgport`", default=None
97
97
  ),
98
- ]
98
+ ] = None
99
99
  postgres_dbname: Annotated[
100
100
  str | None,
101
101
  Field(
102
102
  deprecated="`postgres_dbname` is deprecated, please use `pgdatabase`",
103
103
  default=None,
104
104
  ),
105
- ]
105
+ ] = None
106
106
 
107
107
  pguser: str
108
108
  pgpassword: str
@@ -1,3 +1,3 @@
1
1
  """library version."""
2
2
 
3
- __version__ = "6.2.0"
3
+ __version__ = "6.2.2"