arpakitlib 1.6.74__py3-none-any.whl → 1.6.75__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.
@@ -1,5 +1,5 @@
1
1
  # arpakit
2
-
2
+ import os
3
3
  import shlex
4
4
 
5
5
  from pydantic import BaseModel
@@ -15,6 +15,7 @@ class BadCommandFormat(Exception):
15
15
 
16
16
  class ParsedCommand(BaseModel):
17
17
  command: str
18
+ full_command: str
18
19
  key_to_value: dict[str, str | None] = {}
19
20
  values_without_key: list[str] = []
20
21
 
@@ -76,7 +77,7 @@ def parse_command(text: str) -> ParsedCommand:
76
77
  if len(parts[0]) == 1:
77
78
  raise BadCommandFormat("len(parts[0]) == 1")
78
79
 
79
- res = ParsedCommand(command=parts[0])
80
+ res = ParsedCommand(full_command=parts[0], command=os.path.basename(parts[0]).removeprefix("/"))
80
81
 
81
82
  last_key: str | None = None
82
83
  for part in parts[1:]:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: arpakitlib
3
- Version: 1.6.74
3
+ Version: 1.6.75
4
4
  Summary: arpakitlib
5
5
  Home-page: https://github.com/ARPAKIT-Company/arpakitlib
6
6
  License: Apache-2.0
@@ -89,7 +89,7 @@ arpakitlib/ar_mongodb_util.py,sha256=2ECkTnGAZ92qxioL-fmN6R4yZOSr3bXdXLWTzT1C3vk
89
89
  arpakitlib/ar_need_type_util.py,sha256=n2kBETxzOSVhSVoy7qUtHtuQzgrrxzgi1_iVQimPb9o,1615
90
90
  arpakitlib/ar_openai_util.py,sha256=dHUbfg1sVVCjsNl_fra3iCMEz1bR-Hk9fE-DdYbu7Wc,1215
91
91
  arpakitlib/ar_operation_execution_util.py,sha256=w_dz4XYEM4WbTxpBoYVkknG3U3_391cJmitgljJJTO0,12373
92
- arpakitlib/ar_parse_command.py,sha256=yaaAX_ElvdRDECx3cO4UUX0CaEWRxlhunCdrOA-uP2M,3357
92
+ arpakitlib/ar_parse_command.py,sha256=-s61xcATIsfw1eV_iD3xi-grsitbGzSDoAFc5V0OFy4,3447
93
93
  arpakitlib/ar_postgresql_util.py,sha256=1AuLjEaa1Lg4pzn-ukCVnDi35Eg1k91APRTqZhIJAdo,945
94
94
  arpakitlib/ar_project_template_util.py,sha256=UciA86IX6rcooA6aEPSzu6AvdtJcUR5aD6wXiKVUmVU,2366
95
95
  arpakitlib/ar_run_cmd_util.py,sha256=D_rPavKMmWkQtwvZFz-Io5Ak8eSODHkcFeLPzNVC68g,1072
@@ -103,9 +103,9 @@ arpakitlib/ar_str_util.py,sha256=AhcdrEm-pXRilCaDWCdTfVkQSy0SnbE52ur43Ltr6cI,212
103
103
  arpakitlib/ar_type_util.py,sha256=5nDnXL5Oyozlg8XvxMrogsoYiG8_atItg46A0mtv-pk,2025
104
104
  arpakitlib/ar_yookassa_api_client_util.py,sha256=5GMvu8paByni8buhc1vpHB7n6oXe0gPfj1LSvnyZCrQ,5307
105
105
  arpakitlib/ar_zabbix_util.py,sha256=Q-VR4MvoZ9aHwZeYZr9G3LwN-ANx1T5KFmF6pvPM-9M,6402
106
- arpakitlib-1.6.74.dist-info/LICENSE,sha256=GPEDQMam2r7FSTYqM1mm7aKnxLaWcBotH7UvQtea-ec,11355
107
- arpakitlib-1.6.74.dist-info/METADATA,sha256=fw6DHWUim00Ld19GH241xZjmAwLhdchmp4aXOtcLIKw,2665
108
- arpakitlib-1.6.74.dist-info/NOTICE,sha256=95aUzaPJjVpDsGAsNzVnq7tHTxAl0s5UFznCTkVCau4,763
109
- arpakitlib-1.6.74.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
110
- arpakitlib-1.6.74.dist-info/entry_points.txt,sha256=RybYAcp2JEzQ3o5n9uFS4Ul3IKDx4Iojp63Wp6nbj04,76
111
- arpakitlib-1.6.74.dist-info/RECORD,,
106
+ arpakitlib-1.6.75.dist-info/LICENSE,sha256=GPEDQMam2r7FSTYqM1mm7aKnxLaWcBotH7UvQtea-ec,11355
107
+ arpakitlib-1.6.75.dist-info/METADATA,sha256=eWoPgz2mbl0VWjTg2F_HPZg1LEvpsxd_T3fJq6zPC7Y,2665
108
+ arpakitlib-1.6.75.dist-info/NOTICE,sha256=95aUzaPJjVpDsGAsNzVnq7tHTxAl0s5UFznCTkVCau4,763
109
+ arpakitlib-1.6.75.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
110
+ arpakitlib-1.6.75.dist-info/entry_points.txt,sha256=RybYAcp2JEzQ3o5n9uFS4Ul3IKDx4Iojp63Wp6nbj04,76
111
+ arpakitlib-1.6.75.dist-info/RECORD,,