koichi12 commited on
Commit
6ef22bb
·
verified ·
1 Parent(s): 89bcfcb

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .venv/lib/python3.11/site-packages/annotated_types/py.typed +0 -0
  2. .venv/lib/python3.11/site-packages/annotated_types/test_cases.py +151 -0
  3. .venv/lib/python3.11/site-packages/dill/tests/__pycache__/__init__.cpython-311.pyc +0 -0
  4. .venv/lib/python3.11/site-packages/dill/tests/__pycache__/__main__.cpython-311.pyc +0 -0
  5. .venv/lib/python3.11/site-packages/dill/tests/__pycache__/test_abc.cpython-311.pyc +0 -0
  6. .venv/lib/python3.11/site-packages/dill/tests/__pycache__/test_check.cpython-311.pyc +0 -0
  7. .venv/lib/python3.11/site-packages/dill/tests/__pycache__/test_classdef.cpython-311.pyc +0 -0
  8. .venv/lib/python3.11/site-packages/dill/tests/__pycache__/test_dataclasses.cpython-311.pyc +0 -0
  9. .venv/lib/python3.11/site-packages/dill/tests/__pycache__/test_detect.cpython-311.pyc +0 -0
  10. .venv/lib/python3.11/site-packages/dill/tests/__pycache__/test_dictviews.cpython-311.pyc +0 -0
  11. .venv/lib/python3.11/site-packages/dill/tests/__pycache__/test_diff.cpython-311.pyc +0 -0
  12. .venv/lib/python3.11/site-packages/dill/tests/__pycache__/test_extendpickle.cpython-311.pyc +0 -0
  13. .venv/lib/python3.11/site-packages/dill/tests/__pycache__/test_fglobals.cpython-311.pyc +0 -0
  14. .venv/lib/python3.11/site-packages/dill/tests/__pycache__/test_file.cpython-311.pyc +0 -0
  15. .venv/lib/python3.11/site-packages/dill/tests/__pycache__/test_functions.cpython-311.pyc +0 -0
  16. .venv/lib/python3.11/site-packages/dill/tests/__pycache__/test_functors.cpython-311.pyc +0 -0
  17. .venv/lib/python3.11/site-packages/dill/tests/__pycache__/test_logger.cpython-311.pyc +0 -0
  18. .venv/lib/python3.11/site-packages/dill/tests/__pycache__/test_mixins.cpython-311.pyc +0 -0
  19. .venv/lib/python3.11/site-packages/dill/tests/__pycache__/test_module.cpython-311.pyc +0 -0
  20. .venv/lib/python3.11/site-packages/dill/tests/__pycache__/test_nested.cpython-311.pyc +0 -0
  21. .venv/lib/python3.11/site-packages/dill/tests/__pycache__/test_objects.cpython-311.pyc +0 -0
  22. .venv/lib/python3.11/site-packages/dill/tests/__pycache__/test_properties.cpython-311.pyc +0 -0
  23. .venv/lib/python3.11/site-packages/dill/tests/__pycache__/test_pycapsule.cpython-311.pyc +0 -0
  24. .venv/lib/python3.11/site-packages/dill/tests/__pycache__/test_recursive.cpython-311.pyc +0 -0
  25. .venv/lib/python3.11/site-packages/dill/tests/__pycache__/test_registered.cpython-311.pyc +0 -0
  26. .venv/lib/python3.11/site-packages/dill/tests/__pycache__/test_restricted.cpython-311.pyc +0 -0
  27. .venv/lib/python3.11/site-packages/dill/tests/__pycache__/test_selected.cpython-311.pyc +0 -0
  28. .venv/lib/python3.11/site-packages/dill/tests/__pycache__/test_session.cpython-311.pyc +0 -0
  29. .venv/lib/python3.11/site-packages/dill/tests/__pycache__/test_source.cpython-311.pyc +0 -0
  30. .venv/lib/python3.11/site-packages/dill/tests/__pycache__/test_sources.cpython-311.pyc +0 -0
  31. .venv/lib/python3.11/site-packages/dill/tests/__pycache__/test_temp.cpython-311.pyc +0 -0
  32. .venv/lib/python3.11/site-packages/dill/tests/__pycache__/test_threads.cpython-311.pyc +0 -0
  33. .venv/lib/python3.11/site-packages/dill/tests/__pycache__/test_weakref.cpython-311.pyc +0 -0
  34. .venv/lib/python3.11/site-packages/lark-1.2.2.dist-info/INSTALLER +1 -0
  35. .venv/lib/python3.11/site-packages/lark-1.2.2.dist-info/LICENSE +18 -0
  36. .venv/lib/python3.11/site-packages/lark-1.2.2.dist-info/METADATA +47 -0
  37. .venv/lib/python3.11/site-packages/lark-1.2.2.dist-info/RECORD +82 -0
  38. .venv/lib/python3.11/site-packages/lark-1.2.2.dist-info/WHEEL +5 -0
  39. .venv/lib/python3.11/site-packages/lark-1.2.2.dist-info/entry_points.txt +2 -0
  40. .venv/lib/python3.11/site-packages/lark-1.2.2.dist-info/top_level.txt +1 -0
  41. .venv/lib/python3.11/site-packages/lmformatenforcer/__init__.py +23 -0
  42. .venv/lib/python3.11/site-packages/lmformatenforcer/__pycache__/__init__.cpython-311.pyc +0 -0
  43. .venv/lib/python3.11/site-packages/lmformatenforcer/__pycache__/analyzer.cpython-311.pyc +0 -0
  44. .venv/lib/python3.11/site-packages/lmformatenforcer/__pycache__/characterlevelparser.cpython-311.pyc +0 -0
  45. .venv/lib/python3.11/site-packages/lmformatenforcer/__pycache__/consts.cpython-311.pyc +0 -0
  46. .venv/lib/python3.11/site-packages/lmformatenforcer/__pycache__/exceptions.cpython-311.pyc +0 -0
  47. .venv/lib/python3.11/site-packages/lmformatenforcer/__pycache__/jsonschemaparser.cpython-311.pyc +0 -0
  48. .venv/lib/python3.11/site-packages/lmformatenforcer/__pycache__/regexparser.cpython-311.pyc +0 -0
  49. .venv/lib/python3.11/site-packages/lmformatenforcer/__pycache__/tokenenforcer.cpython-311.pyc +0 -0
  50. .venv/lib/python3.11/site-packages/lmformatenforcer/__pycache__/tokenizerprefixtree.cpython-311.pyc +0 -0
.venv/lib/python3.11/site-packages/annotated_types/py.typed ADDED
File without changes
.venv/lib/python3.11/site-packages/annotated_types/test_cases.py ADDED
@@ -0,0 +1,151 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import math
2
+ import sys
3
+ from datetime import date, datetime, timedelta, timezone
4
+ from decimal import Decimal
5
+ from typing import Any, Dict, Iterable, Iterator, List, NamedTuple, Set, Tuple
6
+
7
+ if sys.version_info < (3, 9):
8
+ from typing_extensions import Annotated
9
+ else:
10
+ from typing import Annotated
11
+
12
+ import annotated_types as at
13
+
14
+
15
+ class Case(NamedTuple):
16
+ """
17
+ A test case for `annotated_types`.
18
+ """
19
+
20
+ annotation: Any
21
+ valid_cases: Iterable[Any]
22
+ invalid_cases: Iterable[Any]
23
+
24
+
25
+ def cases() -> Iterable[Case]:
26
+ # Gt, Ge, Lt, Le
27
+ yield Case(Annotated[int, at.Gt(4)], (5, 6, 1000), (4, 0, -1))
28
+ yield Case(Annotated[float, at.Gt(0.5)], (0.6, 0.7, 0.8, 0.9), (0.5, 0.0, -0.1))
29
+ yield Case(
30
+ Annotated[datetime, at.Gt(datetime(2000, 1, 1))],
31
+ [datetime(2000, 1, 2), datetime(2000, 1, 3)],
32
+ [datetime(2000, 1, 1), datetime(1999, 12, 31)],
33
+ )
34
+ yield Case(
35
+ Annotated[datetime, at.Gt(date(2000, 1, 1))],
36
+ [date(2000, 1, 2), date(2000, 1, 3)],
37
+ [date(2000, 1, 1), date(1999, 12, 31)],
38
+ )
39
+ yield Case(
40
+ Annotated[datetime, at.Gt(Decimal('1.123'))],
41
+ [Decimal('1.1231'), Decimal('123')],
42
+ [Decimal('1.123'), Decimal('0')],
43
+ )
44
+
45
+ yield Case(Annotated[int, at.Ge(4)], (4, 5, 6, 1000, 4), (0, -1))
46
+ yield Case(Annotated[float, at.Ge(0.5)], (0.5, 0.6, 0.7, 0.8, 0.9), (0.4, 0.0, -0.1))
47
+ yield Case(
48
+ Annotated[datetime, at.Ge(datetime(2000, 1, 1))],
49
+ [datetime(2000, 1, 2), datetime(2000, 1, 3)],
50
+ [datetime(1998, 1, 1), datetime(1999, 12, 31)],
51
+ )
52
+
53
+ yield Case(Annotated[int, at.Lt(4)], (0, -1), (4, 5, 6, 1000, 4))
54
+ yield Case(Annotated[float, at.Lt(0.5)], (0.4, 0.0, -0.1), (0.5, 0.6, 0.7, 0.8, 0.9))
55
+ yield Case(
56
+ Annotated[datetime, at.Lt(datetime(2000, 1, 1))],
57
+ [datetime(1999, 12, 31), datetime(1999, 12, 31)],
58
+ [datetime(2000, 1, 2), datetime(2000, 1, 3)],
59
+ )
60
+
61
+ yield Case(Annotated[int, at.Le(4)], (4, 0, -1), (5, 6, 1000))
62
+ yield Case(Annotated[float, at.Le(0.5)], (0.5, 0.0, -0.1), (0.6, 0.7, 0.8, 0.9))
63
+ yield Case(
64
+ Annotated[datetime, at.Le(datetime(2000, 1, 1))],
65
+ [datetime(2000, 1, 1), datetime(1999, 12, 31)],
66
+ [datetime(2000, 1, 2), datetime(2000, 1, 3)],
67
+ )
68
+
69
+ # Interval
70
+ yield Case(Annotated[int, at.Interval(gt=4)], (5, 6, 1000), (4, 0, -1))
71
+ yield Case(Annotated[int, at.Interval(gt=4, lt=10)], (5, 6), (4, 10, 1000, 0, -1))
72
+ yield Case(Annotated[float, at.Interval(ge=0.5, le=1)], (0.5, 0.9, 1), (0.49, 1.1))
73
+ yield Case(
74
+ Annotated[datetime, at.Interval(gt=datetime(2000, 1, 1), le=datetime(2000, 1, 3))],
75
+ [datetime(2000, 1, 2), datetime(2000, 1, 3)],
76
+ [datetime(2000, 1, 1), datetime(2000, 1, 4)],
77
+ )
78
+
79
+ yield Case(Annotated[int, at.MultipleOf(multiple_of=3)], (0, 3, 9), (1, 2, 4))
80
+ yield Case(Annotated[float, at.MultipleOf(multiple_of=0.5)], (0, 0.5, 1, 1.5), (0.4, 1.1))
81
+
82
+ # lengths
83
+
84
+ yield Case(Annotated[str, at.MinLen(3)], ('123', '1234', 'x' * 10), ('', '1', '12'))
85
+ yield Case(Annotated[str, at.Len(3)], ('123', '1234', 'x' * 10), ('', '1', '12'))
86
+ yield Case(Annotated[List[int], at.MinLen(3)], ([1, 2, 3], [1, 2, 3, 4], [1] * 10), ([], [1], [1, 2]))
87
+ yield Case(Annotated[List[int], at.Len(3)], ([1, 2, 3], [1, 2, 3, 4], [1] * 10), ([], [1], [1, 2]))
88
+
89
+ yield Case(Annotated[str, at.MaxLen(4)], ('', '1234'), ('12345', 'x' * 10))
90
+ yield Case(Annotated[str, at.Len(0, 4)], ('', '1234'), ('12345', 'x' * 10))
91
+ yield Case(Annotated[List[str], at.MaxLen(4)], ([], ['a', 'bcdef'], ['a', 'b', 'c']), (['a'] * 5, ['b'] * 10))
92
+ yield Case(Annotated[List[str], at.Len(0, 4)], ([], ['a', 'bcdef'], ['a', 'b', 'c']), (['a'] * 5, ['b'] * 10))
93
+
94
+ yield Case(Annotated[str, at.Len(3, 5)], ('123', '12345'), ('', '1', '12', '123456', 'x' * 10))
95
+ yield Case(Annotated[str, at.Len(3, 3)], ('123',), ('12', '1234'))
96
+
97
+ yield Case(Annotated[Dict[int, int], at.Len(2, 3)], [{1: 1, 2: 2}], [{}, {1: 1}, {1: 1, 2: 2, 3: 3, 4: 4}])
98
+ yield Case(Annotated[Set[int], at.Len(2, 3)], ({1, 2}, {1, 2, 3}), (set(), {1}, {1, 2, 3, 4}))
99
+ yield Case(Annotated[Tuple[int, ...], at.Len(2, 3)], ((1, 2), (1, 2, 3)), ((), (1,), (1, 2, 3, 4)))
100
+
101
+ # Timezone
102
+
103
+ yield Case(
104
+ Annotated[datetime, at.Timezone(None)], [datetime(2000, 1, 1)], [datetime(2000, 1, 1, tzinfo=timezone.utc)]
105
+ )
106
+ yield Case(
107
+ Annotated[datetime, at.Timezone(...)], [datetime(2000, 1, 1, tzinfo=timezone.utc)], [datetime(2000, 1, 1)]
108
+ )
109
+ yield Case(
110
+ Annotated[datetime, at.Timezone(timezone.utc)],
111
+ [datetime(2000, 1, 1, tzinfo=timezone.utc)],
112
+ [datetime(2000, 1, 1), datetime(2000, 1, 1, tzinfo=timezone(timedelta(hours=6)))],
113
+ )
114
+ yield Case(
115
+ Annotated[datetime, at.Timezone('Europe/London')],
116
+ [datetime(2000, 1, 1, tzinfo=timezone(timedelta(0), name='Europe/London'))],
117
+ [datetime(2000, 1, 1), datetime(2000, 1, 1, tzinfo=timezone(timedelta(hours=6)))],
118
+ )
119
+
120
+ # Quantity
121
+
122
+ yield Case(Annotated[float, at.Unit(unit='m')], (5, 4.2), ('5m', '4.2m'))
123
+
124
+ # predicate types
125
+
126
+ yield Case(at.LowerCase[str], ['abc', 'foobar'], ['', 'A', 'Boom'])
127
+ yield Case(at.UpperCase[str], ['ABC', 'DEFO'], ['', 'a', 'abc', 'AbC'])
128
+ yield Case(at.IsDigit[str], ['123'], ['', 'ab', 'a1b2'])
129
+ yield Case(at.IsAscii[str], ['123', 'foo bar'], ['£100', '😊', 'whatever 👀'])
130
+
131
+ yield Case(Annotated[int, at.Predicate(lambda x: x % 2 == 0)], [0, 2, 4], [1, 3, 5])
132
+
133
+ yield Case(at.IsFinite[float], [1.23], [math.nan, math.inf, -math.inf])
134
+ yield Case(at.IsNotFinite[float], [math.nan, math.inf], [1.23])
135
+ yield Case(at.IsNan[float], [math.nan], [1.23, math.inf])
136
+ yield Case(at.IsNotNan[float], [1.23, math.inf], [math.nan])
137
+ yield Case(at.IsInfinite[float], [math.inf], [math.nan, 1.23])
138
+ yield Case(at.IsNotInfinite[float], [math.nan, 1.23], [math.inf])
139
+
140
+ # check stacked predicates
141
+ yield Case(at.IsInfinite[Annotated[float, at.Predicate(lambda x: x > 0)]], [math.inf], [-math.inf, 1.23, math.nan])
142
+
143
+ # doc
144
+ yield Case(Annotated[int, at.doc("A number")], [1, 2], [])
145
+
146
+ # custom GroupedMetadata
147
+ class MyCustomGroupedMetadata(at.GroupedMetadata):
148
+ def __iter__(self) -> Iterator[at.Predicate]:
149
+ yield at.Predicate(lambda x: float(x).is_integer())
150
+
151
+ yield Case(Annotated[float, MyCustomGroupedMetadata()], [0, 2.0], [0.01, 1.5])
.venv/lib/python3.11/site-packages/dill/tests/__pycache__/__init__.cpython-311.pyc ADDED
Binary file (396 Bytes). View file
 
.venv/lib/python3.11/site-packages/dill/tests/__pycache__/__main__.cpython-311.pyc ADDED
Binary file (1.36 kB). View file
 
.venv/lib/python3.11/site-packages/dill/tests/__pycache__/test_abc.cpython-311.pyc ADDED
Binary file (9.14 kB). View file
 
.venv/lib/python3.11/site-packages/dill/tests/__pycache__/test_check.cpython-311.pyc ADDED
Binary file (2.64 kB). View file
 
.venv/lib/python3.11/site-packages/dill/tests/__pycache__/test_classdef.cpython-311.pyc ADDED
Binary file (21.8 kB). View file
 
.venv/lib/python3.11/site-packages/dill/tests/__pycache__/test_dataclasses.cpython-311.pyc ADDED
Binary file (1.78 kB). View file
 
.venv/lib/python3.11/site-packages/dill/tests/__pycache__/test_detect.cpython-311.pyc ADDED
Binary file (9.37 kB). View file
 
.venv/lib/python3.11/site-packages/dill/tests/__pycache__/test_dictviews.cpython-311.pyc ADDED
Binary file (2.63 kB). View file
 
.venv/lib/python3.11/site-packages/dill/tests/__pycache__/test_diff.cpython-311.pyc ADDED
Binary file (3.88 kB). View file
 
.venv/lib/python3.11/site-packages/dill/tests/__pycache__/test_extendpickle.cpython-311.pyc ADDED
Binary file (2.44 kB). View file
 
.venv/lib/python3.11/site-packages/dill/tests/__pycache__/test_fglobals.cpython-311.pyc ADDED
Binary file (3.18 kB). View file
 
.venv/lib/python3.11/site-packages/dill/tests/__pycache__/test_file.cpython-311.pyc ADDED
Binary file (22.4 kB). View file
 
.venv/lib/python3.11/site-packages/dill/tests/__pycache__/test_functions.cpython-311.pyc ADDED
Binary file (8.11 kB). View file
 
.venv/lib/python3.11/site-packages/dill/tests/__pycache__/test_functors.cpython-311.pyc ADDED
Binary file (1.6 kB). View file
 
.venv/lib/python3.11/site-packages/dill/tests/__pycache__/test_logger.cpython-311.pyc ADDED
Binary file (4.27 kB). View file
 
.venv/lib/python3.11/site-packages/dill/tests/__pycache__/test_mixins.cpython-311.pyc ADDED
Binary file (7.83 kB). View file
 
.venv/lib/python3.11/site-packages/dill/tests/__pycache__/test_module.cpython-311.pyc ADDED
Binary file (3.37 kB). View file
 
.venv/lib/python3.11/site-packages/dill/tests/__pycache__/test_nested.cpython-311.pyc ADDED
Binary file (7.09 kB). View file
 
.venv/lib/python3.11/site-packages/dill/tests/__pycache__/test_objects.cpython-311.pyc ADDED
Binary file (3.09 kB). View file
 
.venv/lib/python3.11/site-packages/dill/tests/__pycache__/test_properties.cpython-311.pyc ADDED
Binary file (2.64 kB). View file
 
.venv/lib/python3.11/site-packages/dill/tests/__pycache__/test_pycapsule.cpython-311.pyc ADDED
Binary file (2.33 kB). View file
 
.venv/lib/python3.11/site-packages/dill/tests/__pycache__/test_recursive.cpython-311.pyc ADDED
Binary file (11.1 kB). View file
 
.venv/lib/python3.11/site-packages/dill/tests/__pycache__/test_registered.cpython-311.pyc ADDED
Binary file (3.1 kB). View file
 
.venv/lib/python3.11/site-packages/dill/tests/__pycache__/test_restricted.cpython-311.pyc ADDED
Binary file (1.38 kB). View file
 
.venv/lib/python3.11/site-packages/dill/tests/__pycache__/test_selected.cpython-311.pyc ADDED
Binary file (6.9 kB). View file
 
.venv/lib/python3.11/site-packages/dill/tests/__pycache__/test_session.cpython-311.pyc ADDED
Binary file (16.6 kB). View file
 
.venv/lib/python3.11/site-packages/dill/tests/__pycache__/test_source.cpython-311.pyc ADDED
Binary file (12.4 kB). View file
 
.venv/lib/python3.11/site-packages/dill/tests/__pycache__/test_sources.cpython-311.pyc ADDED
Binary file (18.9 kB). View file
 
.venv/lib/python3.11/site-packages/dill/tests/__pycache__/test_temp.cpython-311.pyc ADDED
Binary file (5.07 kB). View file
 
.venv/lib/python3.11/site-packages/dill/tests/__pycache__/test_threads.cpython-311.pyc ADDED
Binary file (2.46 kB). View file
 
.venv/lib/python3.11/site-packages/dill/tests/__pycache__/test_weakref.cpython-311.pyc ADDED
Binary file (3.15 kB). View file
 
.venv/lib/python3.11/site-packages/lark-1.2.2.dist-info/INSTALLER ADDED
@@ -0,0 +1 @@
 
 
1
+ pip
.venv/lib/python3.11/site-packages/lark-1.2.2.dist-info/LICENSE ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Copyright © 2017 Erez Shinan
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
4
+ this software and associated documentation files (the "Software"), to deal in
5
+ the Software without restriction, including without limitation the rights to
6
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
7
+ the Software, and to permit persons to whom the Software is furnished to do so,
8
+ subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
15
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
16
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
17
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
18
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
.venv/lib/python3.11/site-packages/lark-1.2.2.dist-info/METADATA ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Metadata-Version: 2.1
2
+ Name: lark
3
+ Version: 1.2.2
4
+ Summary: a modern parsing library
5
+ Author-email: Erez Shinan <erezshin@gmail.com>
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/lark-parser/lark
8
+ Project-URL: Download, https://github.com/lark-parser/lark/tarball/master
9
+ Keywords: Earley,LALR,parser,parsing,ast
10
+ Classifier: Development Status :: 5 - Production/Stable
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
14
+ Classifier: Topic :: Text Processing :: General
15
+ Classifier: Topic :: Text Processing :: Linguistic
16
+ Classifier: License :: OSI Approved :: MIT License
17
+ Requires-Python: >=3.8
18
+ Description-Content-Type: text/markdown
19
+ License-File: LICENSE
20
+ Provides-Extra: atomic_cache
21
+ Requires-Dist: atomicwrites ; extra == 'atomic_cache'
22
+ Provides-Extra: interegular
23
+ Requires-Dist: interegular <0.4.0,>=0.3.1 ; extra == 'interegular'
24
+ Provides-Extra: nearley
25
+ Requires-Dist: js2py ; extra == 'nearley'
26
+ Provides-Extra: regex
27
+ Requires-Dist: regex ; extra == 'regex'
28
+
29
+ Lark is a modern general-purpose parsing library for Python.
30
+ With Lark, you can parse any context-free grammar, efficiently, with very little code.
31
+ Main Features:
32
+ - Builds a parse-tree (AST) automagically, based on the structure of the grammar
33
+ - Earley parser
34
+ - Can parse all context-free grammars
35
+ - Full support for ambiguous grammars
36
+ - LALR(1) parser
37
+ - Fast and light, competitive with PLY
38
+ - Can generate a stand-alone parser
39
+ - CYK parser, for highly ambiguous grammars
40
+ - EBNF grammar
41
+ - Unicode fully supported
42
+ - Automatic line & column tracking
43
+ - Standard library of terminals (strings, numbers, names, etc.)
44
+ - Import grammars from Nearley.js
45
+ - Extensive test suite
46
+ - And much more!
47
+ Since version 1.2, only Python versions 3.8 and up are supported.
.venv/lib/python3.11/site-packages/lark-1.2.2.dist-info/RECORD ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ lark-1.2.2.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
2
+ lark-1.2.2.dist-info/LICENSE,sha256=Lu5g9S1OETV7-J5ysDTQUOKF5H_aE2HlZi-zIu4n13E,1055
3
+ lark-1.2.2.dist-info/METADATA,sha256=S-69HuNJr0ktlvb7J5XE48ghb_6ahYn8ksdW9HcB-d0,1831
4
+ lark-1.2.2.dist-info/RECORD,,
5
+ lark-1.2.2.dist-info/WHEEL,sha256=HiCZjzuy6Dw0hdX5R3LCFPDmFS4BWl8H-8W39XfmgX4,91
6
+ lark-1.2.2.dist-info/entry_points.txt,sha256=WXYg_uCUdFlxQDPUhli3HFah37bNNFQfXLdzCqsacGI,61
7
+ lark-1.2.2.dist-info/top_level.txt,sha256=dyS6jg8hCHHkXWvsfcIMO8rjlv_bdzAxiE0lkkzJ5hk,5
8
+ lark/__init__.py,sha256=bc0tK7h7XwHA-Y4vVeJoNIqSMA-MHVTihq8yy795WXo,744
9
+ lark/__pycache__/__init__.cpython-311.pyc,,
10
+ lark/__pycache__/ast_utils.cpython-311.pyc,,
11
+ lark/__pycache__/common.cpython-311.pyc,,
12
+ lark/__pycache__/exceptions.cpython-311.pyc,,
13
+ lark/__pycache__/grammar.cpython-311.pyc,,
14
+ lark/__pycache__/indenter.cpython-311.pyc,,
15
+ lark/__pycache__/lark.cpython-311.pyc,,
16
+ lark/__pycache__/lexer.cpython-311.pyc,,
17
+ lark/__pycache__/load_grammar.cpython-311.pyc,,
18
+ lark/__pycache__/parse_tree_builder.cpython-311.pyc,,
19
+ lark/__pycache__/parser_frontends.cpython-311.pyc,,
20
+ lark/__pycache__/reconstruct.cpython-311.pyc,,
21
+ lark/__pycache__/tree.cpython-311.pyc,,
22
+ lark/__pycache__/tree_matcher.cpython-311.pyc,,
23
+ lark/__pycache__/tree_templates.cpython-311.pyc,,
24
+ lark/__pycache__/utils.cpython-311.pyc,,
25
+ lark/__pycache__/visitors.cpython-311.pyc,,
26
+ lark/__pyinstaller/__init__.py,sha256=_PpFm44f_mwHlCpvYgv9ZgubLfNDc3PlePVir4sxRfI,182
27
+ lark/__pyinstaller/__pycache__/__init__.cpython-311.pyc,,
28
+ lark/__pyinstaller/__pycache__/hook-lark.cpython-311.pyc,,
29
+ lark/__pyinstaller/hook-lark.py,sha256=5aFHiZWVHPRdHT8qnb4kW4JSOql5GusHodHR25_q9sU,599
30
+ lark/ast_utils.py,sha256=jwn44ocNQhZGbfcFsEZnwi_gGvPbNgzjQ-0RuEtwDzI,2117
31
+ lark/common.py,sha256=M9-CFAUP3--OkftyyWjke-Kc1-pQMczT1MluHCFwdy4,3008
32
+ lark/exceptions.py,sha256=g76ygMPfSMl6ukKqFAZVpR2EAJTOOdyfJ_ALXc_MCR8,10939
33
+ lark/grammar.py,sha256=DR17QSLSKCRhMOqx2UQh4n-Ywu4CD-wjdQxtuM8OHkY,3665
34
+ lark/grammars/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
35
+ lark/grammars/__pycache__/__init__.cpython-311.pyc,,
36
+ lark/grammars/common.lark,sha256=FV9xGIPiPqHRM4ULAxP6jApXRTVsSwbOe697I9s7DLs,885
37
+ lark/grammars/lark.lark,sha256=nq1NTZYqm_DPI2mjRIlpd3ZcxPjGhapA4GUzkcfBTQs,1541
38
+ lark/grammars/python.lark,sha256=WMakTkpzCqOd0jUjYONI3LOnSy2KRN9NoL9pFtAZYCI,10641
39
+ lark/grammars/unicode.lark,sha256=d9YCz0XWimdl4F8M5YCptavBcFG9D58Yd4aMwxjYtEI,96
40
+ lark/indenter.py,sha256=L5uNDYUMNrk4ZTWKmW0Tu-H-3GGErLOHygMC32N_twE,4221
41
+ lark/lark.py,sha256=_IHWmTxt43kfd9eYVtwx58zEWWSFAq9_gKH7Oeu5PZs,28184
42
+ lark/lexer.py,sha256=OwgQPCpQ-vUi-2aeZztsydd4DLkEgCbZeucvEPvHFi4,24037
43
+ lark/load_grammar.py,sha256=WYZDxyO6omhA8NKyMjSckfAMwVKuIMF3liiYXE_-kHo,53946
44
+ lark/parse_tree_builder.py,sha256=jT_3gCEkBGZoTXAWSnhMn1kRuJILWB-E7XkUciYNHI4,14412
45
+ lark/parser_frontends.py,sha256=mxMXxux2hkfTfE859wuVp4-Fr1no6YVEUt8toDjEdPQ,10165
46
+ lark/parsers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
47
+ lark/parsers/__pycache__/__init__.cpython-311.pyc,,
48
+ lark/parsers/__pycache__/cyk.cpython-311.pyc,,
49
+ lark/parsers/__pycache__/earley.cpython-311.pyc,,
50
+ lark/parsers/__pycache__/earley_common.cpython-311.pyc,,
51
+ lark/parsers/__pycache__/earley_forest.cpython-311.pyc,,
52
+ lark/parsers/__pycache__/grammar_analysis.cpython-311.pyc,,
53
+ lark/parsers/__pycache__/lalr_analysis.cpython-311.pyc,,
54
+ lark/parsers/__pycache__/lalr_interactive_parser.cpython-311.pyc,,
55
+ lark/parsers/__pycache__/lalr_parser.cpython-311.pyc,,
56
+ lark/parsers/__pycache__/lalr_parser_state.cpython-311.pyc,,
57
+ lark/parsers/__pycache__/xearley.cpython-311.pyc,,
58
+ lark/parsers/cyk.py,sha256=c3GLk3kq23Xwb8MqUOjvivwP488KJY6NUWgxqeR5980,12192
59
+ lark/parsers/earley.py,sha256=03sW9vfBkcH4NR72EBt8HkndDKSVSH3IdRnDulXWy24,15117
60
+ lark/parsers/earley_common.py,sha256=e2e6NrNucw-WMiNV8HqQ_TpGx6P7v_S8f5aEcF0Tkqo,1620
61
+ lark/parsers/earley_forest.py,sha256=w4JTb4tVMewue8dL-gCO96-Uo0wd4BbQUfSfIhr7txY,31332
62
+ lark/parsers/grammar_analysis.py,sha256=rQ4Sn9EP8gjXGTZXEiWLW0KByPPpeKpN5hSIQZgNl3I,7141
63
+ lark/parsers/lalr_analysis.py,sha256=DGHFk2tIluIyeFEVFfsMRU77DVbd598IJnUUOXO04yo,12207
64
+ lark/parsers/lalr_interactive_parser.py,sha256=LsgfT1gdne8pXHTCsN6bl6zD6Pdh2dDqp1rIWOzp7Yw,5757
65
+ lark/parsers/lalr_parser.py,sha256=6U8jP1AlUsuGxgJBWMq15WuGuyaolsLPevcf8HZ_zZk,4586
66
+ lark/parsers/lalr_parser_state.py,sha256=QZ12p4CtvcvFAIKIqkeDBJYgEU3ntQllBJDYXb419ls,3793
67
+ lark/parsers/xearley.py,sha256=DboXMNtuN0G-SXrrDm5zgUDUekz85h0Rih2PRvcf1LM,7825
68
+ lark/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
69
+ lark/reconstruct.py,sha256=s7CevBXchUG_fe2otdAITxIaSXCEIiSjy4Sbh5QC0hs,3763
70
+ lark/tools/__init__.py,sha256=FeKYmVUjXSt-vlQm2ktyWkcxaOCTOkZnHD_kOUWjUuA,2469
71
+ lark/tools/__pycache__/__init__.cpython-311.pyc,,
72
+ lark/tools/__pycache__/nearley.cpython-311.pyc,,
73
+ lark/tools/__pycache__/serialize.cpython-311.pyc,,
74
+ lark/tools/__pycache__/standalone.cpython-311.pyc,,
75
+ lark/tools/nearley.py,sha256=QaLYdW6mYQdDq8JKMisV3lvPqzF0wPgu8q8BtsSA33g,6265
76
+ lark/tools/serialize.py,sha256=nwt46LNxkDm0T_Uh9k2wS4fcfgvZQ2dy4-YC_aKhTQk,965
77
+ lark/tools/standalone.py,sha256=6eXDqBuzZSpE5BGZm_Fh6X5yRhAPYxNVyl2aUU3ABzA,5627
78
+ lark/tree.py,sha256=aWWHMazid8bbJanhmCjK9XK2jRFJ6N6WmlwXJGTsz28,8522
79
+ lark/tree_matcher.py,sha256=jHdZJggn405SXmPpGf9U9HLrrsfP4eNNZaj267UTB00,6003
80
+ lark/tree_templates.py,sha256=sSnfw1m8txAkJOYhcQrooG7xajVyVplunzTnNsxY720,6139
81
+ lark/utils.py,sha256=3qd1-c0YgHYklvx1hA28qF7N_Ty1Zz6TbtCFMzQanNk,11270
82
+ lark/visitors.py,sha256=VJ3T1m8p78MwXJotpOAvn06mYEqKyuIlhsAF51U-a3w,21422
.venv/lib/python3.11/site-packages/lark-1.2.2.dist-info/WHEEL ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (72.2.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
.venv/lib/python3.11/site-packages/lark-1.2.2.dist-info/entry_points.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ [pyinstaller40]
2
+ hook-dirs = lark.__pyinstaller:get_hook_dirs
.venv/lib/python3.11/site-packages/lark-1.2.2.dist-info/top_level.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ lark
.venv/lib/python3.11/site-packages/lmformatenforcer/__init__.py ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ __all__ = ['CharacterLevelParser',
2
+ 'CharacterLevelParserConfig',
3
+ 'StringParser',
4
+ 'RegexParser',
5
+ 'UnionParser',
6
+ 'SequenceParser',
7
+ 'JsonSchemaParser',
8
+ 'TokenEnforcer',
9
+ 'TokenEnforcerTokenizerData',
10
+ 'LMFormatEnforcerException',
11
+ 'FormatEnforcerAnalyzer',]
12
+
13
+ from .characterlevelparser import CharacterLevelParser, CharacterLevelParserConfig, StringParser, UnionParser, SequenceParser
14
+ from .regexparser import RegexParser
15
+ from .jsonschemaparser import JsonSchemaParser
16
+ from .tokenenforcer import TokenEnforcer, TokenEnforcerTokenizerData
17
+ from .exceptions import LMFormatEnforcerException
18
+ try:
19
+ from .analyzer import FormatEnforcerAnalyzer
20
+ except ImportError as e:
21
+ import logging
22
+ logging.warning(e)
23
+ FormatEnforcerAnalyzer = None
.venv/lib/python3.11/site-packages/lmformatenforcer/__pycache__/__init__.cpython-311.pyc ADDED
Binary file (1.12 kB). View file
 
.venv/lib/python3.11/site-packages/lmformatenforcer/__pycache__/analyzer.cpython-311.pyc ADDED
Binary file (6.81 kB). View file
 
.venv/lib/python3.11/site-packages/lmformatenforcer/__pycache__/characterlevelparser.cpython-311.pyc ADDED
Binary file (16.1 kB). View file
 
.venv/lib/python3.11/site-packages/lmformatenforcer/__pycache__/consts.cpython-311.pyc ADDED
Binary file (865 Bytes). View file
 
.venv/lib/python3.11/site-packages/lmformatenforcer/__pycache__/exceptions.cpython-311.pyc ADDED
Binary file (503 Bytes). View file
 
.venv/lib/python3.11/site-packages/lmformatenforcer/__pycache__/jsonschemaparser.cpython-311.pyc ADDED
Binary file (40.9 kB). View file
 
.venv/lib/python3.11/site-packages/lmformatenforcer/__pycache__/regexparser.cpython-311.pyc ADDED
Binary file (6.49 kB). View file
 
.venv/lib/python3.11/site-packages/lmformatenforcer/__pycache__/tokenenforcer.cpython-311.pyc ADDED
Binary file (11.5 kB). View file
 
.venv/lib/python3.11/site-packages/lmformatenforcer/__pycache__/tokenizerprefixtree.cpython-311.pyc ADDED
Binary file (10.9 kB). View file