dublib 0.5.0__tar.gz → 0.5.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: dublib
3
- Version: 0.5.0
3
+ Version: 0.5.2
4
4
  Summary: Коллекция модулей от DUB1401.
5
5
  Author-email: DUB1401 <vlad.milosta@outlook.com>
6
6
  License: This is free and unencumbered software released into the public domain.
@@ -3,15 +3,21 @@ requires = ["setuptools", "cython"]
3
3
 
4
4
  [project]
5
5
  name = "dublib"
6
- version = "0.5.0"
6
+ version = "0.5.2"
7
7
  description = "Коллекция модулей от DUB1401."
8
8
  authors = [
9
- {name = "DUB1401", email="vlad.milosta@outlook.com"}
9
+ {name = "DUB1401", email = "vlad.milosta@outlook.com"}
10
10
  ]
11
11
  readme = "README.md"
12
12
  license = {file = "LICENSE"}
13
13
  requires-python = ">=3.10"
14
- dependencies = ["curl_cffi>=0.6.0", "fake_useragent", "httpx", "httpx[http2]", "requests"]
14
+ dependencies = [
15
+ "curl_cffi>=0.6.0",
16
+ "fake_useragent",
17
+ "httpx",
18
+ "httpx[http2]",
19
+ "requests",
20
+ ]
15
21
  classifiers = [
16
22
  "Development Status :: 4 - Beta",
17
23
  "License :: OSI Approved :: The Unlicense (Unlicense)",
@@ -98,7 +98,7 @@ class Markdown:
98
98
  # Буфер текста.
99
99
  Text = self.__Text
100
100
  # Для каждого спецсимвола провести экранирование.
101
- for Character in self.__SpecialCharacters: Text = re.sub(f"(?<!\\\\)\\{Character}", f"\\{Character}", self.__Text)
101
+ for Character in self.__SpecialCharacters: Text = re.sub(f"(?<!\\\\)\\{Character}", f"\\{Character}", Text)
102
102
 
103
103
  return Text
104
104
 
@@ -447,6 +447,8 @@ class WebRequestor:
447
447
  cookies – словарь куков.
448
448
  """
449
449
 
450
+ # Эмуляция ответа.
451
+ Response = WebResponse()
450
452
  # Обработка заголовков.
451
453
  headers = self.__MergeHeaders(headers)
452
454
  # Выполнение запроса.
@@ -464,7 +466,9 @@ class WebRequestor:
464
466
  data – данные запроса;
465
467
  json – сериализованное тело запроса.
466
468
  """
467
-
469
+
470
+ # Эмуляция ответа.
471
+ Response = WebResponse()
468
472
  # Обработка заголовков.
469
473
  headers = self.__MergeHeaders(headers)
470
474
  # Выполнение запроса.
@@ -485,6 +489,8 @@ class WebRequestor:
485
489
  cookies – словарь куков.
486
490
  """
487
491
 
492
+ # Эмуляция ответа.
493
+ Response = WebResponse()
488
494
  # Обработка заголовков.
489
495
  headers = self.__MergeHeaders(headers)
490
496
  # Выполнение запроса.
@@ -502,7 +508,9 @@ class WebRequestor:
502
508
  data – данные запроса;
503
509
  json – сериализованное тело запроса.
504
510
  """
505
-
511
+
512
+ # Эмуляция ответа.
513
+ Response = WebResponse()
506
514
  # Обработка заголовков.
507
515
  headers = self.__MergeHeaders(headers)
508
516
  # Выполнение запроса.
@@ -523,10 +531,10 @@ class WebRequestor:
523
531
  cookies – словарь куков.
524
532
  """
525
533
 
526
- # Обработка заголовков.
527
- headers = self.__MergeHeaders(headers)
528
534
  # Эмуляция ответа.
529
535
  Response = WebResponse()
536
+ # Обработка заголовков.
537
+ headers = self.__MergeHeaders(headers)
530
538
 
531
539
  try:
532
540
  # Выполнение запроса.
@@ -550,10 +558,10 @@ class WebRequestor:
550
558
  json – сериализованное тело запроса.
551
559
  """
552
560
 
553
- # Обработка заголовков.
554
- headers = self.__MergeHeaders(headers)
555
561
  # Эмуляция ответа.
556
562
  Response = WebResponse()
563
+ # Обработка заголовков.
564
+ headers = self.__MergeHeaders(headers)
557
565
 
558
566
  try:
559
567
  # Выполнение запроса.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dublib
3
- Version: 0.5.0
3
+ Version: 0.5.2
4
4
  Summary: Коллекция модулей от DUB1401.
5
5
  Author-email: DUB1401 <vlad.milosta@outlook.com>
6
6
  License: This is free and unencumbered software released into the public domain.
File without changes
File without changes
File without changes
File without changes
File without changes