hh-applicant-tool 0.5.3__py3-none-any.whl → 0.5.4__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.

Potentially problematic release.


This version of hh-applicant-tool might be problematic. Click here for more details.

@@ -43,7 +43,7 @@ class Operation(BaseOperation, GetResumeIdMixin):
43
43
  "-L",
44
44
  "--message-list",
45
45
  help="Путь до файла, где хранятся сообщения для отклика на вакансии. Каждое сообщение — с новой строки.",
46
- type=argparse.FileType(),
46
+ type=argparse.FileType('r', encoding='utf-8', errors='replace'),
47
47
  )
48
48
  parser.add_argument(
49
49
  "-f",
@@ -106,18 +106,19 @@ class Operation(BaseOperation, GetResumeIdMixin):
106
106
  def run(self, args: Namespace) -> None:
107
107
  self.enable_telemetry = True
108
108
  if args.disable_telemetry:
109
- print(
110
- "👁️ Телеметрия используется только для сбора данных о работодателях и их вакансиях, персональные данные пользователей не передаются на сервер."
111
- )
112
- if (
113
- input("Вы действительно хотите отключить телеметрию (д/Н)? ")
114
- .lower()
115
- .startswith(("д", "y"))
116
- ):
117
- self.enable_telemetry = False
118
- logger.info("Телеметрия отключена.")
119
- else:
120
- logger.info("Спасибо за то что оставили телеметрию включенной!")
109
+ # print(
110
+ # "👁️ Телеметрия используется только для сбора данных о работодателях и их вакансиях, персональные данные пользователей не передаются на сервер."
111
+ # )
112
+ # if (
113
+ # input("Вы действительно хотите отключить телеметрию (д/Н)? ")
114
+ # .lower()
115
+ # .startswith(("д", "y"))
116
+ # ):
117
+ # self.enable_telemetry = False
118
+ # logger.info("Телеметрия отключена.")
119
+ # else:
120
+ # logger.info("Спасибо за то что оставили телеметрию включенной!")
121
+ self.enable_telemetry = False
121
122
 
122
123
  self.api = get_api(args)
123
124
  self.resume_id = args.resume_id or self._get_resume_id()
@@ -44,7 +44,7 @@ class Config(dict):
44
44
  def load(self) -> None:
45
45
  if self._config_path.exists():
46
46
  with self._lock:
47
- with self._config_path.open() as f:
47
+ with self._config_path.open("r", encoding="utf-8", errors="replace") as f:
48
48
  try:
49
49
  self.update(json.load(f))
50
50
  except ValueError:
@@ -54,7 +54,7 @@ class Config(dict):
54
54
  self.update(*args, **kwargs)
55
55
  self._config_path.parent.mkdir(exist_ok=True, parents=True)
56
56
  with self._lock:
57
- with self._config_path.open("w+") as fp:
57
+ with self._config_path.open("w+", encoding="utf-8", errors="replace") as fp:
58
58
  json.dump(
59
59
  self,
60
60
  fp,
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.3
2
2
  Name: hh-applicant-tool
3
- Version: 0.5.3
3
+ Version: 0.5.4
4
4
  Summary:
5
5
  Author: Senior YAML Developer
6
6
  Author-email: yamldeveloper@proton.me
@@ -10,7 +10,7 @@ hh_applicant_tool/constants.py,sha256=lpgKkP2chWgTnBXvzxbSPWpKcfzp8VxMTlkssFcQhH
10
10
  hh_applicant_tool/main.py,sha256=z_SAW7cV83P5mVEkuddSzETUGLqocsNyEKlA6HBHjQ0,4806
11
11
  hh_applicant_tool/mixins.py,sha256=66LmyYSsDfhrpUwoAONjzrd5aoXqaZVoQ-zXhyYbYMk,418
12
12
  hh_applicant_tool/operations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
- hh_applicant_tool/operations/apply_similar.py,sha256=Lmx6roqvDDhikUl08hIpvjlFKx5gL241ibgCMU3FjBQ,16544
13
+ hh_applicant_tool/operations/apply_similar.py,sha256=IYpf8PabOJF6vmbsKYir1NgW0Y2XviBanIGjsbz9AD4,16649
14
14
  hh_applicant_tool/operations/authorize.py,sha256=TyUTCSOGwSYVJMEd5vSI981LRRI-RZf8hnlVYhtRVwA,3184
15
15
  hh_applicant_tool/operations/call_api.py,sha256=qwPDrWP9tiqHkaYYWYBZtymj9AaxObB86Eny-Bf5q_c,1314
16
16
  hh_applicant_tool/operations/clear_negotiations.py,sha256=GEsL1snxz8TJ3i7Nz6LkP4FZOzRBdAofX3xf3Ywj64k,4369
@@ -23,8 +23,8 @@ hh_applicant_tool/operations/update_resumes.py,sha256=gGxMYMoT9GqJjwn4AgrOAEJCZu
23
23
  hh_applicant_tool/operations/whoami.py,sha256=sg0r7m6oKkpMEmGt4QdtYdS-1gf-1KKdnk32yblbRJs,714
24
24
  hh_applicant_tool/telemetry_client.py,sha256=wYLbKnx3sOmESFHqjLt-0Gww1O3lJiXFYdWnsorIhK8,3261
25
25
  hh_applicant_tool/types.py,sha256=q3yaIcq-UOkPzjxws0OFa4w9fTty-yx79_dic70_dUM,843
26
- hh_applicant_tool/utils.py,sha256=OsdjzUa76VC8vihHu27rD5df9DWqRzpvJr3PsdfJzNE,3071
27
- hh_applicant_tool-0.5.3.dist-info/METADATA,sha256=ygQOF7Ywl0pi21LAW7CaN2bSVgG5jO9-dfryRQt7TJE,20687
28
- hh_applicant_tool-0.5.3.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
29
- hh_applicant_tool-0.5.3.dist-info/entry_points.txt,sha256=Vb7M2YaYLMtKYJZh8chIrXZApMzSRFT1-rQw-U9r10g,65
30
- hh_applicant_tool-0.5.3.dist-info/RECORD,,
26
+ hh_applicant_tool/utils.py,sha256=pKmyG55HGmOvOXtHK0x9JBdEfm-hd1b8XroG9tEPSPQ,3146
27
+ hh_applicant_tool-0.5.4.dist-info/METADATA,sha256=d8j1CSX0o5ezl2xq1J-jd5T-ckWLgsgMAd9W2aD8oGM,20687
28
+ hh_applicant_tool-0.5.4.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
29
+ hh_applicant_tool-0.5.4.dist-info/entry_points.txt,sha256=Vb7M2YaYLMtKYJZh8chIrXZApMzSRFT1-rQw-U9r10g,65
30
+ hh_applicant_tool-0.5.4.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 1.9.1
2
+ Generator: poetry-core 2.1.1
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any