hh-applicant-tool 0.5.3__tar.gz → 0.5.4__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.

Potentially problematic release.


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

Files changed (29) hide show
  1. {hh_applicant_tool-0.5.3 → hh_applicant_tool-0.5.4}/PKG-INFO +2 -2
  2. {hh_applicant_tool-0.5.3 → hh_applicant_tool-0.5.4}/hh_applicant_tool/operations/apply_similar.py +14 -13
  3. {hh_applicant_tool-0.5.3 → hh_applicant_tool-0.5.4}/hh_applicant_tool/utils.py +2 -2
  4. {hh_applicant_tool-0.5.3 → hh_applicant_tool-0.5.4}/pyproject.toml +1 -1
  5. {hh_applicant_tool-0.5.3 → hh_applicant_tool-0.5.4}/README.md +0 -0
  6. {hh_applicant_tool-0.5.3 → hh_applicant_tool-0.5.4}/hh_applicant_tool/__init__.py +0 -0
  7. {hh_applicant_tool-0.5.3 → hh_applicant_tool-0.5.4}/hh_applicant_tool/__main__.py +0 -0
  8. {hh_applicant_tool-0.5.3 → hh_applicant_tool-0.5.4}/hh_applicant_tool/ai/__init__.py +0 -0
  9. {hh_applicant_tool-0.5.3 → hh_applicant_tool-0.5.4}/hh_applicant_tool/ai/blackbox.py +0 -0
  10. {hh_applicant_tool-0.5.3 → hh_applicant_tool-0.5.4}/hh_applicant_tool/api/__init__.py +0 -0
  11. {hh_applicant_tool-0.5.3 → hh_applicant_tool-0.5.4}/hh_applicant_tool/api/client.py +0 -0
  12. {hh_applicant_tool-0.5.3 → hh_applicant_tool-0.5.4}/hh_applicant_tool/api/errors.py +0 -0
  13. {hh_applicant_tool-0.5.3 → hh_applicant_tool-0.5.4}/hh_applicant_tool/color_log.py +0 -0
  14. {hh_applicant_tool-0.5.3 → hh_applicant_tool-0.5.4}/hh_applicant_tool/constants.py +0 -0
  15. {hh_applicant_tool-0.5.3 → hh_applicant_tool-0.5.4}/hh_applicant_tool/main.py +0 -0
  16. {hh_applicant_tool-0.5.3 → hh_applicant_tool-0.5.4}/hh_applicant_tool/mixins.py +0 -0
  17. {hh_applicant_tool-0.5.3 → hh_applicant_tool-0.5.4}/hh_applicant_tool/operations/__init__.py +0 -0
  18. {hh_applicant_tool-0.5.3 → hh_applicant_tool-0.5.4}/hh_applicant_tool/operations/authorize.py +0 -0
  19. {hh_applicant_tool-0.5.3 → hh_applicant_tool-0.5.4}/hh_applicant_tool/operations/call_api.py +0 -0
  20. {hh_applicant_tool-0.5.3 → hh_applicant_tool-0.5.4}/hh_applicant_tool/operations/clear_negotiations.py +0 -0
  21. {hh_applicant_tool-0.5.3 → hh_applicant_tool-0.5.4}/hh_applicant_tool/operations/config.py +0 -0
  22. {hh_applicant_tool-0.5.3 → hh_applicant_tool-0.5.4}/hh_applicant_tool/operations/get_employer_contacts.py +0 -0
  23. {hh_applicant_tool-0.5.3 → hh_applicant_tool-0.5.4}/hh_applicant_tool/operations/list_resumes.py +0 -0
  24. {hh_applicant_tool-0.5.3 → hh_applicant_tool-0.5.4}/hh_applicant_tool/operations/refresh_token.py +0 -0
  25. {hh_applicant_tool-0.5.3 → hh_applicant_tool-0.5.4}/hh_applicant_tool/operations/reply_employers.py +0 -0
  26. {hh_applicant_tool-0.5.3 → hh_applicant_tool-0.5.4}/hh_applicant_tool/operations/update_resumes.py +0 -0
  27. {hh_applicant_tool-0.5.3 → hh_applicant_tool-0.5.4}/hh_applicant_tool/operations/whoami.py +0 -0
  28. {hh_applicant_tool-0.5.3 → hh_applicant_tool-0.5.4}/hh_applicant_tool/telemetry_client.py +0 -0
  29. {hh_applicant_tool-0.5.3 → hh_applicant_tool-0.5.4}/hh_applicant_tool/types.py +0 -0
@@ -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
@@ -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
1
  [tool.poetry]
2
2
  name = "hh-applicant-tool"
3
- version = "0.5.3"
3
+ version = "0.5.4"
4
4
  description = ""
5
5
  authors = ["Senior YAML Developer <yamldeveloper@proton.me>"]
6
6
  readme = "README.md"