ds-caselaw-marklogic-api-client 34.1.1__py3-none-any.whl → 34.1.2__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.
Potentially problematic release.
This version of ds-caselaw-marklogic-api-client might be problematic. Click here for more details.
- caselawclient/models/identifiers/press_summary_ncn.py +1 -1
- caselawclient/models/identifiers/unpacker.py +2 -0
- caselawclient/models/utilities/aws.py +7 -4
- {ds_caselaw_marklogic_api_client-34.1.1.dist-info → ds_caselaw_marklogic_api_client-34.1.2.dist-info}/METADATA +1 -1
- {ds_caselaw_marklogic_api_client-34.1.1.dist-info → ds_caselaw_marklogic_api_client-34.1.2.dist-info}/RECORD +7 -7
- {ds_caselaw_marklogic_api_client-34.1.1.dist-info → ds_caselaw_marklogic_api_client-34.1.2.dist-info}/LICENSE.md +0 -0
- {ds_caselaw_marklogic_api_client-34.1.1.dist-info → ds_caselaw_marklogic_api_client-34.1.2.dist-info}/WHEEL +0 -0
|
@@ -6,10 +6,12 @@ from lxml import etree
|
|
|
6
6
|
from . import IDENTIFIER_UNPACKABLE_ATTRIBUTES, Identifier, Identifiers, InvalidIdentifierXMLRepresentationException
|
|
7
7
|
from .fclid import FindCaseLawIdentifier
|
|
8
8
|
from .neutral_citation import NeutralCitationNumber
|
|
9
|
+
from .press_summary_ncn import PressSummaryRelatedNCNIdentifier
|
|
9
10
|
|
|
10
11
|
IDENTIFIER_NAMESPACE_MAP: dict[str, type[Identifier]] = {
|
|
11
12
|
"fclid": FindCaseLawIdentifier,
|
|
12
13
|
"ukncn": NeutralCitationNumber,
|
|
14
|
+
"uksummaryofncn": PressSummaryRelatedNCNIdentifier,
|
|
13
15
|
}
|
|
14
16
|
|
|
15
17
|
|
|
@@ -47,10 +47,13 @@ def create_aws_client(service: Literal["sns"]) -> SNSClient: ...
|
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
def create_aws_client(service: Literal["s3", "sns"]) -> Any:
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
50
|
+
if env("AWS_ACCESS_KEY_ID", None):
|
|
51
|
+
aws = boto3.session.Session(
|
|
52
|
+
aws_access_key_id=env("AWS_ACCESS_KEY_ID", default=None),
|
|
53
|
+
aws_secret_access_key=env("AWS_SECRET_KEY", default=None),
|
|
54
|
+
)
|
|
55
|
+
else:
|
|
56
|
+
aws = boto3.session.Session()
|
|
54
57
|
return aws.client(
|
|
55
58
|
service,
|
|
56
59
|
endpoint_url=env("AWS_ENDPOINT_URL", default=None),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ds-caselaw-marklogic-api-client
|
|
3
|
-
Version: 34.1.
|
|
3
|
+
Version: 34.1.2
|
|
4
4
|
Summary: An API client for interacting with the underlying data in Find Caselaw.
|
|
5
5
|
Home-page: https://github.com/nationalarchives/ds-caselaw-custom-api-client
|
|
6
6
|
Keywords: national archives,caselaw
|
|
@@ -16,14 +16,14 @@ caselawclient/models/documents/xml.py,sha256=HlmPb63lLMnySSOLP4iexcAyQiLByKBZtTd
|
|
|
16
16
|
caselawclient/models/identifiers/__init__.py,sha256=sbS638jek1qtOSyGWVfIgaja0tnpK5iB5FXiYJSbJiU,6666
|
|
17
17
|
caselawclient/models/identifiers/fclid.py,sha256=FBqarEcnr-1AYmFvjTu1WoPNSBY785h27_bDh_ITgf8,1453
|
|
18
18
|
caselawclient/models/identifiers/neutral_citation.py,sha256=O3zLw8lnhh5Mb0COjwhhDfTyvcSt48Td5pfT6yaCCJk,1947
|
|
19
|
-
caselawclient/models/identifiers/press_summary_ncn.py,sha256=
|
|
20
|
-
caselawclient/models/identifiers/unpacker.py,sha256=
|
|
19
|
+
caselawclient/models/identifiers/press_summary_ncn.py,sha256=QkZUMMr2w-m8qukaVRFZmzZnrgkL1DBN8kfavZ-jbBI,762
|
|
20
|
+
caselawclient/models/identifiers/unpacker.py,sha256=eApUVdIKg3ABNiG38-OfYwKeaLGOl1Ebe5b9IusuLZM,2276
|
|
21
21
|
caselawclient/models/judgments.py,sha256=r40irgdEID-NeSNLm3OUdUBznMpRSwjD2SJrGlBgP8o,2208
|
|
22
22
|
caselawclient/models/neutral_citation_mixin.py,sha256=jAac3PPuWyPdj9N-n-U_JfwkbgbSIXaqFVQahfu95do,2086
|
|
23
23
|
caselawclient/models/parser_logs.py,sha256=30kF4w0GcowiMIFtymUkl7ZARanNh_PjDpJZezn-cA8,315
|
|
24
24
|
caselawclient/models/press_summaries.py,sha256=PIq9RceZ7n7Z079tESfxhQbfxCmtTc2V2OeFtcn594s,2144
|
|
25
25
|
caselawclient/models/utilities/__init__.py,sha256=u3yIhbTjFQ1JJyAm5wsMEBswWl4t6Z7UMORF5FqC2xQ,1257
|
|
26
|
-
caselawclient/models/utilities/aws.py,sha256=
|
|
26
|
+
caselawclient/models/utilities/aws.py,sha256=UoiXZEeTZawTiPBIZujBIHNYerHmyBm8uxkaPPlfs3M,8862
|
|
27
27
|
caselawclient/models/utilities/dates.py,sha256=WwORxVjUHM1ZFcBF6Qtwo3Cj0sATsnSECkUZ6ls1N1Q,492
|
|
28
28
|
caselawclient/models/utilities/move.py,sha256=MXdUqkSiyqRb8YKs_66B6ICWn8EWM6DiJV95fuJO1Us,3610
|
|
29
29
|
caselawclient/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -81,7 +81,7 @@ caselawclient/xquery/validate_document.xqy,sha256=PgaDcnqCRJPIVqfmWsNlXmCLNKd21q
|
|
|
81
81
|
caselawclient/xquery/xslt.xqy,sha256=w57wNijH3dkwHkpKeAxqjlghVflQwo8cq6jS_sm-erM,199
|
|
82
82
|
caselawclient/xquery/xslt_transform.xqy,sha256=cccaFiGkCcvSfDv007UriZ3I4ak2nTLP1trRZdbOoS8,2462
|
|
83
83
|
caselawclient/xquery_type_dicts.py,sha256=21V6PJ0a8lPZuwzQCWeHNo914hdCbCJtOvnqdHcTpKk,6383
|
|
84
|
-
ds_caselaw_marklogic_api_client-34.1.
|
|
85
|
-
ds_caselaw_marklogic_api_client-34.1.
|
|
86
|
-
ds_caselaw_marklogic_api_client-34.1.
|
|
87
|
-
ds_caselaw_marklogic_api_client-34.1.
|
|
84
|
+
ds_caselaw_marklogic_api_client-34.1.2.dist-info/LICENSE.md,sha256=fGMzyyLuQW-IAXUeDSCrRdsYW536aEWThdbpCjo6ZKg,1108
|
|
85
|
+
ds_caselaw_marklogic_api_client-34.1.2.dist-info/METADATA,sha256=w6Uvm1O3Khv2EbSSihEY7OK4fXEKFrgUixGtr-gMa_4,4206
|
|
86
|
+
ds_caselaw_marklogic_api_client-34.1.2.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
|
|
87
|
+
ds_caselaw_marklogic_api_client-34.1.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|