arpakitlib 1.8.139__py3-none-any.whl → 1.8.141__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.
arpakitlib/ar_str_util.py CHANGED
@@ -2,9 +2,6 @@
2
2
 
3
3
  from typing import Optional, Any
4
4
 
5
- import markdown
6
- from bs4 import BeautifulSoup
7
-
8
5
  from arpakitlib.ar_type_util import raise_for_type
9
6
 
10
7
  _ARPAKIT_LIB_MODULE_VERSION = "3.0"
@@ -85,11 +82,14 @@ def lower_and_strip_if_not_none(string: str | None) -> str | None:
85
82
 
86
83
 
87
84
  def remove_html(string: str) -> str:
85
+ from bs4 import BeautifulSoup
88
86
  raise_for_type(string, str)
89
87
  return BeautifulSoup(string, "html.parser").text
90
88
 
91
89
 
92
90
  def remove_markdown(text: str) -> str:
91
+ import markdown
92
+ from bs4 import BeautifulSoup
93
93
  html_text = markdown.markdown(text)
94
94
  soup = BeautifulSoup(html_text, "html.parser")
95
95
  return soup.get_text(separator=" ", strip=True)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: arpakitlib
3
- Version: 1.8.139
3
+ Version: 1.8.141
4
4
  Summary: arpakitlib
5
5
  License: Apache-2.0
6
6
  Keywords: arpakitlib,arpakit,arpakit-company,arpakitcompany,arpakit_company
@@ -59,6 +59,7 @@ Requires-Dist: sqlalchemy (>=2.0.37,<3.0.0)
59
59
  Requires-Dist: twine (>=6.1.0,<7.0.0)
60
60
  Requires-Dist: uvicorn (>=0.34.0,<0.35.0)
61
61
  Requires-Dist: xlrd (>=2.0.1,<3.0.0)
62
+ Requires-Dist: xlsxwriter (>=3.2.5,<4.0.0)
62
63
  Project-URL: Documentation, https://github.com/ARPAKIT-Company/arpakitlib
63
64
  Project-URL: Homepage, https://github.com/ARPAKIT-Company/arpakitlib
64
65
  Project-URL: Repository, https://github.com/ARPAKIT-Company/arpakitlib
@@ -366,7 +366,6 @@ arpakitlib/ar_base_worker_util.py,sha256=eyaoDy4T_wKSNFu_npigVYZKHpxmt66Vdzb3gZ2
366
366
  arpakitlib/ar_blank_util.py,sha256=qFUdY8usL_pRYamz8Rw1fW3fzNIgrLmpdYP8q-_PQvw,2281
367
367
  arpakitlib/ar_cache_file_util.py,sha256=Fo2pH-Zqm966KWFBHG_pbiySGZvhIFCYqy7k1weRfJ0,3476
368
368
  arpakitlib/ar_class_util.py,sha256=i76pQW_7k_S2m_DlQh6xNjtggv9Col3WSx9W_bwk98E,722
369
- arpakitlib/ar_cryptomus_api_client_util.py,sha256=cvp3u0NtuB0nIVeiljllMuxz9ECVPqR3EyBGWS2YAl8,247
370
369
  arpakitlib/ar_datetime_util.py,sha256=Xe1NiT9oPQzNSG7RVRkhukhbg4i-hhS5ImmV7sPUc8o,971
371
370
  arpakitlib/ar_dict_util.py,sha256=oet-9AJEjQZfG_EI82BuYW0jdW2NQxKjPXol_nfTXjw,447
372
371
  arpakitlib/ar_dream_ai_api_client_util.py,sha256=Z1oii_XSsgunYx17SdcHl54S4KPQti7-MJs0xXZ8vL0,2830
@@ -399,11 +398,11 @@ arpakitlib/ar_sleep_util.py,sha256=ggaj7ML6QK_ADsHMcyu6GUmUpQ_9B9n-SKYH17h-9lM,1
399
398
  arpakitlib/ar_sqladmin_util.py,sha256=Jd33EX_fAso4bvrcDhNEYOUlUHkudbadNGOJDg7rqhQ,301
400
399
  arpakitlib/ar_sqlalchemy_util.py,sha256=Fo7xdHu1rjyHNj2XzN7r_yXbaajGK8dxBPsOL6-DzVU,10559
401
400
  arpakitlib/ar_ssh_runner_util.py,sha256=yvAwza480MkHKvLkDEsR7JNh2bYNs6P9rCVo4NA85NE,6865
402
- arpakitlib/ar_str_util.py,sha256=CAv0wH8nP5Ja59S-hEdmNhNrM_Fwy935d0zntLpJkx8,4309
401
+ arpakitlib/ar_str_util.py,sha256=2lGpnXDf2h1cBZpVf5i1tX_HCv5iBd6IGnrCw4QWWlY,4350
403
402
  arpakitlib/ar_type_util.py,sha256=Cs_tef-Fc5xeyAF54KgISCsP11NHyzIsglm4S3Xx7iM,4049
404
403
  arpakitlib/ar_yookassa_api_client_util.py,sha256=VozuZeCJjmLd1zj2BdC9WfiAQ3XYOrIMsdpNK-AUlm0,5347
405
- arpakitlib-1.8.139.dist-info/LICENSE,sha256=GPEDQMam2r7FSTYqM1mm7aKnxLaWcBotH7UvQtea-ec,11355
406
- arpakitlib-1.8.139.dist-info/METADATA,sha256=9n5m0WHAj1U9h7dAy5X65p2vBDxUNDrzwiw0eNZ596c,3617
407
- arpakitlib-1.8.139.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
408
- arpakitlib-1.8.139.dist-info/entry_points.txt,sha256=36xqR3PJFT2kuwjkM_EqoIy0qFUDPKSm_mJaI7emewE,87
409
- arpakitlib-1.8.139.dist-info/RECORD,,
404
+ arpakitlib-1.8.141.dist-info/LICENSE,sha256=GPEDQMam2r7FSTYqM1mm7aKnxLaWcBotH7UvQtea-ec,11355
405
+ arpakitlib-1.8.141.dist-info/METADATA,sha256=sLbIta5Bb-wgnbWZw8VYmbQxoTh2I94Cgko6tgHinJ4,3660
406
+ arpakitlib-1.8.141.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
407
+ arpakitlib-1.8.141.dist-info/entry_points.txt,sha256=36xqR3PJFT2kuwjkM_EqoIy0qFUDPKSm_mJaI7emewE,87
408
+ arpakitlib-1.8.141.dist-info/RECORD,,
@@ -1,21 +0,0 @@
1
- # arpakit
2
- import asyncio
3
-
4
- _ARPAKIT_LIB_MODULE_VERSION = "3.0"
5
-
6
-
7
- class CryptomusAPIClient:
8
- pass
9
-
10
-
11
- def __example():
12
- pass
13
-
14
-
15
- async def __async_example():
16
- pass
17
-
18
-
19
- if __name__ == '__main__':
20
- __example()
21
- asyncio.run(__async_example())