ds-caselaw-marklogic-api-client 36.0.0__py3-none-any.whl → 36.0.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.
- caselawclient/factories.py +7 -4
- caselawclient/models/identifiers/neutral_citation.py +1 -1
- {ds_caselaw_marklogic_api_client-36.0.0.dist-info → ds_caselaw_marklogic_api_client-36.0.2.dist-info}/METADATA +1 -1
- {ds_caselaw_marklogic_api_client-36.0.0.dist-info → ds_caselaw_marklogic_api_client-36.0.2.dist-info}/RECORD +6 -6
- {ds_caselaw_marklogic_api_client-36.0.0.dist-info → ds_caselaw_marklogic_api_client-36.0.2.dist-info}/LICENSE.md +0 -0
- {ds_caselaw_marklogic_api_client-36.0.0.dist-info → ds_caselaw_marklogic_api_client-36.0.2.dist-info}/WHEEL +0 -0
caselawclient/factories.py
CHANGED
|
@@ -146,15 +146,18 @@ class SearchResultMetadataFactory(SimpleFactory):
|
|
|
146
146
|
class SearchResultFactory(SimpleFactory):
|
|
147
147
|
target_class = SearchResult
|
|
148
148
|
|
|
149
|
-
# "name_of_attribute": ("name of incoming param", "default value")
|
|
150
149
|
PARAMS_MAP = {
|
|
151
|
-
"uri": "
|
|
150
|
+
"uri": "d-a1b2c3",
|
|
152
151
|
"name": "Judgment v Judgement",
|
|
153
|
-
"neutral_citation": "[
|
|
152
|
+
"neutral_citation": "[2025] UKSC 123",
|
|
154
153
|
"court": "Court of Testing",
|
|
155
|
-
"date": datetime.
|
|
154
|
+
"date": datetime.datetime(2023, 2, 3),
|
|
155
|
+
"transformation_date": str(datetime.datetime(2023, 2, 3, 12, 34)),
|
|
156
156
|
"metadata": SearchResultMetadataFactory.build(),
|
|
157
157
|
"is_failure": False,
|
|
158
|
+
"matches": None,
|
|
159
|
+
"slug": "uksc/2025/1",
|
|
160
|
+
"content_hash": "ed7002b439e9ac845f22357d822bac1444730fbdb6016d3ec9432297b9ec9f73",
|
|
158
161
|
}
|
|
159
162
|
|
|
160
163
|
|
|
@@ -8,7 +8,7 @@ from caselawclient.types import DocumentIdentifierSlug
|
|
|
8
8
|
from . import Identifier, IdentifierSchema
|
|
9
9
|
from .exceptions import IdentifierValidationException
|
|
10
10
|
|
|
11
|
-
VALID_NCN_PATTERN = re.compile(r"(^\[([0-9]{4})\] ([a-zA-Z]+)(?: ([a-zA-Z]+))? ([0-9]+)(?: \(([a-zA-
|
|
11
|
+
VALID_NCN_PATTERN = re.compile(r"(^\[([0-9]{4})\] ([a-zA-Z]+)(?: ([a-zA-Z]+))? ([0-9]+)(?: \(([a-zA-Z0-9]+)\))?$)")
|
|
12
12
|
"""
|
|
13
13
|
This is a catch-all pattern for anything which looks like a Neutral Citation, even if the court itself isn't valid. Checking that an NCN is plausibly correct is handled elsewhere.
|
|
14
14
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ds-caselaw-marklogic-api-client
|
|
3
|
-
Version: 36.0.
|
|
3
|
+
Version: 36.0.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
|
|
@@ -4,7 +4,7 @@ caselawclient/client_helpers/__init__.py,sha256=eucyUXwUqI72TPw-C5zLcHlMu4GtFY50
|
|
|
4
4
|
caselawclient/client_helpers/search_helpers.py,sha256=R99HyRLeYHgsw2L3DOidEqlKLLvs6Tga5rKTuWQViig,1525
|
|
5
5
|
caselawclient/content_hash.py,sha256=0cPC4OoABq0SC2wYFX9-24DodNigeOqksDxgxQH_hUA,2221
|
|
6
6
|
caselawclient/errors.py,sha256=JC16fEGq_MRJX-_KFzfINCV2Cqx8o6OWOt3C16rQd84,3142
|
|
7
|
-
caselawclient/factories.py,sha256=
|
|
7
|
+
caselawclient/factories.py,sha256=MiOwS44w6zCGZEfYdZT5x5RL8CeBIvUmiBYYWuNbC-0,6942
|
|
8
8
|
caselawclient/identifier_resolution.py,sha256=B5I1sD7o7YjzsXMECjbKjgiGLDda5bGhejsJ-lYpTIg,2429
|
|
9
9
|
caselawclient/models/__init__.py,sha256=kd23EUpvaC7aLHdgk8farqKAQEx3lf7RvNT2jEatvlg,68
|
|
10
10
|
caselawclient/models/documents/__init__.py,sha256=7U5oN2b8JZV9sFSYglBg2K7fKKQgDjTVU5FT22URx7U,19043
|
|
@@ -16,7 +16,7 @@ caselawclient/models/documents/xml.py,sha256=HlmPb63lLMnySSOLP4iexcAyQiLByKBZtTd
|
|
|
16
16
|
caselawclient/models/identifiers/__init__.py,sha256=_iAsx_e-Rxq3ED3TQQ5Vg1ZNnQn6AZQK8QCvHSFhdGg,6848
|
|
17
17
|
caselawclient/models/identifiers/exceptions.py,sha256=ckVsjPzLuTXkbd7KZRJXoxcltQCXPGL2rMyYwE5orgg,177
|
|
18
18
|
caselawclient/models/identifiers/fclid.py,sha256=Gq0G0eLdUH3j7VybluqJGVcHV3Y-hpjty1OdR91dI5Q,1453
|
|
19
|
-
caselawclient/models/identifiers/neutral_citation.py,sha256=
|
|
19
|
+
caselawclient/models/identifiers/neutral_citation.py,sha256=mFc-nYDIkLf5fM2eTSBnBigVgxuDcUF2HuMwQYEYeXY,2871
|
|
20
20
|
caselawclient/models/identifiers/press_summary_ncn.py,sha256=CKhNTnO6pfriS4Sg-gt0Pf0fRhH53Uf0flULPncJWM4,762
|
|
21
21
|
caselawclient/models/identifiers/unpacker.py,sha256=fKfiuTKaN-71e40PV8BC9PueKjwgfX9Xw3IVdy8mkqg,2299
|
|
22
22
|
caselawclient/models/judgments.py,sha256=r40irgdEID-NeSNLm3OUdUBznMpRSwjD2SJrGlBgP8o,2208
|
|
@@ -82,7 +82,7 @@ caselawclient/xquery/validate_document.xqy,sha256=PgaDcnqCRJPIVqfmWsNlXmCLNKd21q
|
|
|
82
82
|
caselawclient/xquery/xslt.xqy,sha256=w57wNijH3dkwHkpKeAxqjlghVflQwo8cq6jS_sm-erM,199
|
|
83
83
|
caselawclient/xquery/xslt_transform.xqy,sha256=cccaFiGkCcvSfDv007UriZ3I4ak2nTLP1trRZdbOoS8,2462
|
|
84
84
|
caselawclient/xquery_type_dicts.py,sha256=21V6PJ0a8lPZuwzQCWeHNo914hdCbCJtOvnqdHcTpKk,6383
|
|
85
|
-
ds_caselaw_marklogic_api_client-36.0.
|
|
86
|
-
ds_caselaw_marklogic_api_client-36.0.
|
|
87
|
-
ds_caselaw_marklogic_api_client-36.0.
|
|
88
|
-
ds_caselaw_marklogic_api_client-36.0.
|
|
85
|
+
ds_caselaw_marklogic_api_client-36.0.2.dist-info/LICENSE.md,sha256=fGMzyyLuQW-IAXUeDSCrRdsYW536aEWThdbpCjo6ZKg,1108
|
|
86
|
+
ds_caselaw_marklogic_api_client-36.0.2.dist-info/METADATA,sha256=RPPIbVqAj3O8nLNmxGIH1sUbGlwsOlsUxqMFjy3kmTY,4206
|
|
87
|
+
ds_caselaw_marklogic_api_client-36.0.2.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
|
|
88
|
+
ds_caselaw_marklogic_api_client-36.0.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|