apis-acdhch-default-settings 2.3.1__py3-none-any.whl → 2.4.0__py3-none-any.whl
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.
- apis_acdhch_default_settings/querysets.py +42 -0
- apis_acdhch_default_settings/settings.py +1 -0
- apis_acdhch_default_settings-2.4.0.dist-info/METADATA +27 -0
- {apis_acdhch_default_settings-2.3.1.dist-info → apis_acdhch_default_settings-2.4.0.dist-info}/RECORD +8 -7
- {apis_acdhch_default_settings-2.3.1.dist-info → apis_acdhch_default_settings-2.4.0.dist-info}/WHEEL +1 -1
- apis_acdhch_default_settings-2.3.1.dist-info/METADATA +0 -33
- {apis_acdhch_default_settings-2.3.1.dist-info → apis_acdhch_default_settings-2.4.0.dist-info/licenses}/LICENSE +0 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import os
|
|
2
|
+
|
|
3
|
+
from apis_core.utils.autocomplete import (
|
|
4
|
+
ExternalAutocomplete,
|
|
5
|
+
TypeSenseAutocompleteAdapter,
|
|
6
|
+
LobidAutocompleteAdapter,
|
|
7
|
+
)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class E53_PlaceExternalAutocomplete(ExternalAutocomplete):
|
|
11
|
+
adapters = [
|
|
12
|
+
TypeSenseAutocompleteAdapter(
|
|
13
|
+
collections=[
|
|
14
|
+
"prosnet-wikidata-place-index",
|
|
15
|
+
"prosnet-geonames-place-index",
|
|
16
|
+
],
|
|
17
|
+
token=os.getenv("TYPESENSE_TOKEN", None),
|
|
18
|
+
server=os.getenv("TYPESENSE_SERVER", None),
|
|
19
|
+
),
|
|
20
|
+
LobidAutocompleteAdapter(
|
|
21
|
+
params={
|
|
22
|
+
"filter": "type:PlaceOrGeographicName",
|
|
23
|
+
"format": "json:preferredName",
|
|
24
|
+
}
|
|
25
|
+
),
|
|
26
|
+
]
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class E21_PersonExternalAutocomplete(ExternalAutocomplete):
|
|
30
|
+
adapters = [
|
|
31
|
+
TypeSenseAutocompleteAdapter(
|
|
32
|
+
collections="prosnet-wikidata-person-index",
|
|
33
|
+
token=os.getenv("TYPESENSE_TOKEN", None),
|
|
34
|
+
server=os.getenv("TYPESENSE_SERVER", None),
|
|
35
|
+
),
|
|
36
|
+
LobidAutocompleteAdapter(
|
|
37
|
+
params={
|
|
38
|
+
"filter": "type:Person",
|
|
39
|
+
"format": "json:preferredName,professionOrOccupation",
|
|
40
|
+
}
|
|
41
|
+
),
|
|
42
|
+
]
|
|
@@ -190,6 +190,7 @@ APIS_NEXT_PREV = True
|
|
|
190
190
|
APIS_LIST_VIEWS_ALLOWED = False
|
|
191
191
|
APIS_DETAIL_VIEWS_ALLOWED = False
|
|
192
192
|
SHARED_URL = "https://shared.acdh.oeaw.ac.at/"
|
|
193
|
+
ADDITIONAL_MODULE_LOOKUP_PATHS = ["apis_acdhch_default_settings"]
|
|
193
194
|
|
|
194
195
|
# django-allow-cidr settings
|
|
195
196
|
# https://github.com/mozmeao/django-allow-cidr
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: apis-acdhch-default-settings
|
|
3
|
+
Version: 2.4.0
|
|
4
|
+
Summary: Default settings for APIS instances at the ACDH-CH
|
|
5
|
+
Author-email: Birger Schacht <birger.schacht@oeaw.ac.at>
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
License-File: LICENSE
|
|
8
|
+
Requires-Python: >=3.11
|
|
9
|
+
Requires-Dist: dj-database-url<3.0,>=2.0.0
|
|
10
|
+
Requires-Dist: django-allow-cidr<0.8,>=0.6
|
|
11
|
+
Requires-Dist: django-auth-ldap<5.0,>=4.6.0
|
|
12
|
+
Requires-Dist: django-csp<4.0,>=3.7
|
|
13
|
+
Requires-Dist: django-removals<=2.0,>=1.0.5
|
|
14
|
+
Requires-Dist: opentelemetry-distro
|
|
15
|
+
Requires-Dist: opentelemetry-exporter-otlp
|
|
16
|
+
Requires-Dist: opentelemetry-instrumentation-asgi
|
|
17
|
+
Requires-Dist: opentelemetry-instrumentation-django
|
|
18
|
+
Requires-Dist: opentelemetry-instrumentation-logging
|
|
19
|
+
Requires-Dist: opentelemetry-instrumentation-psycopg2
|
|
20
|
+
Requires-Dist: opentelemetry-instrumentation-wsgi
|
|
21
|
+
Requires-Dist: sentry-sdk<2.0,>=1.26.0
|
|
22
|
+
Requires-Dist: whitenoise<7.0,>=5.2
|
|
23
|
+
Description-Content-Type: text/markdown
|
|
24
|
+
|
|
25
|
+
# apis_acdhch_default_settings
|
|
26
|
+
|
|
27
|
+
Default settings for [APIS](https://github.com/acdh-oeaw/apis-core-rdf/) instances hosted at the ACDH-CH at the OEAW.
|
{apis_acdhch_default_settings-2.3.1.dist-info → apis_acdhch_default_settings-2.4.0.dist-info}/RECORD
RENAMED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
apis_acdhch_default_settings/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
apis_acdhch_default_settings/ldapauth.py,sha256=P1NDgWG2Pp4JzqoETq3VDC3DtECoEIXWBA3Lzn6CUIA,423
|
|
3
|
-
apis_acdhch_default_settings/
|
|
4
|
-
apis_acdhch_default_settings/
|
|
5
|
-
apis_acdhch_default_settings/templates/imprint.html,sha256=juOqq6yzT9FMhjPjhbofDPZxRNO2fhOLlS478reFjE0,254
|
|
3
|
+
apis_acdhch_default_settings/querysets.py,sha256=3sqDRupDrDIxE2Oyf-7dC6BfU6p8pROzjN5KZPS3AQE,1203
|
|
4
|
+
apis_acdhch_default_settings/settings.py,sha256=XgmPOgA-Q43NAi-sbJM50bfhDbogTuLV1BQpyrxUxjA,9365
|
|
6
5
|
apis_acdhch_default_settings/urls.py,sha256=QOkc8QD0rEj0ftcJWJqVyO9qFAgVXrj1rl9R9jARSqc,1017
|
|
7
6
|
apis_acdhch_default_settings/views.py,sha256=4fwNnkjH-X4T2zojGTFndxvznOl_3JavHbmpDLD6wOA,1022
|
|
8
|
-
apis_acdhch_default_settings
|
|
9
|
-
apis_acdhch_default_settings
|
|
10
|
-
apis_acdhch_default_settings-2.
|
|
11
|
-
apis_acdhch_default_settings-2.
|
|
7
|
+
apis_acdhch_default_settings/templates/base.html,sha256=c3QhbTzJLzCii-Ck5x0wftHx_Y0aFhPfJUhUVknz_Ks,217
|
|
8
|
+
apis_acdhch_default_settings/templates/imprint.html,sha256=juOqq6yzT9FMhjPjhbofDPZxRNO2fhOLlS478reFjE0,254
|
|
9
|
+
apis_acdhch_default_settings-2.4.0.dist-info/METADATA,sha256=xok0a5dE4CQ_TF4GJuYu9HhaUiK5t_DiDB6e3yGUAok,1073
|
|
10
|
+
apis_acdhch_default_settings-2.4.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
11
|
+
apis_acdhch_default_settings-2.4.0.dist-info/licenses/LICENSE,sha256=cMJgiPvvZVbZQcWrf-s1Es1W2b8sxKA0C7HlD4n8_Oo,1146
|
|
12
|
+
apis_acdhch_default_settings-2.4.0.dist-info/RECORD,,
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.3
|
|
2
|
-
Name: apis-acdhch-default-settings
|
|
3
|
-
Version: 2.3.1
|
|
4
|
-
Summary: Default settings for APIS instances at the ACDH-CH
|
|
5
|
-
License: MIT
|
|
6
|
-
Author: Birger Schacht
|
|
7
|
-
Author-email: birger.schacht@oeaw.ac.at
|
|
8
|
-
Requires-Python: >=3.11,<4.0
|
|
9
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
-
Classifier: Programming Language :: Python :: 3
|
|
11
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
12
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.13
|
|
14
|
-
Requires-Dist: dj-database-url (>=2.0.0,<3.0.0)
|
|
15
|
-
Requires-Dist: django-allow-cidr (>=0.6,<0.8)
|
|
16
|
-
Requires-Dist: django-auth-ldap (>=4.6.0,<5.0.0)
|
|
17
|
-
Requires-Dist: django-csp (>=3.7,<4.0)
|
|
18
|
-
Requires-Dist: django-removals (>=1.0.5,<2.0.0)
|
|
19
|
-
Requires-Dist: opentelemetry-distro
|
|
20
|
-
Requires-Dist: opentelemetry-exporter-otlp
|
|
21
|
-
Requires-Dist: opentelemetry-instrumentation-asgi
|
|
22
|
-
Requires-Dist: opentelemetry-instrumentation-django
|
|
23
|
-
Requires-Dist: opentelemetry-instrumentation-logging
|
|
24
|
-
Requires-Dist: opentelemetry-instrumentation-psycopg2
|
|
25
|
-
Requires-Dist: opentelemetry-instrumentation-wsgi
|
|
26
|
-
Requires-Dist: sentry-sdk (>=1.26.0,<2.0.0)
|
|
27
|
-
Requires-Dist: whitenoise (>=5.2,<7.0)
|
|
28
|
-
Description-Content-Type: text/markdown
|
|
29
|
-
|
|
30
|
-
# apis_acdhch_default_settings
|
|
31
|
-
|
|
32
|
-
Default settings for [APIS](https://github.com/acdh-oeaw/apis-core-rdf/) instances hosted at the ACDH-CH at the OEAW.
|
|
33
|
-
|
|
File without changes
|