Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
209 lines (169 loc) · 12.4 KB
/
Copy pathindex.html
File metadata and controls
209 lines (169 loc) · 12.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
<!DOCTYPE html>
<html lang="en" data-content_root="./">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Pure Python Google Common Expression Language (CEL) — CEL in Python documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=5ecbeea2" />
<link rel="stylesheet" type="text/css" href="_static/basic.css?v=b08954a9" />
<link rel="stylesheet" type="text/css" href="_static/alabaster.css?v=27fed22d" />
<script src="_static/documentation_options.js?v=5929fcd5"></script>
<script src="_static/doctools.js?v=9bcbadda"></script>
<script src="_static/sphinx_highlight.js?v=dc90522c"></script>
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="next" title="Installation" href="installation.html" />
<link rel="stylesheet" href="_static/custom.css" type="text/css" />
</head><body>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body" role="main">
<section id="pure-python-google-common-expression-language-cel">
<h1>Pure Python Google Common Expression Language (CEL)<a class="headerlink" href="#pure-python-google-common-expression-language-cel" title="Link to this heading">¶</a></h1>
<p>Pure Python implementation of Google Common Expression Language, <a class="reference external" href="https://opensource.google/projects/cel">https://opensource.google/projects/cel</a>.</p>
<blockquote>
<div><p>The Common Expression Language (CEL) implements common semantics for expression evaluation,
enabling different applications to more easily interoperate.</p>
<p>Key Applications</p>
<ul class="simple">
<li><p>Security policy: organization have complex infrastructure and need common tooling to reason about the system as a whole</p></li>
<li><p>Protocols: expressions are a useful data type and require interoperability across programming languages and platforms.</p></li>
</ul>
</div></blockquote>
<p>This implementation has minimal dependencies, runs quickly, and can be embedded into Python-based applications.
Specifically, one intent is to be part of Cloud Custodian (C7N) as part of the security policy filter.</p>
<div class="toctree-wrapper compound">
<p class="caption" role="heading"><span class="caption-text">Documentation Content:</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="installation.html">Installation</a></li>
<li class="toctree-l1"><a class="reference internal" href="cli.html">CLI Use of CEL-Python</a><ul>
<li class="toctree-l2"><a class="reference internal" href="cli.html#synopsis">SYNOPSIS</a></li>
<li class="toctree-l2"><a class="reference internal" href="cli.html#description">DESCRIPTION</a></li>
<li class="toctree-l2"><a class="reference internal" href="cli.html#files">FILES</a></li>
<li class="toctree-l2"><a class="reference internal" href="cli.html#environment-variables">ENVIRONMENT VARIABLES</a></li>
<li class="toctree-l2"><a class="reference internal" href="cli.html#configuration">CONFIGURATION</a></li>
<li class="toctree-l2"><a class="reference internal" href="cli.html#exit-status">EXIT STATUS</a></li>
<li class="toctree-l2"><a class="reference internal" href="cli.html#examples">EXAMPLES</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="configuration.html">Configuration</a></li>
<li class="toctree-l1"><a class="reference internal" href="integration.html">Application Integration</a><ul>
<li class="toctree-l2"><a class="reference internal" href="integration.html#integration-essentials">Integration Essentials</a></li>
<li class="toctree-l2"><a class="reference internal" href="integration.html#function-bindings">Function Bindings</a></li>
<li class="toctree-l2"><a class="reference internal" href="integration.html#more-examples-from-the-go-implementation">More Examples from the Go implementation</a></li>
<li class="toctree-l2"><a class="reference internal" href="integration.html#exceptions-and-errors">Exceptions and Errors</a></li>
<li class="toctree-l2"><a class="reference internal" href="integration.html#cloud-custodian-c7n-integration">Cloud Custodian (C7N) Integration</a></li>
<li class="toctree-l2"><a class="reference internal" href="integration.html#external-api">External API</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="structure.html">Architecture and Design</a><ul>
<li class="toctree-l2"><a class="reference internal" href="structure.html#context">Context</a></li>
<li class="toctree-l2"><a class="reference internal" href="structure.html#container">Container</a></li>
<li class="toctree-l2"><a class="reference internal" href="structure.html#components">Components</a></li>
<li class="toctree-l2"><a class="reference internal" href="structure.html#transpiler-missing-names">Transpiler Missing Names</a></li>
<li class="toctree-l2"><a class="reference internal" href="structure.html#the-member-dot-production">The Member-Dot Production</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="api.html">API Reference</a><ul>
<li class="toctree-l2"><a class="reference internal" href="api.html#module-celpy.__init__"><code class="docutils literal notranslate"><span class="pre">celpy</span></code></a></li>
<li class="toctree-l2"><a class="reference internal" href="api.html#module-celpy.__main__"><code class="docutils literal notranslate"><span class="pre">__main__</span></code></a></li>
<li class="toctree-l2"><a class="reference internal" href="api.html#module-celpy.adapter"><code class="docutils literal notranslate"><span class="pre">adapter</span></code></a></li>
<li class="toctree-l2"><a class="reference internal" href="api.html#module-celpy.c7nlib"><code class="docutils literal notranslate"><span class="pre">c7nlib</span></code></a></li>
<li class="toctree-l2"><a class="reference internal" href="api.html#module-celpy.celparser"><code class="docutils literal notranslate"><span class="pre">celparser</span></code></a></li>
<li class="toctree-l2"><a class="reference internal" href="api.html#module-celpy.celtypes"><code class="docutils literal notranslate"><span class="pre">celtypes</span></code></a></li>
<li class="toctree-l2"><a class="reference internal" href="api.html#module-celpy.evaluation"><code class="docutils literal notranslate"><span class="pre">evaluation</span></code></a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="development.html">Development Tools</a><ul>
<li class="toctree-l2"><a class="reference internal" href="development.html#the-pb2g-tool">The pb2g Tool</a></li>
<li class="toctree-l2"><a class="reference internal" href="development.html#the-features-makefile">The <code class="docutils literal notranslate"><span class="pre">features/Makefile</span></code></a></li>
<li class="toctree-l2"><a class="reference internal" href="development.html#the-docs-makefile">The <code class="docutils literal notranslate"><span class="pre">docs/Makefile</span></code></a></li>
<li class="toctree-l2"><a class="reference internal" href="development.html#the-project-makefile">The Project <code class="docutils literal notranslate"><span class="pre">Makefile</span></code></a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="c7n_functions.html">C7N Functions Required</a><ul>
<li class="toctree-l2"><a class="reference internal" href="c7n_functions.html#design-principles">Design Principles</a></li>
<li class="toctree-l2"><a class="reference internal" href="c7n_functions.html#c7n-context-object">C7N Context Object</a></li>
<li class="toctree-l2"><a class="reference internal" href="c7n_functions.html#celfilter-design">CELFilter Design</a></li>
<li class="toctree-l2"><a class="reference internal" href="c7n_functions.html#c7n-cache">C7N Cache</a></li>
<li class="toctree-l2"><a class="reference internal" href="c7n_functions.html#common-c7n-constructs">Common C7N Constructs</a></li>
<li class="toctree-l2"><a class="reference internal" href="c7n_functions.html#common-non-bool-filters">Common/Non-Bool Filters</a></li>
<li class="toctree-l2"><a class="reference internal" href="c7n_functions.html#common-boolean-filters">Common/Boolean Filters</a></li>
<li class="toctree-l2"><a class="reference internal" href="c7n_functions.html#singleton-non-bool-filters">Singleton/Non-Bool Filters</a></li>
<li class="toctree-l2"><a class="reference internal" href="c7n_functions.html#singleton-boolean-filters">Singleton/Boolean Filters</a></li>
<li class="toctree-l2"><a class="reference internal" href="c7n_functions.html#summary">Summary</a></li>
</ul>
</li>
</ul>
</div>
</section>
<section id="integration-overview">
<h1>Integration Overview<a class="headerlink" href="#integration-overview" title="Link to this heading">¶</a></h1>
<p>Interested in the API for using this package? There are three key topics:</p>
<ul class="simple">
<li><p><a class="reference internal" href="integration.html#integration"><span class="std std-ref">Application Integration</span></a></p></li>
<li><p><a class="reference internal" href="api.html#api-reference"><span class="std std-ref">API Reference</span></a></p></li>
<li><p><a class="reference internal" href="structure.html#data-structures"><span class="std std-ref">Architecture and Design</span></a></p></li>
</ul>
<p>The integration into another application is often a bit more than an <code class="docutils literal notranslate"><span class="pre">import</span></code>.
This is because it involves combining CEL into another DSL.</p>
<p>The current implementation includes Cloud Custodian (C7N) integration.</p>
</section>
<section id="indices-and-tables">
<h1>Indices and tables<a class="headerlink" href="#indices-and-tables" title="Link to this heading">¶</a></h1>
<ul class="simple">
<li><p><a class="reference internal" href="genindex.html"><span class="std std-ref">Index</span></a></p></li>
<li><p><a class="reference internal" href="py-modindex.html"><span class="std std-ref">Module Index</span></a></p></li>
<li><p><a class="reference internal" href="search.html"><span class="std std-ref">Search Page</span></a></p></li>
</ul>
</section>
</div>
</div>
</div>
<div class="sphinxsidebar" role="navigation" aria-label="Main">
<div class="sphinxsidebarwrapper">
<h1 class="logo"><a href="#">CEL in Python</a></h1>
<search id="searchbox" style="display: none" role="search">
<div class="searchformwrapper">
<form class="search" action="search.html" method="get">
<input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" placeholder="Search"/>
<input type="submit" value="Go" />
</form>
</div>
</search>
<script>document.getElementById('searchbox').style.display = "block"</script><h3>Navigation</h3>
<p class="caption" role="heading"><span class="caption-text">Documentation Content:</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="installation.html">Installation</a></li>
<li class="toctree-l1"><a class="reference internal" href="cli.html">CLI Use of CEL-Python</a></li>
<li class="toctree-l1"><a class="reference internal" href="configuration.html">Configuration</a></li>
<li class="toctree-l1"><a class="reference internal" href="integration.html">Application Integration</a></li>
<li class="toctree-l1"><a class="reference internal" href="structure.html">Architecture and Design</a></li>
<li class="toctree-l1"><a class="reference internal" href="api.html">API Reference</a></li>
<li class="toctree-l1"><a class="reference internal" href="development.html">Development Tools</a></li>
<li class="toctree-l1"><a class="reference internal" href="c7n_functions.html">C7N Functions Required</a></li>
</ul>
<div class="relations">
<h3>Related Topics</h3>
<ul>
<li><a href="#">Documentation overview</a><ul>
<li>Next: <a href="installation.html" title="next chapter">Installation</a></li>
</ul></li>
</ul>
</div>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="footer">
©2020, CapitalOne.
|
Powered by <a href="https://www.sphinx-doc.org/">Sphinx 8.2.3</a>
& <a href="https://alabaster.readthedocs.io">Alabaster 1.0.0</a>
|
<a href="_sources/index.rst.txt"
rel="nofollow">Page source</a>
</div>
</body>
</html>