Invincible14 commited on
Commit
1547776
·
verified ·
1 Parent(s): 14a729a

Upload 5 files

Browse files
.gitattributes CHANGED
@@ -77,3 +77,4 @@ pypdf/_codecs/__pycache__/core_font_metrics.cpython-314.pyc filter=lfs diff=lfs
77
  1_foundations/community_contributions/NLP_Agent_Dinesh_Uthayakumar/eval2_money_customers_owe.wav filter=lfs diff=lfs merge=lfs -text
78
  1_foundations/community_contributions/NLP_Agent_Dinesh_Uthayakumar/eval3_total_estimated_revenue.wav filter=lfs diff=lfs merge=lfs -text
79
  1_foundations/community_contributions/seung-gu/me/linkedin.pdf filter=lfs diff=lfs merge=lfs -text
 
 
77
  1_foundations/community_contributions/NLP_Agent_Dinesh_Uthayakumar/eval2_money_customers_owe.wav filter=lfs diff=lfs merge=lfs -text
78
  1_foundations/community_contributions/NLP_Agent_Dinesh_Uthayakumar/eval3_total_estimated_revenue.wav filter=lfs diff=lfs merge=lfs -text
79
  1_foundations/community_contributions/seung-gu/me/linkedin.pdf filter=lfs diff=lfs merge=lfs -text
80
+ jiter/jiter.cp314-win_amd64.pyd filter=lfs diff=lfs merge=lfs -text
jiter/__init__.py ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ from .jiter import *
2
+
3
+ __doc__ = jiter.__doc__
4
+ if hasattr(jiter, "__all__"):
5
+ __all__ = jiter.__all__
jiter/__init__.pyi ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import decimal
2
+ from typing import Any, Literal
3
+
4
+ def from_json(
5
+ json_data: bytes,
6
+ /,
7
+ *,
8
+ allow_inf_nan: bool = True,
9
+ cache_mode: Literal[True, False, "all", "keys", "none"] = "all",
10
+ partial_mode: Literal[True, False, "off", "on", "trailing-strings"] = False,
11
+ catch_duplicate_keys: bool = False,
12
+ float_mode: Literal["float", "decimal", "lossless-float"] = "float",
13
+ ) -> Any:
14
+ """
15
+ Parse input bytes into a JSON object.
16
+
17
+ Arguments:
18
+ json_data: The JSON data to parse
19
+ allow_inf_nan: Whether to allow infinity (`Infinity` an `-Infinity`) and `NaN` values to float fields.
20
+ Defaults to True.
21
+ cache_mode: cache Python strings to improve performance at the cost of some memory usage
22
+ - True / 'all' - cache all strings
23
+ - 'keys' - cache only object keys
24
+ - False / 'none' - cache nothing
25
+ partial_mode: How to handle incomplete strings:
26
+ - False / 'off' - raise an exception if the input is incomplete
27
+ - True / 'on' - allow incomplete JSON but discard the last string if it is incomplete
28
+ - 'trailing-strings' - allow incomplete JSON, and include the last incomplete string in the output
29
+ catch_duplicate_keys: if True, raise an exception if objects contain the same key multiple times
30
+ float_mode: How to return floats: as a `float`, `Decimal` or `LosslessFloat`
31
+
32
+ Returns:
33
+ Python object built from the JSON input.
34
+ """
35
+
36
+ def cache_clear() -> None:
37
+ """
38
+ Reset the string cache.
39
+ """
40
+
41
+ def cache_usage() -> int:
42
+ """
43
+ get the size of the string cache.
44
+
45
+ Returns:
46
+ Size of the string cache in bytes.
47
+ """
48
+
49
+
50
+ class LosslessFloat:
51
+ """
52
+ Represents a float from JSON, by holding the underlying bytes representing a float from JSON.
53
+ """
54
+ def __init__(self, json_float: bytes):
55
+ """Construct a LosslessFloat object from a JSON bytes slice"""
56
+
57
+ def as_decimal(self) -> decimal.Decimal:
58
+ """Construct a Python Decimal from the JSON bytes slice"""
59
+
60
+ def __float__(self) -> float:
61
+ """Construct a Python float from the JSON bytes slice"""
62
+
63
+ def __bytes__(self) -> bytes:
64
+ """Return the JSON bytes slice as bytes"""
65
+
66
+ def __str__(self):
67
+ """Return the JSON bytes slice as a string"""
68
+
69
+ def __repr__(self):
70
+ ...
jiter/__pycache__/__init__.cpython-314.pyc ADDED
Binary file (357 Bytes). View file
 
jiter/jiter.cp314-win_amd64.pyd ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a8667364630d7d4e9cfd03eda2fd3aa4f718503ab1d210b5561b3a0220bcbd74
3
+ size 443392
jiter/py.typed ADDED
File without changes