@ossiq/cli-darwin-x64 0.1.12

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.
Files changed (131) hide show
  1. package/bin/ossiq/_internal/Python.framework/Versions/3.13/Python +0 -0
  2. package/bin/ossiq/_internal/Python.framework/Versions/3.13/Resources/Info.plist +30 -0
  3. package/bin/ossiq/_internal/attrs-26.1.0.dist-info/INSTALLER +1 -0
  4. package/bin/ossiq/_internal/attrs-26.1.0.dist-info/METADATA +199 -0
  5. package/bin/ossiq/_internal/attrs-26.1.0.dist-info/RECORD +37 -0
  6. package/bin/ossiq/_internal/attrs-26.1.0.dist-info/REQUESTED +0 -0
  7. package/bin/ossiq/_internal/attrs-26.1.0.dist-info/WHEEL +4 -0
  8. package/bin/ossiq/_internal/attrs-26.1.0.dist-info/licenses/LICENSE +21 -0
  9. package/bin/ossiq/_internal/base_library.zip +0 -0
  10. package/bin/ossiq/_internal/cel/cel.cpython-313-darwin.so +0 -0
  11. package/bin/ossiq/_internal/certifi/cacert.pem +3959 -0
  12. package/bin/ossiq/_internal/certifi/py.typed +0 -0
  13. package/bin/ossiq/_internal/charset_normalizer/cd.cpython-313-darwin.so +0 -0
  14. package/bin/ossiq/_internal/charset_normalizer/md.cpython-313-darwin.so +0 -0
  15. package/bin/ossiq/_internal/common_expression_language-0.10.0.dist-info/INSTALLER +1 -0
  16. package/bin/ossiq/_internal/common_expression_language-0.10.0.dist-info/METADATA +261 -0
  17. package/bin/ossiq/_internal/common_expression_language-0.10.0.dist-info/RECORD +16 -0
  18. package/bin/ossiq/_internal/common_expression_language-0.10.0.dist-info/REQUESTED +0 -0
  19. package/bin/ossiq/_internal/common_expression_language-0.10.0.dist-info/WHEEL +4 -0
  20. package/bin/ossiq/_internal/common_expression_language-0.10.0.dist-info/entry_points.txt +2 -0
  21. package/bin/ossiq/_internal/common_expression_language-0.10.0.dist-info/licenses/LICENSE +201 -0
  22. package/bin/ossiq/_internal/common_expression_language-0.10.0.dist-info/sboms/cel.cyclonedx.json +2109 -0
  23. package/bin/ossiq/_internal/libcrypto.3.dylib +0 -0
  24. package/bin/ossiq/_internal/libncurses.6.dylib +0 -0
  25. package/bin/ossiq/_internal/libssl.3.dylib +0 -0
  26. package/bin/ossiq/_internal/ossiq/data/SKILL.md +313 -0
  27. package/bin/ossiq/_internal/ossiq/domain/README.md +373 -0
  28. package/bin/ossiq/_internal/ossiq/solver/README.md +155 -0
  29. package/bin/ossiq/_internal/ossiq/strategy/README.md +182 -0
  30. package/bin/ossiq/_internal/ossiq/ui/html_templates/filter_format_highlight_days.html +7 -0
  31. package/bin/ossiq/_internal/ossiq/ui/html_templates/spa_app.html +18125 -0
  32. package/bin/ossiq/_internal/ossiq/ui/html_templates/tag_versions_difference.html +33 -0
  33. package/bin/ossiq/_internal/ossiq/ui/renderers/export/README.md +207 -0
  34. package/bin/ossiq/_internal/ossiq/ui/renderers/export/schemas/export_schema_v1.5.json +1637 -0
  35. package/bin/ossiq/_internal/ossiq/ui/renderers/export/schemas/export_schema_v1.5_standard.json +1164 -0
  36. package/bin/ossiq/_internal/ossiq-0.1.12.dist-info/INSTALLER +1 -0
  37. package/bin/ossiq/_internal/ossiq-0.1.12.dist-info/METADATA +385 -0
  38. package/bin/ossiq/_internal/ossiq-0.1.12.dist-info/RECORD +13 -0
  39. package/bin/ossiq/_internal/ossiq-0.1.12.dist-info/REQUESTED +0 -0
  40. package/bin/ossiq/_internal/ossiq-0.1.12.dist-info/WHEEL +4 -0
  41. package/bin/ossiq/_internal/ossiq-0.1.12.dist-info/direct_url.json +1 -0
  42. package/bin/ossiq/_internal/ossiq-0.1.12.dist-info/entry_points.txt +2 -0
  43. package/bin/ossiq/_internal/ossiq-0.1.12.dist-info/licenses/AUTHORS +8 -0
  44. package/bin/ossiq/_internal/ossiq-0.1.12.dist-info/licenses/LICENSE +661 -0
  45. package/bin/ossiq/_internal/ossiq-0.1.12.dist-info/uv_build.json +1 -0
  46. package/bin/ossiq/_internal/ossiq-0.1.12.dist-info/uv_cache.json +1 -0
  47. package/bin/ossiq/_internal/prompt_toolkit-3.0.53.dist-info/INSTALLER +1 -0
  48. package/bin/ossiq/_internal/prompt_toolkit-3.0.53.dist-info/METADATA +171 -0
  49. package/bin/ossiq/_internal/prompt_toolkit-3.0.53.dist-info/RECORD +154 -0
  50. package/bin/ossiq/_internal/prompt_toolkit-3.0.53.dist-info/REQUESTED +0 -0
  51. package/bin/ossiq/_internal/prompt_toolkit-3.0.53.dist-info/WHEEL +5 -0
  52. package/bin/ossiq/_internal/prompt_toolkit-3.0.53.dist-info/licenses/AUTHORS.rst +11 -0
  53. package/bin/ossiq/_internal/prompt_toolkit-3.0.53.dist-info/licenses/LICENSE +27 -0
  54. package/bin/ossiq/_internal/prompt_toolkit-3.0.53.dist-info/top_level.txt +1 -0
  55. package/bin/ossiq/_internal/pycard.cpython-313-darwin.so +0 -0
  56. package/bin/ossiq/_internal/pydantic-2.13.5.dist-info/INSTALLER +1 -0
  57. package/bin/ossiq/_internal/pydantic-2.13.5.dist-info/METADATA +1307 -0
  58. package/bin/ossiq/_internal/pydantic-2.13.5.dist-info/RECORD +113 -0
  59. package/bin/ossiq/_internal/pydantic-2.13.5.dist-info/REQUESTED +0 -0
  60. package/bin/ossiq/_internal/pydantic-2.13.5.dist-info/WHEEL +4 -0
  61. package/bin/ossiq/_internal/pydantic-2.13.5.dist-info/licenses/LICENSE +21 -0
  62. package/bin/ossiq/_internal/pydantic_core/_pydantic_core.cpython-313-darwin.so +0 -0
  63. package/bin/ossiq/_internal/pyformula.cpython-313-darwin.so +0 -0
  64. package/bin/ossiq/_internal/pysolvers.cpython-313-darwin.so +0 -0
  65. package/bin/ossiq/_internal/python3.13/lib-dynload/_asyncio.cpython-313-darwin.so +0 -0
  66. package/bin/ossiq/_internal/python3.13/lib-dynload/_bisect.cpython-313-darwin.so +0 -0
  67. package/bin/ossiq/_internal/python3.13/lib-dynload/_blake2.cpython-313-darwin.so +0 -0
  68. package/bin/ossiq/_internal/python3.13/lib-dynload/_bz2.cpython-313-darwin.so +0 -0
  69. package/bin/ossiq/_internal/python3.13/lib-dynload/_codecs_cn.cpython-313-darwin.so +0 -0
  70. package/bin/ossiq/_internal/python3.13/lib-dynload/_codecs_hk.cpython-313-darwin.so +0 -0
  71. package/bin/ossiq/_internal/python3.13/lib-dynload/_codecs_iso2022.cpython-313-darwin.so +0 -0
  72. package/bin/ossiq/_internal/python3.13/lib-dynload/_codecs_jp.cpython-313-darwin.so +0 -0
  73. package/bin/ossiq/_internal/python3.13/lib-dynload/_codecs_kr.cpython-313-darwin.so +0 -0
  74. package/bin/ossiq/_internal/python3.13/lib-dynload/_codecs_tw.cpython-313-darwin.so +0 -0
  75. package/bin/ossiq/_internal/python3.13/lib-dynload/_contextvars.cpython-313-darwin.so +0 -0
  76. package/bin/ossiq/_internal/python3.13/lib-dynload/_csv.cpython-313-darwin.so +0 -0
  77. package/bin/ossiq/_internal/python3.13/lib-dynload/_ctypes.cpython-313-darwin.so +0 -0
  78. package/bin/ossiq/_internal/python3.13/lib-dynload/_curses.cpython-313-darwin.so +0 -0
  79. package/bin/ossiq/_internal/python3.13/lib-dynload/_datetime.cpython-313-darwin.so +0 -0
  80. package/bin/ossiq/_internal/python3.13/lib-dynload/_decimal.cpython-313-darwin.so +0 -0
  81. package/bin/ossiq/_internal/python3.13/lib-dynload/_hashlib.cpython-313-darwin.so +0 -0
  82. package/bin/ossiq/_internal/python3.13/lib-dynload/_heapq.cpython-313-darwin.so +0 -0
  83. package/bin/ossiq/_internal/python3.13/lib-dynload/_json.cpython-313-darwin.so +0 -0
  84. package/bin/ossiq/_internal/python3.13/lib-dynload/_lzma.cpython-313-darwin.so +0 -0
  85. package/bin/ossiq/_internal/python3.13/lib-dynload/_md5.cpython-313-darwin.so +0 -0
  86. package/bin/ossiq/_internal/python3.13/lib-dynload/_multibytecodec.cpython-313-darwin.so +0 -0
  87. package/bin/ossiq/_internal/python3.13/lib-dynload/_multiprocessing.cpython-313-darwin.so +0 -0
  88. package/bin/ossiq/_internal/python3.13/lib-dynload/_opcode.cpython-313-darwin.so +0 -0
  89. package/bin/ossiq/_internal/python3.13/lib-dynload/_pickle.cpython-313-darwin.so +0 -0
  90. package/bin/ossiq/_internal/python3.13/lib-dynload/_posixshmem.cpython-313-darwin.so +0 -0
  91. package/bin/ossiq/_internal/python3.13/lib-dynload/_posixsubprocess.cpython-313-darwin.so +0 -0
  92. package/bin/ossiq/_internal/python3.13/lib-dynload/_queue.cpython-313-darwin.so +0 -0
  93. package/bin/ossiq/_internal/python3.13/lib-dynload/_random.cpython-313-darwin.so +0 -0
  94. package/bin/ossiq/_internal/python3.13/lib-dynload/_scproxy.cpython-313-darwin.so +0 -0
  95. package/bin/ossiq/_internal/python3.13/lib-dynload/_sha1.cpython-313-darwin.so +0 -0
  96. package/bin/ossiq/_internal/python3.13/lib-dynload/_sha2.cpython-313-darwin.so +0 -0
  97. package/bin/ossiq/_internal/python3.13/lib-dynload/_sha3.cpython-313-darwin.so +0 -0
  98. package/bin/ossiq/_internal/python3.13/lib-dynload/_socket.cpython-313-darwin.so +0 -0
  99. package/bin/ossiq/_internal/python3.13/lib-dynload/_sqlite3.cpython-313-darwin.so +0 -0
  100. package/bin/ossiq/_internal/python3.13/lib-dynload/_ssl.cpython-313-darwin.so +0 -0
  101. package/bin/ossiq/_internal/python3.13/lib-dynload/_statistics.cpython-313-darwin.so +0 -0
  102. package/bin/ossiq/_internal/python3.13/lib-dynload/_struct.cpython-313-darwin.so +0 -0
  103. package/bin/ossiq/_internal/python3.13/lib-dynload/_uuid.cpython-313-darwin.so +0 -0
  104. package/bin/ossiq/_internal/python3.13/lib-dynload/_zoneinfo.cpython-313-darwin.so +0 -0
  105. package/bin/ossiq/_internal/python3.13/lib-dynload/array.cpython-313-darwin.so +0 -0
  106. package/bin/ossiq/_internal/python3.13/lib-dynload/binascii.cpython-313-darwin.so +0 -0
  107. package/bin/ossiq/_internal/python3.13/lib-dynload/fcntl.cpython-313-darwin.so +0 -0
  108. package/bin/ossiq/_internal/python3.13/lib-dynload/grp.cpython-313-darwin.so +0 -0
  109. package/bin/ossiq/_internal/python3.13/lib-dynload/math.cpython-313-darwin.so +0 -0
  110. package/bin/ossiq/_internal/python3.13/lib-dynload/mmap.cpython-313-darwin.so +0 -0
  111. package/bin/ossiq/_internal/python3.13/lib-dynload/pyexpat.cpython-313-darwin.so +0 -0
  112. package/bin/ossiq/_internal/python3.13/lib-dynload/readline.cpython-313-darwin.so +0 -0
  113. package/bin/ossiq/_internal/python3.13/lib-dynload/resource.cpython-313-darwin.so +0 -0
  114. package/bin/ossiq/_internal/python3.13/lib-dynload/select.cpython-313-darwin.so +0 -0
  115. package/bin/ossiq/_internal/python3.13/lib-dynload/syslog.cpython-313-darwin.so +0 -0
  116. package/bin/ossiq/_internal/python3.13/lib-dynload/termios.cpython-313-darwin.so +0 -0
  117. package/bin/ossiq/_internal/python3.13/lib-dynload/unicodedata.cpython-313-darwin.so +0 -0
  118. package/bin/ossiq/_internal/python3.13/lib-dynload/zlib.cpython-313-darwin.so +0 -0
  119. package/bin/ossiq/_internal/semantic_version-2.10.0.dist-info/INSTALLER +1 -0
  120. package/bin/ossiq/_internal/semantic_version-2.10.0.dist-info/LICENSE +22 -0
  121. package/bin/ossiq/_internal/semantic_version-2.10.0.dist-info/METADATA +324 -0
  122. package/bin/ossiq/_internal/semantic_version-2.10.0.dist-info/RECORD +10 -0
  123. package/bin/ossiq/_internal/semantic_version-2.10.0.dist-info/REQUESTED +0 -0
  124. package/bin/ossiq/_internal/semantic_version-2.10.0.dist-info/WHEEL +6 -0
  125. package/bin/ossiq/_internal/semantic_version-2.10.0.dist-info/top_level.txt +1 -0
  126. package/bin/ossiq/_internal/setuptools/_vendor/jaraco/text/Lorem ipsum.txt +2 -0
  127. package/bin/ossiq/_internal/wcwidth/py.typed +0 -0
  128. package/bin/ossiq/_internal/wcwidth/textwrap.py,cover +664 -0
  129. package/bin/ossiq/_internal/yaml/_yaml.cpython-313-darwin.so +0 -0
  130. package/bin/ossiq/ossiq +0 -0
  131. package/package.json +24 -0
File without changes
@@ -0,0 +1,261 @@
1
+ Metadata-Version: 2.4
2
+ Name: common-expression-language
3
+ Version: 0.10.0
4
+ Classifier: Development Status :: 4 - Beta
5
+ Classifier: Intended Audience :: Developers
6
+ Classifier: License :: OSI Approved :: Apache Software License
7
+ Classifier: Operating System :: OS Independent
8
+ Classifier: Programming Language :: Rust
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: Programming Language :: Python :: 3 :: Only
11
+ Classifier: Programming Language :: Python :: 3.11
12
+ Classifier: Programming Language :: Python :: 3.12
13
+ Classifier: Programming Language :: Python :: 3.13
14
+ Classifier: Programming Language :: Python :: 3.14
15
+ Classifier: Programming Language :: Python :: Implementation :: CPython
16
+ Classifier: Programming Language :: Python :: Implementation :: PyPy
17
+ Classifier: Topic :: Software Development :: Interpreters
18
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
19
+ Classifier: Typing :: Typed
20
+ Requires-Dist: typer>=0.12.0
21
+ Requires-Dist: rich>=13.0.0
22
+ Requires-Dist: prompt-toolkit>=3.0.0
23
+ Requires-Dist: pygments>=2.0.0
24
+ License-File: LICENSE
25
+ Summary: Python bindings for the Common Expression Language (CEL)
26
+ Author-email: Brian Thorne <brian@hardbyte.nz>
27
+ License-Expression: Apache-2.0
28
+ Requires-Python: >=3.11
29
+ Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
30
+ Project-URL: Homepage, https://github.com/hardbyte/python-common-expression-language
31
+ Project-URL: Repository, https://github.com/hardbyte/python-common-expression-language
32
+
33
+ # Python CEL - Common Expression Language
34
+
35
+ [![Documentation](https://img.shields.io/badge/docs-readthedocs-blue)](https://python-common-expression-language.readthedocs.io/)
36
+ [![PyPI version](https://badge.fury.io/py/common-expression-language.svg)](https://pypi.org/project/common-expression-language/)
37
+ [![Python 3.11+](https://img.shields.io/badge/python-3.11+-blue.svg)](https://www.python.org/downloads/)
38
+
39
+ **Fast, Safe, and Expressive evaluation of Google's Common Expression Language (CEL) in Python, powered by Rust.**
40
+
41
+ The Common Expression Language (CEL) is a non-Turing complete language designed for simplicity, speed, and safety. This Python package wraps the Rust implementation [cel](https://crates.io/crates/cel) v0.14.5, providing microsecond-level expression evaluation with seamless Python integration.
42
+
43
+ ## 🚀 Use Cases
44
+
45
+ - 🛡️ **Policy Enforcement**: Define access control rules that can be updated without code changes
46
+ - ⚙️ **Configuration Validation**: Validate complex settings with declarative rules
47
+ - 🔄 **Data Transformation**: Transform and filter data with safe, portable expressions
48
+ - 📋 **Business Rules**: Implement decision logic that business users can understand
49
+ - 🔍 **Query Filtering**: Build dynamic filters for databases and APIs
50
+ - 🎯 **Feature Flags**: Create sophisticated feature toggle conditions
51
+
52
+ ## Installation
53
+
54
+ ```bash
55
+ pip install common-expression-language
56
+ ```
57
+
58
+ Or using uv:
59
+ ```bash
60
+ uv add common-expression-language
61
+ ```
62
+
63
+ After installation, both the Python library and the `cel` command-line tool will be available.
64
+
65
+ > 📖 **Full Documentation**: https://python-common-expression-language.readthedocs.io/
66
+
67
+ ## Quick Start
68
+
69
+ ### Python API
70
+
71
+ ```python
72
+ from cel import evaluate
73
+
74
+ # Simple expressions
75
+ result = evaluate("1 + 2") # 3
76
+ result = evaluate("'Hello ' + 'World'") # "Hello World"
77
+ result = evaluate("age >= 18", {"age": 25}) # True
78
+
79
+ # Complex expressions with context
80
+ result = evaluate(
81
+ 'user.role == "admin" && "write" in permissions',
82
+ {
83
+ "user": {"role": "admin"},
84
+ "permissions": ["read", "write", "delete"]
85
+ }
86
+ ) # True
87
+ ```
88
+
89
+ ### Command Line Interface
90
+
91
+ ```bash
92
+ # Simple evaluation
93
+ cel '1 + 2' # 3
94
+
95
+ # With context
96
+ cel 'age >= 18' --context '{"age": 25}' # true
97
+
98
+ # Interactive REPL
99
+ cel --interactive
100
+ ```
101
+
102
+ ### Pre-compilation for Performance
103
+
104
+ When evaluating the same expression multiple times with different contexts, use `compile()` for better performance:
105
+
106
+ ```python
107
+ import cel
108
+
109
+ # Compile once
110
+ program = cel.compile("price * quantity > threshold")
111
+
112
+ # Execute many times - much faster than repeated evaluate() calls
113
+ result1 = program.execute({"price": 10, "quantity": 5, "threshold": 40}) # True
114
+ result2 = program.execute({"price": 5, "quantity": 3, "threshold": 20}) # False
115
+ ```
116
+
117
+ ### Custom Functions
118
+
119
+ ```python
120
+ from cel import Context, evaluate
121
+
122
+ def calculate_discount(price, rate):
123
+ return price * rate
124
+
125
+ context = Context()
126
+ context.add_function("calculate_discount", calculate_discount)
127
+ context.add_variable("price", 100)
128
+
129
+ result = evaluate("price - calculate_discount(price, 0.1)", context) # 90.0
130
+ ```
131
+
132
+ ### Real-World Example
133
+
134
+ ```python
135
+ from cel import evaluate, Context
136
+
137
+ # Access control policy
138
+ policy = """
139
+ user.role == "admin" ||
140
+ (resource.owner == user.id && current_hour >= 9 && current_hour <= 17)
141
+ """
142
+
143
+ context = Context()
144
+ context.update({
145
+ "user": {"id": "alice", "role": "user"},
146
+ "resource": {"owner": "alice"},
147
+ "current_hour": 14 # 2 PM
148
+ })
149
+
150
+ access_granted = evaluate(policy, context) # True
151
+ ```
152
+
153
+ ## Features
154
+
155
+ - ✅ **Fast Evaluation**: Microsecond-level expression evaluation via Rust
156
+ - ✅ **Rich Type System**: Integers, floats, strings, lists, maps, timestamps, durations, bytes, optionals
157
+ - ✅ **Python Integration**: Seamless type conversion and custom function support (callable as `f(x)` or `x.f()`)
158
+ - ✅ **Extended Standard Library**: Optional `strings`, `math`, `sets`, `encoders` and `lists` extensions that mirror [cel-go](https://github.com/google/cel-go) (see `cel.stdlib`)
159
+ - ✅ **Static Analysis**: Inspect the variables and functions an expression references before running it (`Program.references()`)
160
+ - ✅ **CLI Tools**: Interactive REPL and batch processing capabilities
161
+ - ✅ **Safety First**: Non-Turing complete, safe for untrusted expressions
162
+
163
+ ### Expression introspection
164
+
165
+ ```python
166
+ import cel
167
+
168
+ program = cel.compile("resource.owner == user.id && size(roles) > 0")
169
+ program.variables() # ['resource', 'roles', 'user']
170
+ program.functions() # ['_&&_', '_==_', '_>_', 'size']
171
+ ```
172
+
173
+ ### Extended standard library
174
+
175
+ ```python
176
+ import cel
177
+ from cel.stdlib import add_stdlib_to_context
178
+
179
+ ctx = cel.Context()
180
+ add_stdlib_to_context(ctx) # adds strings, math, sets, encoders, lists
181
+
182
+ cel.evaluate('"Hello World".lowerAscii()', ctx) # 'hello world'
183
+ cel.evaluate("math.greatest([3, 1, 2])", ctx) # 3
184
+ cel.evaluate("[1, 2, 3].contains(2)", ctx) # True
185
+ cel.evaluate('base64.encode(b"hi")', ctx) # 'aGk='
186
+ ```
187
+
188
+ > **Portability note:** CEL has no portable "bytecode". Cross-implementation
189
+ > interchange in the CEL ecosystem uses the protobuf AST (`cel.expr.Expr` /
190
+ > `CheckedExpr`), which the upstream `cel` Rust crate does not yet produce or
191
+ > consume. The portable artifact for this library is the CEL **source string**;
192
+ > use `Program.references()` for static analysis. See the docs for details.
193
+
194
+ ## Documentation
195
+
196
+ 📚 **Complete documentation available at**: https://python-common-expression-language.readthedocs.io/
197
+
198
+
199
+ ### Building Documentation Locally
200
+
201
+ To build and serve the documentation locally:
202
+
203
+ ```bash
204
+ # Install documentation dependencies
205
+ uv sync --group docs
206
+
207
+ # Build the documentation
208
+ uv run --group docs mkdocs build
209
+
210
+ # Serve locally with live reload
211
+ uv run --group docs mkdocs serve
212
+ ```
213
+
214
+ The documentation will be available at http://localhost:8000
215
+
216
+ ## Development
217
+
218
+ ### Testing
219
+
220
+ ```bash
221
+ # Run all tests
222
+ uv run pytest
223
+
224
+ # Run with coverage
225
+ uv run pytest --cov=cel
226
+
227
+ # Test all documentation examples (embedded code + standalone files)
228
+ uv run --group docs pytest tests/test_docs.py -v
229
+ ```
230
+
231
+ ### Building from Source
232
+
233
+ ```bash
234
+ # Install development dependencies
235
+ uv sync --dev
236
+
237
+ # Build the package
238
+ uv run maturin develop
239
+
240
+ # Run tests
241
+ uv run pytest
242
+ ```
243
+
244
+ ## Contributing
245
+
246
+ Contributions are welcome! Please see our [documentation](https://python-common-expression-language.readthedocs.io/) for:
247
+ - [CHANGELOG](CHANGELOG.md) — release notes and behaviour changes
248
+ - Development setup and guidelines
249
+ - Areas where help is needed
250
+
251
+ ## License
252
+
253
+ This project is licensed under the [Apache License 2.0](LICENSE).
254
+
255
+ ## Resources
256
+
257
+ - [📖 **Documentation**](https://python-common-expression-language.readthedocs.io/)
258
+ - [🌐 **CEL Homepage**](https://cel.dev/)
259
+ - [📋 **CEL Specification**](https://github.com/google/cel-spec)
260
+ - [⚙️ **cel Rust crate**](https://crates.io/crates/cel)
261
+
@@ -0,0 +1,16 @@
1
+ ../../../bin/cel,sha256=GiikYlYkDP2GhCmpgWLfsOFAIXYMqBTgWRZhLAlUbOk,330
2
+ cel/__init__.py,sha256=lcXwHZOoIBkZk83BJgCPMCPNMuXpyvlJshF4okdsQWM,74
3
+ cel/__main__.py,sha256=1whIzu3Qn_A98Lsav9RwlxvdOQptoXV1SvlhTz1vsGQ,145
4
+ cel/cel.cpython-313-darwin.so,sha256=7ApjoHSsAjapqi-V0gWvETPu2mQX5m9SmBh-ZxeMtps,4947840
5
+ cel/cel.pyi,sha256=nWGvAuE6DFXnTp7VBbIOaFRJj2WHcJguNfbyMcK6uzY,3960
6
+ cel/cli.py,sha256=t1JD8fdqTAdll8xR-t6dchmLezTrIVfNKHi7VWZBEtM,24151
7
+ cel/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
+ cel/stdlib.py,sha256=Ypa5OivZAMEjM0x6xs84JfZ99ILVPrshkGo3le1tZ7A,23458
9
+ common_expression_language-0.10.0.dist-info/INSTALLER,sha256=5hhM4Q4mYTT9z6QB6PGpUAW81PGNFrYrdXMj4oM_6ak,2
10
+ common_expression_language-0.10.0.dist-info/METADATA,sha256=RfwCVGMk0pTfhuq99lISh2IhyaquZ52F9YBp4xBs3K8,8314
11
+ common_expression_language-0.10.0.dist-info/RECORD,,
12
+ common_expression_language-0.10.0.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
+ common_expression_language-0.10.0.dist-info/WHEEL,sha256=dYGh_59J-qwN53Xid5cigyDzoaS3_dhKX8EAsj6FC2k,107
14
+ common_expression_language-0.10.0.dist-info/entry_points.txt,sha256=YiEdtlzHEAjFgkxkdOUW_0nHZnctI5qIaaWpDd5_Nag,40
15
+ common_expression_language-0.10.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
16
+ common_expression_language-0.10.0.dist-info/sboms/cel.cyclonedx.json,sha256=tOVp_CcNOvelffk1UDRtjlFDlKEZ7MHnxzift4q6rII,64996
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: maturin (1.15.0)
3
+ Root-Is-Purelib: false
4
+ Tag: cp313-cp313-macosx_10_12_x86_64
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ cel=cel.cli:cli_entry
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.