reykit 1.1.34__py3-none-any.whl → 1.1.36__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.
- reykit/rbase.py +1 -1
- reykit/ros.py +12 -8
- {reykit-1.1.34.dist-info → reykit-1.1.36.dist-info}/METADATA +1 -3
- {reykit-1.1.34.dist-info → reykit-1.1.36.dist-info}/RECORD +6 -6
- {reykit-1.1.34.dist-info → reykit-1.1.36.dist-info}/WHEEL +0 -0
- {reykit-1.1.34.dist-info → reykit-1.1.36.dist-info}/licenses/LICENSE +0 -0
reykit/rbase.py
CHANGED
@@ -887,7 +887,7 @@ def get_varname(argname: str, level: int = 1) -> str | list[str] | None:
|
|
887
887
|
if type(varnames) == tuple:
|
888
888
|
varnames = [
|
889
889
|
get_astname(varname)
|
890
|
-
if type(
|
890
|
+
if type(varname) != str
|
891
891
|
else varname
|
892
892
|
for varname in varnames
|
893
893
|
]
|
reykit/ros.py
CHANGED
@@ -42,14 +42,6 @@ from json import JSONDecodeError
|
|
42
42
|
from tomllib import loads as tomllib_loads
|
43
43
|
from hashlib import md5 as hashlib_md5
|
44
44
|
from tempfile import TemporaryFile, TemporaryDirectory
|
45
|
-
from docx import Document as docx_document
|
46
|
-
from docx.document import Document
|
47
|
-
from docx.text.paragraph import Paragraph
|
48
|
-
from docx.table import Table
|
49
|
-
from docx.oxml.text.paragraph import CT_P
|
50
|
-
from docx.oxml.table import CT_Tbl
|
51
|
-
from lxml.etree import ElementChildIterator
|
52
|
-
from pdfplumber import open as pdfplumber_open
|
53
45
|
|
54
46
|
from .rbase import Base, throw
|
55
47
|
from .rdata import to_json
|
@@ -1900,6 +1892,15 @@ def extract_docx_content(path: str) -> str:
|
|
1900
1892
|
Content.
|
1901
1893
|
"""
|
1902
1894
|
|
1895
|
+
# Import.
|
1896
|
+
from docx import Document as docx_document
|
1897
|
+
from docx.document import Document
|
1898
|
+
from docx.text.paragraph import Paragraph
|
1899
|
+
from docx.table import Table
|
1900
|
+
from docx.oxml.text.paragraph import CT_P
|
1901
|
+
from docx.oxml.table import CT_Tbl
|
1902
|
+
from lxml.etree import ElementChildIterator
|
1903
|
+
|
1903
1904
|
# Extract.
|
1904
1905
|
document: Document = docx_document(path)
|
1905
1906
|
childs_iter: ElementChildIterator = document.element.body.iterchildren()
|
@@ -1952,6 +1953,9 @@ def extract_pdf_content(path: str) -> str:
|
|
1952
1953
|
Content.
|
1953
1954
|
"""
|
1954
1955
|
|
1956
|
+
# Import.
|
1957
|
+
from pdfplumber import open as pdfplumber_open
|
1958
|
+
|
1955
1959
|
# Extract.
|
1956
1960
|
document = pdfplumber_open(path)
|
1957
1961
|
contents = [
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: reykit
|
3
|
-
Version: 1.1.
|
3
|
+
Version: 1.1.36
|
4
4
|
Summary: Kit method set.
|
5
5
|
Project-URL: homepage, https://github.com/reyxbo/reykit/
|
6
6
|
Author-email: Rey <reyxbo@163.com>
|
@@ -29,8 +29,6 @@ Requires-Dist: pyzbar
|
|
29
29
|
Requires-Dist: qrcode
|
30
30
|
Requires-Dist: requests
|
31
31
|
Requires-Dist: requests-cache
|
32
|
-
Requires-Dist: tqdm
|
33
|
-
Requires-Dist: urwid
|
34
32
|
Requires-Dist: varname
|
35
33
|
Description-Content-Type: text/markdown
|
36
34
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
reykit/__init__.py,sha256=V86CHqPAAVkooVx3_QIOKpDIFVneQCTTSwfJ-uWgBno,788
|
2
2
|
reykit/rall.py,sha256=7Hip02YOkIDm3_xkoSDjvvYV2LhdBV2r4UKzWWnIfIo,628
|
3
|
-
reykit/rbase.py,sha256=
|
3
|
+
reykit/rbase.py,sha256=UBlu1-uOl3ZOeVIK6DvFbR3lZmthmGKjpbF-9vwQCpc,22116
|
4
4
|
reykit/rdata.py,sha256=cRUXIYEp-hq56ShclarXE1RoQpaPTPGiBjnabTBft50,10307
|
5
5
|
reykit/remail.py,sha256=s7TXbLgEWEqNoeM42c6FpPufB2LajHgQuahfZri3urQ,6706
|
6
6
|
reykit/rimage.py,sha256=p7caatLE71yy7GUTkTKyMOaJTeBfl6pZr_7BFjcDvY8,6159
|
@@ -8,7 +8,7 @@ reykit/rlog.py,sha256=ykZ8tmMJtwEaAgXmtgtU3SghJG8-ArCIiw0ZawXastg,25564
|
|
8
8
|
reykit/rmonkey.py,sha256=f5vA4t9R6Nz2xfTRUSo2NJ140eg9kT12eaNkKat2AGo,8140
|
9
9
|
reykit/rnet.py,sha256=uS27Ownt9ELsjVKpGMPVN1Endc9s7z7CfIBkfE8bPMs,15033
|
10
10
|
reykit/rnum.py,sha256=PhG4V_BkVfCJUsbpMDN1umGZly1Hsus80TW8bpyBtyY,3653
|
11
|
-
reykit/ros.py,sha256=
|
11
|
+
reykit/ros.py,sha256=E-80r7NyLoi2VUyHTIE8Euz7JxFAwhwrdTeG00Zb-q0,40931
|
12
12
|
reykit/rrand.py,sha256=9QPXCsREIu45g6WP-XN67X05kmW3cTmctn3InvqYxuY,8947
|
13
13
|
reykit/rre.py,sha256=4DVxy28dl5zn6_II8-cgr7E2nVPH5QJIJVB4o7Vsf1A,6078
|
14
14
|
reykit/rschedule.py,sha256=_nrfrXYxlFAKCDbM8ibTTb60zNDlHxyE310cv-A19Kw,5799
|
@@ -22,7 +22,7 @@ reykit/rwrap.py,sha256=RK3wlc2cd-lnAvzqzvKsS21EtCmBNTA3i8HRbaolWE4,15275
|
|
22
22
|
reykit/rzip.py,sha256=ABUDLwEHQIpcvZbJE_oV78H7dik6nC7kaRz660Ro9Os,3481
|
23
23
|
reykit/rdll/__init__.py,sha256=1VRawI2vCsLH7KK0PcBRWNc-bwseM-M05wkc_eamwJM,696
|
24
24
|
reykit/rdll/rdll_core.py,sha256=o6-rKcTQgxZQe0kD3GnwyNb3KL9IogzgCQNOmYLMm7A,5086
|
25
|
-
reykit-1.1.
|
26
|
-
reykit-1.1.
|
27
|
-
reykit-1.1.
|
28
|
-
reykit-1.1.
|
25
|
+
reykit-1.1.36.dist-info/METADATA,sha256=UV6gy22HNhV-kjbMg1iMSfdJWxJ4GyQUp88Ikx5G1pM,1872
|
26
|
+
reykit-1.1.36.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
27
|
+
reykit-1.1.36.dist-info/licenses/LICENSE,sha256=UYLPqp7BvPiH8yEZduJqmmyEl6hlM3lKrFIefiD4rvk,1059
|
28
|
+
reykit-1.1.36.dist-info/RECORD,,
|
File without changes
|
File without changes
|