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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: xbase_util
3
- Version: 0.0.1
3
+ Version: 0.0.2
4
4
  Summary: 网络安全基础工具
5
5
  Author: xyt
6
6
  Author-email: 2506564278@qq.com
@@ -3,7 +3,7 @@ from distutils.core import setup
3
3
  from setuptools import find_packages
4
4
 
5
5
  setup(name="xbase_util",
6
- version="0.0.1",
6
+ version="0.0.2",
7
7
  description="网络安全基础工具",
8
8
  long_description="包含提取,预测,训练的基础工具",
9
9
  author="xyt",
@@ -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(f"assets/base/arkimeparse.js", "r") as f:
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:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: xbase-util
3
- Version: 0.0.1
3
+ Version: 0.0.2
4
4
  Summary: 网络安全基础工具
5
5
  Author: xyt
6
6
  Author-email: 2506564278@qq.com
File without changes
File without changes