celq 0.3.0__py3-none-win_amd64.whl → 0.3.2__py3-none-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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: celq
3
- Version: 0.3.0
3
+ Version: 0.3.2
4
4
  Classifier: Intended Audience :: Developers
5
5
  Classifier: Programming Language :: Rust
6
6
  Classifier: Programming Language :: Python :: Implementation :: CPython
@@ -20,7 +20,7 @@ Project-URL: issues, https://github.com/IvanIsCoding/celq/issues
20
20
  Project-URL: source, https://github.com/IvanIsCoding/celq
21
21
 
22
22
  # celq
23
- [![Crates.io](https://img.shields.io/crates/v/celq.svg)](https://crates.io/crates/celq) [![Documentation](https://docs.rs/celq/badge.svg)](https://docs.rs/celq) [![Playground](https://img.shields.io/badge/playground-live-brightgreen)](https://celq-playground.github.io/) [![Minimum rustc 1.91](https://img.shields.io/badge/rustc-1.91+-blue.svg)](https://rust-lang.github.io/rfcs/2495-min-rust-version.html)
23
+ [![Crates.io](https://img.shields.io/crates/v/celq.svg)](https://crates.io/crates/celq) [![Documentation](https://docs.rs/celq/badge.svg)](https://docs.rs/celq) [![Playground](https://img.shields.io/badge/playground-live-brightgreen)](https://celq-playground.github.io/) [![Minimum rustc 1.90](https://img.shields.io/badge/rustc-1.90+-blue.svg)](https://rust-lang.github.io/rfcs/2495-min-rust-version.html)
24
24
 
25
25
  **celq** is a command-line tool for evaluating [Common Expression Language (CEL)](https://cel.dev/) expressions. It processes JSON input, performs computations, and outputs results. Think of it as if [jq](https://jqlang.org/) supported CEL.
26
26
 
@@ -84,21 +84,21 @@ If you are a [macOS Homebrew](https://brew.sh/) user, then you can install celq
84
84
  brew install get-celq/tap/celq
85
85
  ```
86
86
 
87
- ### Chocolatey (Windows)
87
+ ### Scoop (Windows)
88
88
 
89
- If you are a [Chocolatey](https://community.chocolatey.org/) user on Windows, you can install `celq` with:
89
+ If you are a [Scoop](https://scoop.sh/) user on Windows, you can install `celq` with:
90
90
 
91
91
  ```bash
92
- choco install celq
92
+ scoop bucket add get-celq https://github.com/get-celq/scoop-bucket
93
+ scoop install get-celq/celq
93
94
  ```
94
95
 
95
- ### Scoop (Windows)
96
+ ### Chocolatey (Windows)
96
97
 
97
- If you are a [Scoop](https://scoop.sh/) user on Windows, you can install `celq` with:
98
+ If you are a [Chocolatey](https://community.chocolatey.org/) user on Windows, you can install `celq` with:
98
99
 
99
100
  ```bash
100
- scoop bucket add get-celq https://github.com/get-celq/scoop-bucket
101
- scoop install get-celq/celq
101
+ choco install celq
102
102
  ```
103
103
 
104
104
  ### Cargo
@@ -119,33 +119,6 @@ If you have [cargo-binstall](https://github.com/cargo-bins/cargo-binstall) insta
119
119
  cargo binstall celq
120
120
  ```
121
121
 
122
- ### Python
123
-
124
- celq is packaged for [PyPI](https://pypi.org/project/celq/). Python users can install it with `pip`:
125
-
126
- ```bash
127
- pip install celq
128
- ```
129
-
130
- If you have [uv](https://github.com/astral-sh/uv) installed, `celq` can be used as a tool:
131
- ```bash
132
- uvx celq -n '"Hello World"'
133
- ```
134
-
135
- ### NPM (Node.js/JavaScript)
136
-
137
- `celq` is packaged for [NPM](https://www.npmjs.com/package/celq). Node.js users can install celq in their project with:
138
-
139
- ```bash
140
- npm install celq
141
- ```
142
-
143
- This adds celq to `package.json` and makes it available for scripts. It's also possible to run single commands with [npx](https://docs.npmjs.com/cli/v8/commands/npx):
144
-
145
- ```bash
146
- npx celq -n '"Hello World"'
147
- ```
148
-
149
122
  ### GitHub Actions
150
123
 
151
124
  `celq` can be used in GitHub actions. For one-off commands, the [get-celq/celq-action](https://github.com/get-celq/celq-action) is the quickest way:
@@ -179,6 +152,12 @@ If you are going to use `celq` in scripts or for multiple calls, we recommend us
179
152
  nix run github:IvanIsCoding/celq -- -n '"Hello World"'
180
153
  ```
181
154
 
155
+ By default, Nix fetches the stable version from crates.io. If you want to run the code from HEAD, use the `dev` derivation:
156
+
157
+ ```bash
158
+ nix run github:IvanIsCoding/celq#dev -- -n '"Hello World"'
159
+ ```
160
+
182
161
  See the [installation guide](https://docs.rs/celq/latest/celq/installation_guide) for other Nix setups.
183
162
 
184
163
  ### FreeBSD
@@ -198,13 +177,44 @@ su root -c 'install -m 755 celq /usr/local/bin/'
198
177
 
199
178
  `celq` can also be installed from source following the [Cargo](#cargo) section. We strive to always compile with the Rust version provided in the ports tree.
200
179
 
180
+ ### OpenBSD
181
+
182
+ OpenBSD builds are tested in CI using the latest stable release. `celq` strives to always compile with the Rust version provided in the ports tree. Refer to the [Cargo](#cargo) section for instructions.
183
+
184
+ ### NPM (Node.js/JavaScript)
185
+
186
+ `celq` is packaged for [NPM](https://www.npmjs.com/package/celq). Node.js users can install celq in their project with:
187
+
188
+ ```bash
189
+ npm install celq
190
+ ```
191
+
192
+ This adds celq to `package.json` and makes it available for scripts. It's also possible to run single commands with [npx](https://docs.npmjs.com/cli/v8/commands/npx):
193
+
194
+ ```bash
195
+ npx celq -n '"Hello World"'
196
+ ```
197
+
198
+ ### Python
199
+
200
+ celq is packaged for [PyPI](https://pypi.org/project/celq/). Python users can install it with `pip`:
201
+
202
+ ```bash
203
+ pip install celq
204
+ ```
205
+
206
+ If you have [uv](https://github.com/astral-sh/uv) installed, `celq` can be used as a tool:
207
+ ```bash
208
+ uvx celq -n '"Hello World"'
209
+ ```
210
+
201
211
  ## Limitations
202
212
 
203
213
  ### Eager JSON Parsing
204
214
 
205
215
  `celq` eagerly parses all JSON input into memory before evaluation. This design was made to simplify the code implementation, at the cost of memory and performance.
206
216
 
207
- Currently, there are no benchmarks for `celq`. I believe the tool is "good enough" for my personal use. That might be revisited in the future. In the meantime, expect `celq` to be slower than `jq`.
217
+ Currently, there are no benchmarks for `celq`. I believe the tool is "good enough" for my personal use. That might be revisited in the future. In the meantime, expect `celq` to be slower than `jq`. With that being said, `celq` feels snappy in practice. `celq` glues together Rust parsers that are performant with a CEL engine that strives to be fast.
208
218
 
209
219
  ### CEL Implementation Differences
210
220
 
@@ -240,7 +250,7 @@ Special thanks to the maintainers of:
240
250
 
241
251
  ## Large Language Models Disclosure
242
252
 
243
- Many commits in this repository were co-authored by LLMs. All commits were guided and reviewed by a human. The original author has significantly refactored the AI output to conform to his opinionated view.
253
+ Many commits in this repository were co-authored by LLMs. All commits were guided and reviewed by a human. I tried my best to keep things simple and auditable.
244
254
 
245
255
  All the documentation in the manual has been hand-crafted. That was done to keep the tone of the original author. If you find a typo or a grammar mistake, please send a pull request.
246
256
 
@@ -0,0 +1,6 @@
1
+ celq-0.3.2.data\scripts\celq.exe,sha256=W_KTBYQ8xDXZIS5cbSOPmWQB0xRW-8cQyylQsGDm_kI,5827072
2
+ celq-0.3.2.dist-info\METADATA,sha256=2uVp96keyzXWcb6HzwO6Z_ySS2V97Sa9YHdQADC07T0,11595
3
+ celq-0.3.2.dist-info\WHEEL,sha256=jsSEiVNsW1dJj5gDaReR40i7mhgBjWtms6nAD6EViXU,94
4
+ celq-0.3.2.dist-info\licenses\LICENSE-APACHE,sha256=Pd-b5cKP4n2tFDpdx27qJSIq0d1ok0oEcGTlbtL6QMU,11560
5
+ celq-0.3.2.dist-info\licenses\LICENSE-MIT,sha256=IS3BPVKHORczt0vowEKaowpXRtuQcU4iBCbP_S3KNiE,1091
6
+ celq-0.3.2.dist-info\RECORD,,
@@ -1,6 +0,0 @@
1
- celq-0.3.0.data\scripts\celq.exe,sha256=HHpB8pxsuxP_93QcsG5YThlI6RHdo8DY4OZw6c_seCc,5816832
2
- celq-0.3.0.dist-info\METADATA,sha256=93C_FmrNBwGKmIUs42GSc7R018s9mB_bJ31VpW-pJEM,11064
3
- celq-0.3.0.dist-info\WHEEL,sha256=jsSEiVNsW1dJj5gDaReR40i7mhgBjWtms6nAD6EViXU,94
4
- celq-0.3.0.dist-info\licenses\LICENSE-APACHE,sha256=Pd-b5cKP4n2tFDpdx27qJSIq0d1ok0oEcGTlbtL6QMU,11560
5
- celq-0.3.0.dist-info\licenses\LICENSE-MIT,sha256=IS3BPVKHORczt0vowEKaowpXRtuQcU4iBCbP_S3KNiE,1091
6
- celq-0.3.0.dist-info\RECORD,,
File without changes