ds-caselaw-marklogic-api-client 29.0.1__py3-none-any.whl → 29.1.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.

Potentially problematic release.


This version of ds-caselaw-marklogic-api-client might be problematic. Click here for more details.

@@ -83,6 +83,9 @@ class Identifier(ABC):
83
83
  def __repr__(self) -> str:
84
84
  return f"<{self.schema.name} {self.value}: {self.uuid}>"
85
85
 
86
+ def __str__(self) -> str:
87
+ return self.value
88
+
86
89
  def __init__(self, value: str, uuid: Optional[str] = None) -> None:
87
90
  self.value = value
88
91
  if uuid:
@@ -0,0 +1,20 @@
1
+ from .neutral_citation import NeutralCitationNumber, NeutralCitationNumberSchema
2
+
3
+
4
+ class PressSummaryRelatedNCNIdentifierSchema(NeutralCitationNumberSchema):
5
+ """
6
+ Identifier schema for relating a Press Summary to a Judgment with a given NCN
7
+ """
8
+
9
+ name = "Press Summary relates to NCN"
10
+ namespace = "uksummaryofncn"
11
+ human_readable = True
12
+ base_score_multiplier = 0.5
13
+
14
+ @classmethod
15
+ def compile_identifier_url_slug(cls, value: str) -> str:
16
+ return super().compile_identifier_url_slug(value) + "/press-summary"
17
+
18
+
19
+ class PressSummaryRelatedNCNIdentifier(NeutralCitationNumber):
20
+ schema = NeutralCitationNumberSchema
@@ -251,8 +251,6 @@ def request_parse(
251
251
  },
252
252
  }
253
253
 
254
- # breakpoint()
255
-
256
254
  client.publish(
257
255
  TopicArn=env("REPARSE_SNS_TOPIC"),
258
256
  Message=json.dumps(message_to_send),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ds-caselaw-marklogic-api-client
3
- Version: 29.0.1
3
+ Version: 29.1.0
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
@@ -13,15 +13,16 @@ caselawclient/models/documents/exceptions.py,sha256=rw1xId16vBKvBImgFmFUpeFgKqU7
13
13
  caselawclient/models/documents/statuses.py,sha256=Cp4dTQmJOtsU41EJcxy5dV1841pGD2PNWH0VrkDEv4Q,579
14
14
  caselawclient/models/documents/transforms/html.xsl,sha256=oSSO-IBX4qLiSWexQYmWJfGNevF09aCBx4D1NYqXxpo,38322
15
15
  caselawclient/models/documents/xml.py,sha256=HlmPb63lLMnySSOLP4iexcAyQiLByKBZtTd25f8sY8M,1268
16
- caselawclient/models/identifiers/__init__.py,sha256=9DtWdBQYrdiQC_LPyG-nnEj22vNJyuy9KSBTwSlN8EI,6464
16
+ caselawclient/models/identifiers/__init__.py,sha256=mi7PGHYtezZx7HjpIPpBn58Ugs7XMY7jFeAnkYtxsic,6521
17
17
  caselawclient/models/identifiers/fclid.py,sha256=pTO586ra0sr4DbjHSxuI8UlxfNXLm9nDNVoDUIxiUrE,1354
18
18
  caselawclient/models/identifiers/neutral_citation.py,sha256=3Jw1_-NmGfGmrWGFSzLdTHBYHIHq4tPkF8U7Jba-jGo,1848
19
+ caselawclient/models/identifiers/press_summary_ncn.py,sha256=r55-qgi9LDnGxY8vTKijzotGknA6mNLpu55QQTV8Lxo,652
19
20
  caselawclient/models/identifiers/unpacker.py,sha256=xvp480QESbN36NEc6qeo-orqOBq6WchnLI7thY7A1qs,2156
20
21
  caselawclient/models/judgments.py,sha256=xFjfOspa9ZL29gvvGVNq11JC7h-LKebFMrQYvVIIoEI,1868
21
22
  caselawclient/models/neutral_citation_mixin.py,sha256=LDaxNndLcTKsjJCyEKO1kGTJ6YD6h-6SzQVE0-gwPSI,2208
22
23
  caselawclient/models/press_summaries.py,sha256=bEqJxu-7eBLhwulOsDXYDl2ptIp3RkkMpOcdVvWB5ds,1836
23
24
  caselawclient/models/utilities/__init__.py,sha256=u3yIhbTjFQ1JJyAm5wsMEBswWl4t6Z7UMORF5FqC2xQ,1257
24
- caselawclient/models/utilities/aws.py,sha256=umfPzjtykg_-OP1ACirpXfOLN4QenqA0A8tJk3DzYRk,8211
25
+ caselawclient/models/utilities/aws.py,sha256=a8WyM9PDjgmwbd7Wi8mwH3GkE0K2SMVPHJr1Rw-pQxc,8191
25
26
  caselawclient/models/utilities/dates.py,sha256=WwORxVjUHM1ZFcBF6Qtwo3Cj0sATsnSECkUZ6ls1N1Q,492
26
27
  caselawclient/models/utilities/move.py,sha256=Rsx1eGHVjbGz0WMVDjy8b_5t4Ig8aP55sLudL07MVUs,3621
27
28
  caselawclient/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -77,7 +78,7 @@ caselawclient/xquery/validate_document.xqy,sha256=PgaDcnqCRJPIVqfmWsNlXmCLNKd21q
77
78
  caselawclient/xquery/xslt.xqy,sha256=w57wNijH3dkwHkpKeAxqjlghVflQwo8cq6jS_sm-erM,199
78
79
  caselawclient/xquery/xslt_transform.xqy,sha256=smyFFxqmtkuOzBd2l7uw6K2oAsYctudrP8omdv_XNAM,2463
79
80
  caselawclient/xquery_type_dicts.py,sha256=kybL-YzwK34Fr6MeWfqVOJHYrs0ZNeDWXDsp8o2Yb1U,6114
80
- ds_caselaw_marklogic_api_client-29.0.1.dist-info/LICENSE.md,sha256=fGMzyyLuQW-IAXUeDSCrRdsYW536aEWThdbpCjo6ZKg,1108
81
- ds_caselaw_marklogic_api_client-29.0.1.dist-info/METADATA,sha256=6r95tWetaoYKAZq0gj8l44h_iTSuXpSkIDCFWzQxLX8,4272
82
- ds_caselaw_marklogic_api_client-29.0.1.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
83
- ds_caselaw_marklogic_api_client-29.0.1.dist-info/RECORD,,
81
+ ds_caselaw_marklogic_api_client-29.1.0.dist-info/LICENSE.md,sha256=fGMzyyLuQW-IAXUeDSCrRdsYW536aEWThdbpCjo6ZKg,1108
82
+ ds_caselaw_marklogic_api_client-29.1.0.dist-info/METADATA,sha256=CL7p5JNVbd_pEDsJx9ME1Z0LjtYJbbDk_GiAd4YQQZs,4272
83
+ ds_caselaw_marklogic_api_client-29.1.0.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
84
+ ds_caselaw_marklogic_api_client-29.1.0.dist-info/RECORD,,