isaacus 0.14.0__py3-none-any.whl → 0.15.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.
isaacus/_version.py CHANGED
@@ -1,4 +1,4 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  __title__ = "isaacus"
4
- __version__ = "0.14.0" # x-release-please-version
4
+ __version__ = "0.15.0" # x-release-please-version
@@ -26,3 +26,15 @@ class Span(BaseModel):
26
26
  The zero-based end index of the half-open span (i.e., the end is exclusive) of
27
27
  Unicode code points in the input text.
28
28
  """
29
+
30
+ def decode(self, text: str) -> str:
31
+ """Decode the span from the given text.
32
+
33
+ Args:
34
+ text (str): The input text from which to decode the span.
35
+
36
+ Returns:
37
+ str: The substring of the input text corresponding to the span.
38
+ """
39
+
40
+ return text[self.start:self.end]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: isaacus
3
- Version: 0.14.0
3
+ Version: 0.15.0
4
4
  Summary: The official Python library for the isaacus API
5
5
  Project-URL: Homepage, https://github.com/isaacus-dev/isaacus-python
6
6
  Project-URL: Repository, https://github.com/isaacus-dev/isaacus-python
@@ -11,7 +11,7 @@ isaacus/_resource.py,sha256=iP_oYhz5enCI58mK7hlwLoPMPh4Q5s8-KBv-jGfv2aM,1106
11
11
  isaacus/_response.py,sha256=aXLF5ia58bjjQXTxY574lh7JfKXiGL2tDTX09klm8lw,28794
12
12
  isaacus/_streaming.py,sha256=jcoIlOzPElsxFLKe54I-TavCZEuYIx_MYkZN3uSQFqk,10225
13
13
  isaacus/_types.py,sha256=hm4MJQF5-9CmsPcIufE6_KvsWtxKrRMnJAgZ7MBydsk,7595
14
- isaacus/_version.py,sha256=FaENilWA_XNi_t9PkVGi3_bq-RjdUPrO9ra7MRMLv4c,160
14
+ isaacus/_version.py,sha256=N6-UZg3sKl1IEerj_3hXICjFDs_17HzpNNGDwr326ZE,160
15
15
  isaacus/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
16
  isaacus/_utils/__init__.py,sha256=7fch0GT9zpNnErbciSpUNa-SjTxxjY6kxHxKMOM4AGs,2305
17
17
  isaacus/_utils/_compat.py,sha256=D8gtAvjJQrDWt9upS0XaG9Rr5l1QhiAx_I_1utT_tt0,1195
@@ -63,10 +63,10 @@ isaacus/types/ilgs/v1/person.py,sha256=TKYtiJyvqCQKpHa-JhwchItxdBYRZtBe4djUWSibm
63
63
  isaacus/types/ilgs/v1/phone_number.py,sha256=Iba1FNZONZoeueTfRmQ0Go97mH46U99o2SrYmfMY9So,885
64
64
  isaacus/types/ilgs/v1/quote.py,sha256=UsrXbyBu5hOroijIQn9e0Ckwrl9f5QCHNGy7w7xrx14,1757
65
65
  isaacus/types/ilgs/v1/segment.py,sha256=-_Vw5qJiB3ZpcSIBggM3ehnaJn-7U0vMtGVRC6ZGHss,8483
66
- isaacus/types/ilgs/v1/span.py,sha256=LaFHGcSL6cuszJWQTszDw0ic-mUtK6-0qMfLpM_j1Ic,1150
66
+ isaacus/types/ilgs/v1/span.py,sha256=rO1QGiLgUkzHIB3lliXOii-vPB1SRRKtYrJ4e2LDHbM,1492
67
67
  isaacus/types/ilgs/v1/term.py,sha256=VOeQPpbw7jOf0kz1lxGyNn-rysXpb-7Fw8fRdCHeH_Q,2209
68
68
  isaacus/types/ilgs/v1/website.py,sha256=L0_B57cHe88nBeqBV0hn3KZ-qAnoaYUj79yk18T-vmU,820
69
- isaacus-0.14.0.dist-info/METADATA,sha256=TPukdaqWOHyvmW6BYyzJK9b1YriJfoHN5BkS9E10eCg,17499
70
- isaacus-0.14.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
71
- isaacus-0.14.0.dist-info/licenses/LICENSE,sha256=a39aM3IX2G2L5Xs88KP8lWSk-UJ3Eaqo8HwnQs9c08U,11337
72
- isaacus-0.14.0.dist-info/RECORD,,
69
+ isaacus-0.15.0.dist-info/METADATA,sha256=a0F5WzvN2GvlmdsdXBFf5D7nMGsiN2zmcxgtpGzp_z0,17499
70
+ isaacus-0.15.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
71
+ isaacus-0.15.0.dist-info/licenses/LICENSE,sha256=a39aM3IX2G2L5Xs88KP8lWSk-UJ3Eaqo8HwnQs9c08U,11337
72
+ isaacus-0.15.0.dist-info/RECORD,,