atk-common 1.29.0__py3-none-any.whl → 1.30.0__py3-none-any.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.
atk_common/db_utils.py CHANGED
@@ -1,7 +1,5 @@
1
- import psycopg2
2
- from psycopg2.extras import RealDictCursor
3
-
4
1
  def sql(connection, sql, get_one):
2
+ from psycopg2.extras import RealDictCursor
5
3
  with connection:
6
4
  with connection.cursor(cursor_factory=RealDictCursor) as cursor:
7
5
  cursor.execute(sql)
@@ -10,6 +8,7 @@ def sql(connection, sql, get_one):
10
8
  return cursor.fetchall()
11
9
 
12
10
  def sql_with_record(connection, sql, record):
11
+ from psycopg2.extras import RealDictCursor
13
12
  with connection:
14
13
  with connection.cursor(cursor_factory=RealDictCursor) as cursor:
15
14
  cursor.execute(sql, record)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: atk_common
3
- Version: 1.29.0
3
+ Version: 1.30.0
4
4
  Summary: ATK common methods
5
5
  Home-page: https://github.com/pypa/atk_common
6
6
  Author: Roger
@@ -1,6 +1,6 @@
1
1
  atk_common/__init__.py,sha256=G2r5JTcOHLwHFrvpLC4L-t3JlilWQq8-oSDMeUF3AYA,1360
2
2
  atk_common/datetime_utils.py,sha256=tMXB3ZuRG8GyA25YLaNXhs4cVHF5zWdw9fXOh0Z9kQw,379
3
- atk_common/db_utils.py,sha256=6S-WlQltnYjrG0AJ1BXwLgkqT4T6cQmHnHI9ksCdy38,869
3
+ atk_common/db_utils.py,sha256=odUtXcS7Mumw5eGyVyVimL_U_lP7TqMX9v8nWO5nMvg,902
4
4
  atk_common/docker_utils.py,sha256=nkUhp2OhwJsm41JDujHDY-JxQfdDjy91duprH59Esfk,2084
5
5
  atk_common/env_utils.py,sha256=66v-S0vlkJNaun6ay1XcOGRtYJb4Ce4odJsWxuaHsQc,373
6
6
  atk_common/error_utils.py,sha256=7SN-Jz3i2MGIPqsexnjgbZg5poMnALLEiCJQ4za5im4,2398
@@ -39,7 +39,7 @@ atk_common/enums/sensor_type_enum.py,sha256=UBa3LPyGTKgEJV578CqFlwXjnlXqVlybrvzd
39
39
  atk_common/enums/speed_control_status_enum.py,sha256=qpURh0K1L1tSpbrzVnckoe4hUn1illIkbo7k4mLfzIM,182
40
40
  atk_common/enums/speed_control_status_type_enum.py,sha256=qpURh0K1L1tSpbrzVnckoe4hUn1illIkbo7k4mLfzIM,182
41
41
  atk_common/enums/violation_type_enum.py,sha256=01qTHOj-O8bOc-nwIHVnxLosm4cusD_YuqXM3ZsiRRk,86
42
- atk_common-1.29.0.dist-info/licenses/license.txt,sha256=_0O6fWM00-wTurDjnZhUP_N5QiwGhItaQZqHq5eqadA,1063
42
+ atk_common-1.30.0.dist-info/licenses/license.txt,sha256=_0O6fWM00-wTurDjnZhUP_N5QiwGhItaQZqHq5eqadA,1063
43
43
  atk_package/__init__.py,sha256=EceDa352WFHTdC_LxYANXf_TS9pGzK3MCx87bwAKTvg,811
44
44
  atk_package/datetime_utils.py,sha256=qsVF7l90P1-xukG2tV_jLqG9J_Yfl5wTpyfrdPBlyMo,239
45
45
  atk_package/env_utils.py,sha256=bXOrxM3fZUslqfmZt75iphbEJHbG4riJa8XOVzPwIII,313
@@ -52,7 +52,7 @@ atk_package/enums/__init__.py,sha256=EtUr_--MQj1Rc_R0sF_ELXIThmhpfmhDWq3YaK9oQMk
52
52
  atk_package/enums/command_status_enum.py,sha256=M2Nln27a_DbzI07-gfytWQk2X087JhkU6Fmard5qVHs,127
53
53
  atk_package/enums/speed_control_status_enum.py,sha256=qpURh0K1L1tSpbrzVnckoe4hUn1illIkbo7k4mLfzIM,182
54
54
  shared_python_atk_enforcement/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
55
- atk_common-1.29.0.dist-info/METADATA,sha256=hi_-_LEDC9ODmJxP6O2ZViUM1bC5EHzNs7ITPWj5HSA,1464
56
- atk_common-1.29.0.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
57
- atk_common-1.29.0.dist-info/top_level.txt,sha256=4CwRjkLnheIdI4jQwc4tK3dbRc58WqUmoqjkdDTWlME,41
58
- atk_common-1.29.0.dist-info/RECORD,,
55
+ atk_common-1.30.0.dist-info/METADATA,sha256=VtCMZuZzh9HMtrZ43VKDH3w71hhSdIxqfu5JU85yOaU,1464
56
+ atk_common-1.30.0.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
57
+ atk_common-1.30.0.dist-info/top_level.txt,sha256=4CwRjkLnheIdI4jQwc4tK3dbRc58WqUmoqjkdDTWlME,41
58
+ atk_common-1.30.0.dist-info/RECORD,,