pylibmql 0.1.0__cp38-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl → 0.1.1__cp38-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.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 pylibmql might be problematic. Click here for more details.

pylibmql/__init__.pyi ADDED
@@ -0,0 +1,72 @@
1
+ """pylibmql.pyi
2
+
3
+ Transform MQL input to structured JSON output.
4
+
5
+ ```
6
+ import pylibmql
7
+
8
+ output = pylibmql.parse('SELECT 1 FROM CLASS(MATH 2250): "Must take MATH 2250";')
9
+
10
+ print(output.version())
11
+ '''
12
+ 0.1.3
13
+ '''
14
+
15
+ print(output.json())
16
+ '''
17
+ {"version":"0.1.3","requirements":[{"query":{"quantity":{"Single":1},"selector":[{"Class":{"department_id":"MATH","course_number":2250}}]},"description":"Must take MATH 2250","priority":1}]}
18
+ '''
19
+
20
+ print(output.json_pretty())
21
+ '''
22
+ {
23
+ "version": "0.1.3",
24
+ "requirements": [
25
+ {
26
+ "query": {
27
+ "quantity": {
28
+ "Single": 1
29
+ },
30
+ "selector": [
31
+ {
32
+ "Class": {
33
+ "department_id": "MATH",
34
+ "course_number": 2250
35
+ }
36
+ }
37
+ ]
38
+ },
39
+ "description": "Must take MATH 2250",
40
+ "priority": 1
41
+ }
42
+ ]
43
+ }
44
+ '''
45
+ ```
46
+ """
47
+
48
+
49
+ class MQL:
50
+ """
51
+ Structured output from an MQL parse
52
+ """
53
+
54
+ def version(self) -> str:
55
+ """Return the version of the parser used to create the structured output."""
56
+ ...
57
+ def json(self) -> str:
58
+ """Return the structured output as JSON."""
59
+ ...
60
+ def json_pretty(self) -> str:
61
+ """Return the structured output as pretty-printed JSON."""
62
+ ...
63
+
64
+
65
+ def parse(mql: str) -> MQL:
66
+ """
67
+ Parse MQL input to a structured output.
68
+
69
+ This can be formatted as JSON, pretty-printed JSON, or the internal Rust struct with `str`
70
+ """
71
+ ...
72
+
pylibmql/py.typed ADDED
File without changes
pylibmql/pylibmql.abi3.so CHANGED
Binary file
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pylibmql
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Classifier: Programming Language :: Rust
5
5
  Classifier: Programming Language :: Python :: Implementation :: CPython
6
6
  Classifier: Programming Language :: Python :: Implementation :: PyPy
@@ -0,0 +1,7 @@
1
+ pylibmql-0.1.1.dist-info/METADATA,sha256=BLk3tZFpqcm2UM2l72-xDVHVWQCYvbXHdqCc0nrIBRM,257
2
+ pylibmql-0.1.1.dist-info/WHEEL,sha256=LCTlxHLP-Zdl77iDYmeewLIE1mxrd2NfeA_E5fFo5N0,129
3
+ pylibmql/__init__.py,sha256=iPJ24W71He41pI6oDKoQhafmblCJERxD0-1HqHi-6Eg,115
4
+ pylibmql/__init__.pyi,sha256=ax9JJGaDpu5B82VSxvqCgbcC3skhI8sg3cnnjNl7NO0,1453
5
+ pylibmql/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
+ pylibmql/pylibmql.abi3.so,sha256=xVq3_QXGWrIzGtgxM3GhYLFohzfHe7X9OeF8uUBc6fg,1369968
7
+ pylibmql-0.1.1.dist-info/RECORD,,
@@ -1,5 +0,0 @@
1
- pylibmql-0.1.0.dist-info/METADATA,sha256=3HgvJ9vtLeo5VSrKvPY0XDSUxTe9Jd6XsTCuConknPY,257
2
- pylibmql-0.1.0.dist-info/WHEEL,sha256=LCTlxHLP-Zdl77iDYmeewLIE1mxrd2NfeA_E5fFo5N0,129
3
- pylibmql/__init__.py,sha256=iPJ24W71He41pI6oDKoQhafmblCJERxD0-1HqHi-6Eg,115
4
- pylibmql/pylibmql.abi3.so,sha256=n5viXMh3Yy1ZYBvL3SsQbkcTdUy5f1TXcO5Id7wIkis,1369928
5
- pylibmql-0.1.0.dist-info/RECORD,,