xbase-util 0.0.1__tar.gz → 0.0.2__tar.gz
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.
- {xbase_util-0.0.1 → xbase_util-0.0.2}/PKG-INFO +1 -1
- {xbase_util-0.0.1 → xbase_util-0.0.2}/setup.py +1 -1
- {xbase_util-0.0.1 → xbase_util-0.0.2}/xbase_util/xbase_util.py +5 -1
- {xbase_util-0.0.1 → xbase_util-0.0.2}/xbase_util.egg-info/PKG-INFO +1 -1
- {xbase_util-0.0.1 → xbase_util-0.0.2}/README.md +0 -0
- {xbase_util-0.0.1 → xbase_util-0.0.2}/setup.cfg +0 -0
- {xbase_util-0.0.1 → xbase_util-0.0.2}/xbase_util/__init__.py +0 -0
- {xbase_util-0.0.1 → xbase_util-0.0.2}/xbase_util.egg-info/SOURCES.txt +0 -0
- {xbase_util-0.0.1 → xbase_util-0.0.2}/xbase_util.egg-info/dependency_links.txt +0 -0
- {xbase_util-0.0.1 → xbase_util-0.0.2}/xbase_util.egg-info/not-zip-safe +0 -0
- {xbase_util-0.0.1 → xbase_util-0.0.2}/xbase_util.egg-info/requires.txt +0 -0
- {xbase_util-0.0.1 → xbase_util-0.0.2}/xbase_util.egg-info/top_level.txt +0 -0
@@ -1,9 +1,13 @@
|
|
1
|
+
import os
|
2
|
+
|
1
3
|
import execjs
|
4
|
+
current_dir = os.path.dirname(__file__)
|
5
|
+
parse_path = os.path.join(current_dir, '..', 'assets', 'arkimeparse.js')
|
2
6
|
|
3
7
|
|
4
8
|
def parse_expression(expression):
|
5
9
|
if expression:
|
6
|
-
with open(
|
10
|
+
with open(parse_path, "r") as f:
|
7
11
|
ctx = execjs.compile(f.read())
|
8
12
|
return ctx.call("parse_exp", expression)
|
9
13
|
else:
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|