cql2 0.4.1__cp310-abi3-win_amd64.whl → 0.5.2__cp310-abi3-win_amd64.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.
- cql2/__init__.pyi +2 -0
- cql2/cql2.pyd +0 -0
- cql2-0.5.2.dist-info/METADATA +62 -0
- cql2-0.5.2.dist-info/RECORD +9 -0
- {cql2-0.4.1.dist-info → cql2-0.5.2.dist-info}/WHEEL +1 -1
- cql2-0.4.1.dist-info/METADATA +0 -14
- cql2-0.4.1.dist-info/RECORD +0 -9
- {cql2-0.4.1.dist-info → cql2-0.5.2.dist-info}/entry_points.txt +0 -0
- {cql2-0.4.1.dist-info → cql2-0.5.2.dist-info}/licenses/LICENSE +0 -0
cql2/__init__.pyi
CHANGED
cql2/cql2.pyd
CHANGED
|
Binary file
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: cql2
|
|
3
|
+
Version: 0.5.2
|
|
4
|
+
Classifier: Programming Language :: Rust
|
|
5
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
6
|
+
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
7
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
8
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
9
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
12
|
+
License-File: LICENSE
|
|
13
|
+
Summary: Parse, validate, and convert Common Query Language (CQL2) text and JSON
|
|
14
|
+
Keywords: cql2
|
|
15
|
+
Home-Page: https://github.com/developmentseed/cql2-rs
|
|
16
|
+
License: MIT
|
|
17
|
+
Requires-Python: >=3.10
|
|
18
|
+
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
19
|
+
|
|
20
|
+
# cql2
|
|
21
|
+
|
|
22
|
+
Python library and command-line interface (CLI) for parsing and converting [Common Query Language (CQL2)](https://www.ogc.org/standard/cql2/), with Rust under the hood.
|
|
23
|
+
|
|
24
|
+
## Usage
|
|
25
|
+
|
|
26
|
+
```shell
|
|
27
|
+
pip install cql2
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Then:
|
|
31
|
+
|
|
32
|
+
```python
|
|
33
|
+
expr = Expr("landsat:scene_id = 'LC82030282019133LGN00'")
|
|
34
|
+
# or
|
|
35
|
+
expr = cql2.parse_file("fixtures/text/example01.txt")
|
|
36
|
+
|
|
37
|
+
s = expr.to_text()
|
|
38
|
+
d = expr.to_json()
|
|
39
|
+
sql = expr.to_sql()
|
|
40
|
+
print("SQL query:", sql.query)
|
|
41
|
+
print("SQL params:", sql.params)
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Or from via the command-line interface:
|
|
45
|
+
|
|
46
|
+
```shell
|
|
47
|
+
$ cql2 -o json "landsat:scene_id = 'LC82030282019133LGN00'"
|
|
48
|
+
{"op":"=","args":[{"property":"landsat:scene_id"},"LC82030282019133LGN00"]}
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Developing
|
|
52
|
+
|
|
53
|
+
To install the package to your virtual environment and test:
|
|
54
|
+
|
|
55
|
+
```shell
|
|
56
|
+
maturin develop --uv -m python/Cargo.toml && pytest python
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## More information
|
|
60
|
+
|
|
61
|
+
This package is part of [cql2-rs](https://github.com/developmentseed/cql2-rs/), see that repo for license and contributing information.
|
|
62
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
cql2\__init__.py,sha256=lQIzMwXTmBW1tLuKrIKf3_nxwWMiik5UOd5CBYV22uQ,99
|
|
2
|
+
cql2\__init__.pyi,sha256=6kjFuBPqTTA5drSoqy9BTO1PxN-BtggNboV2hdh8X-A,4818
|
|
3
|
+
cql2\cql2.pyd,sha256=BAg6xjekfOVQBuUysVyjfYQToomIDiPDP1PfpdN8fwI,6689280
|
|
4
|
+
cql2\py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
+
cql2-0.5.2.dist-info\METADATA,sha256=eNAZJXoa7rp8Bspfd4crKJzh0BUNhrMqhXUT9yRns9E,1785
|
|
6
|
+
cql2-0.5.2.dist-info\WHEEL,sha256=ZMDDxh9OPoaLQ4P2dJmgI1XsENYSzjzq8fErKKVw5iE,96
|
|
7
|
+
cql2-0.5.2.dist-info\entry_points.txt,sha256=71myRgqcjlXJ5L8YfBsyaQS-Ef8mXeSlOCDwf1rrURo,33
|
|
8
|
+
cql2-0.5.2.dist-info\licenses\LICENSE,sha256=GBDoMt4G_b08P_Dn5o-j2fL9cj5uoWTbLO90rtO2edE,1071
|
|
9
|
+
cql2-0.5.2.dist-info\RECORD,,
|
cql2-0.4.1.dist-info/METADATA
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: cql2
|
|
3
|
-
Version: 0.4.1
|
|
4
|
-
Classifier: Programming Language :: Rust
|
|
5
|
-
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
6
|
-
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
7
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
8
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
9
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
10
|
-
Classifier: Programming Language :: Python :: 3.13
|
|
11
|
-
Classifier: Programming Language :: Python :: 3.14
|
|
12
|
-
License-File: LICENSE
|
|
13
|
-
Home-Page: https://github.com/developmentseed/cql2-rs
|
|
14
|
-
Requires-Python: >=3.10
|
cql2-0.4.1.dist-info/RECORD
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
cql2-0.4.1.dist-info/METADATA,sha256=jsRhL9bN4G53ID3cTBULcr0XEo4sex_hHiZwrugRUQI,585
|
|
2
|
-
cql2-0.4.1.dist-info/WHEEL,sha256=4EDp_7DiFfWl1yYv5M4wSosAn5L_xgD1dyrQxQxfCx8,95
|
|
3
|
-
cql2-0.4.1.dist-info/entry_points.txt,sha256=71myRgqcjlXJ5L8YfBsyaQS-Ef8mXeSlOCDwf1rrURo,33
|
|
4
|
-
cql2-0.4.1.dist-info/licenses/LICENSE,sha256=GBDoMt4G_b08P_Dn5o-j2fL9cj5uoWTbLO90rtO2edE,1071
|
|
5
|
-
cql2/__init__.py,sha256=lQIzMwXTmBW1tLuKrIKf3_nxwWMiik5UOd5CBYV22uQ,99
|
|
6
|
-
cql2/__init__.pyi,sha256=vt018fN00-uWGb97AdAsQw_FRz_htYpn768gCPsLHjA,4798
|
|
7
|
-
cql2/cql2.pyd,sha256=_ij99mksX2lGfBb2-SQoPgfMDRXlWzuKKG2TYCLOg14,9274368
|
|
8
|
-
cql2/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
|
-
cql2-0.4.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|