reykit 1.1.24__py3-none-any.whl → 1.1.25__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/__init__.py +8 -8
- reykit/rall.py +7 -7
- reykit/rdata.py +2 -2
- reykit/rdll/__init__.py +31 -3
- reykit/rdll/{rdll_inject_core.py → rdll_core.py} +1 -1
- reykit/remail.py +1 -1
- reykit/{rexception.py → rexc.py} +3 -14
- reykit/rimage.py +4 -7
- reykit/rlog.py +3 -4
- reykit/rmonkey.py +4 -10
- reykit/{rcomm.py → rnet.py} +6 -6
- reykit/{rnumber.py → rnum.py} +2 -2
- reykit/ros.py +4 -5
- reykit/{rrandom.py → rrand.py} +2 -2
- reykit/rstdout.py +3 -3
- reykit/{rsystem.py → rsys.py} +2 -2
- reykit/{rmultitask.py → rtask.py} +1 -2
- reykit/rtext.py +2 -2
- reykit/rtime.py +4 -4
- reykit/rwrap.py +2 -2
- reykit/rzip.py +0 -1
- {reykit-1.1.24.dist-info → reykit-1.1.25.dist-info}/METADATA +1 -1
- reykit-1.1.25.dist-info/RECORD +29 -0
- reykit/rdll/rdll_inject.py +0 -41
- reykit-1.1.24.dist-info/RECORD +0 -30
- /reykit/{rregex.py → rre.py} +0 -0
- {reykit-1.1.24.dist-info → reykit-1.1.25.dist-info}/WHEEL +0 -0
- {reykit-1.1.24.dist-info → reykit-1.1.25.dist-info}/licenses/LICENSE +0 -0
reykit/__init__.py
CHANGED
@@ -10,23 +10,23 @@
|
|
10
10
|
Modules
|
11
11
|
-------
|
12
12
|
rall : All methods.
|
13
|
-
rcomm : Network communication methods.
|
14
13
|
rdata : Data methods.
|
15
14
|
rdll : DLL file methods.
|
16
15
|
remail : E-mail methods.
|
17
|
-
|
16
|
+
rexc : Exception methods.
|
18
17
|
rimage : Image methods.
|
19
18
|
rlog : Log methods.
|
20
19
|
rmonkey : Monkey patch methods.
|
21
|
-
|
22
|
-
|
20
|
+
rnet : Network methods.
|
21
|
+
rnum : Number methods.
|
23
22
|
ros: Operation system methods.
|
24
|
-
|
25
|
-
|
23
|
+
rrand : Random methods.
|
24
|
+
rre : Regular expression methods.
|
26
25
|
rschedule : Schedule methods.
|
27
|
-
rstdout : Standard output methods.
|
28
|
-
|
26
|
+
rstdout : Standard output and input methods.
|
27
|
+
rsys : Interpreter system methods.
|
29
28
|
rtable : Table methods.
|
29
|
+
rtask : Multi task methods.
|
30
30
|
rtext : Text methods.
|
31
31
|
rtime : Time methods.
|
32
32
|
rtype : Type methods.
|
reykit/rall.py
CHANGED
@@ -9,23 +9,23 @@
|
|
9
9
|
"""
|
10
10
|
|
11
11
|
|
12
|
-
from .rcomm import *
|
13
12
|
from .rdata import *
|
14
13
|
from .rdll import *
|
15
14
|
from .remail import *
|
16
|
-
from .
|
15
|
+
from .rexc import *
|
17
16
|
from .rimage import *
|
18
17
|
from .rlog import *
|
19
18
|
from .rmonkey import *
|
20
|
-
from .
|
21
|
-
from .
|
19
|
+
from .rnet import *
|
20
|
+
from .rnum import *
|
22
21
|
from .ros import *
|
23
|
-
from .
|
24
|
-
from .
|
22
|
+
from .rrand import *
|
23
|
+
from .rre import *
|
25
24
|
from .rschedule import *
|
26
25
|
from .rstdout import *
|
27
|
-
from .
|
26
|
+
from .rsys import *
|
28
27
|
from .rtable import *
|
28
|
+
from .rtask import *
|
29
29
|
from .rtext import *
|
30
30
|
from .rtime import *
|
31
31
|
from .rtype import *
|
reykit/rdata.py
CHANGED
@@ -14,8 +14,8 @@ from collections import defaultdict as Defaultdict, ChainMap
|
|
14
14
|
from collections.abc import Callable, Iterable, Generator
|
15
15
|
from itertools import chain as IChain
|
16
16
|
|
17
|
-
from .
|
18
|
-
from .
|
17
|
+
from .rexc import check_least_one, check_most_one
|
18
|
+
from .rsys import is_iterable
|
19
19
|
from .rtype import T, KT, VT, RBase, Null
|
20
20
|
|
21
21
|
|
reykit/rdll/__init__.py
CHANGED
@@ -9,9 +9,37 @@
|
|
9
9
|
|
10
10
|
Modules
|
11
11
|
-------
|
12
|
-
|
13
|
-
rdll_inject : DLL file inject method.
|
12
|
+
rdll_core : DLL file code methods.
|
14
13
|
"""
|
15
14
|
|
16
15
|
|
17
|
-
from
|
16
|
+
from ctypes import create_string_buffer
|
17
|
+
|
18
|
+
from .rdll_core import InjectDLL
|
19
|
+
|
20
|
+
|
21
|
+
__all__ = (
|
22
|
+
'inject_dll',
|
23
|
+
)
|
24
|
+
|
25
|
+
|
26
|
+
def inject_dll(
|
27
|
+
id_: int,
|
28
|
+
path: str
|
29
|
+
) -> None:
|
30
|
+
"""
|
31
|
+
Inject DLL file.
|
32
|
+
|
33
|
+
Parameters
|
34
|
+
----------
|
35
|
+
id_ : Process ID.
|
36
|
+
path : DLL file path.
|
37
|
+
"""
|
38
|
+
|
39
|
+
|
40
|
+
# Get parameter.
|
41
|
+
path_bytes = path.encode()
|
42
|
+
buffer = create_string_buffer(path_bytes)
|
43
|
+
|
44
|
+
# Inject.
|
45
|
+
InjectDLL(id_, buffer)
|
reykit/remail.py
CHANGED
reykit/{rexception.py → rexc.py}
RENAMED
@@ -9,17 +9,6 @@
|
|
9
9
|
"""
|
10
10
|
|
11
11
|
|
12
|
-
# !/usr/bin/env python
|
13
|
-
# -*- coding: utf-8 -*-
|
14
|
-
|
15
|
-
"""
|
16
|
-
@Time : 2022-12-05 14:09:42
|
17
|
-
@Author : Rey
|
18
|
-
@Contact : reyxbo@163.com
|
19
|
-
@Explain : Interpreter system methods.
|
20
|
-
"""
|
21
|
-
|
22
|
-
|
23
12
|
from typing import Any, NoReturn, overload
|
24
13
|
from types import TracebackType
|
25
14
|
from collections.abc import Iterable
|
@@ -93,7 +82,7 @@ def throw(
|
|
93
82
|
values = (value,) + values
|
94
83
|
|
95
84
|
### Name.
|
96
|
-
from .
|
85
|
+
from .rsys import get_name
|
97
86
|
name = get_name(value, frame)
|
98
87
|
names = (name,)
|
99
88
|
if values != ():
|
@@ -234,7 +223,7 @@ def check_least_one(*values: Any) -> None:
|
|
234
223
|
return
|
235
224
|
|
236
225
|
# Throw exception.
|
237
|
-
from .
|
226
|
+
from .rsys import get_name
|
238
227
|
vars_name = get_name(values)
|
239
228
|
if vars_name is not None:
|
240
229
|
vars_name_de_dup = list(set(vars_name))
|
@@ -261,7 +250,7 @@ def check_most_one(*values: Any) -> None:
|
|
261
250
|
if exist is True:
|
262
251
|
|
263
252
|
# Throw exception.
|
264
|
-
from .
|
253
|
+
from .rsys import get_name
|
265
254
|
vars_name = get_name(values)
|
266
255
|
if vars_name is not None:
|
267
256
|
vars_name_de_dup = list(set(vars_name))
|
reykit/rimage.py
CHANGED
@@ -16,15 +16,9 @@ from qrcode.image.pil import PilImage
|
|
16
16
|
from PIL.Image import open as pil_open, LANCZOS
|
17
17
|
from captcha.image import ImageCaptcha
|
18
18
|
|
19
|
-
from .rexception import catch_exc
|
20
19
|
from .rmonkey import monkey_path_pil_image_get_bytes
|
21
20
|
from .ros import RFile
|
22
|
-
from .
|
23
|
-
|
24
|
-
try:
|
25
|
-
from pyzbar.pyzbar import decode as pyzbar_decode
|
26
|
-
except:
|
27
|
-
*_, pyzbar_decode, _ = catch_exc()
|
21
|
+
from .rrand import randchar
|
28
22
|
|
29
23
|
|
30
24
|
__all__ = (
|
@@ -86,6 +80,9 @@ def decode_qrcode(image: str | bytes) -> list[str]:
|
|
86
80
|
QR code or bar code text list.
|
87
81
|
"""
|
88
82
|
|
83
|
+
# Import.
|
84
|
+
from pyzbar.pyzbar import decode as pyzbar_decode
|
85
|
+
|
89
86
|
# Check.
|
90
87
|
if isinstance(pyzbar_decode, BaseException):
|
91
88
|
raise pyzbar_decode
|
reykit/rlog.py
CHANGED
@@ -9,7 +9,6 @@
|
|
9
9
|
"""
|
10
10
|
|
11
11
|
|
12
|
-
from __future__ import annotations
|
13
12
|
from typing import Any, Literal, Final, overload
|
14
13
|
from collections.abc import Callable
|
15
14
|
from queue import Queue
|
@@ -30,11 +29,11 @@ from logging import (
|
|
30
29
|
from logging.handlers import QueueHandler
|
31
30
|
from concurrent_log_handler import ConcurrentRotatingFileHandler, ConcurrentTimedRotatingFileHandler
|
32
31
|
|
33
|
-
from .
|
32
|
+
from .rexc import throw, catch_exc
|
34
33
|
from .ros import RFile
|
35
|
-
from .
|
34
|
+
from .rre import search, sub
|
36
35
|
from .rstdout import RConfigStdout, modify_print, reset_print
|
37
|
-
from .
|
36
|
+
from .rsys import get_first_notnull, get_stack_param
|
38
37
|
from .rtext import to_text
|
39
38
|
from .rtime import now, time_to
|
40
39
|
from .rtype import RBase, RConfigMeta
|
reykit/rmonkey.py
CHANGED
@@ -45,10 +45,9 @@ def monkey_patch_sqlalchemy_result_more_fetch():
|
|
45
45
|
>>> result.empty
|
46
46
|
"""
|
47
47
|
|
48
|
-
|
48
|
+
# Import.
|
49
49
|
from sqlalchemy.engine.cursor import CursorResult
|
50
50
|
from pandas import DataFrame, NA, concat
|
51
|
-
|
52
51
|
from .rstdout import echo
|
53
52
|
from .rtable import (
|
54
53
|
to_table,
|
@@ -64,7 +63,6 @@ def monkey_patch_sqlalchemy_result_more_fetch():
|
|
64
63
|
)
|
65
64
|
from .rtime import time_to
|
66
65
|
|
67
|
-
|
68
66
|
# Fetch result as table in 'list[dict]' format.
|
69
67
|
CursorResult.fetch_table = to_table
|
70
68
|
|
@@ -228,11 +226,10 @@ def monkey_patch_sqlalchemy_row_index_field():
|
|
228
226
|
... row['field']
|
229
227
|
"""
|
230
228
|
|
231
|
-
|
229
|
+
# Import.
|
232
230
|
from typing import Any, overload
|
233
231
|
from sqlalchemy.engine.row import Row
|
234
232
|
|
235
|
-
|
236
233
|
# Define.
|
237
234
|
@overload
|
238
235
|
def __getitem__(self, index: str | int) -> Any: ...
|
@@ -271,17 +268,15 @@ def monkey_patch_pprint_modify_width_judgment() -> None:
|
|
271
268
|
Monkey patch of package `pprint`, modify the chinese width judgment.
|
272
269
|
"""
|
273
270
|
|
274
|
-
|
271
|
+
# Import.
|
275
272
|
from pprint import PrettyPrinter, _recursion
|
276
273
|
|
277
274
|
|
278
|
-
#
|
275
|
+
# Define.
|
279
276
|
def _format(_self, obj, stream, indent, allowance, context, level):
|
280
277
|
|
281
|
-
|
282
278
|
from .rtext import get_width
|
283
279
|
|
284
|
-
|
285
280
|
objid = id(obj)
|
286
281
|
if objid in context:
|
287
282
|
stream.write(_recursion(obj))
|
@@ -325,7 +320,6 @@ def monkey_path_pil_image_get_bytes():
|
|
325
320
|
>>> image.get_bytes()
|
326
321
|
"""
|
327
322
|
|
328
|
-
|
329
323
|
from PIL.Image import Image
|
330
324
|
from io import BytesIO
|
331
325
|
|
reykit/{rcomm.py → rnet.py}
RENAMED
@@ -5,7 +5,7 @@
|
|
5
5
|
@Time : 2022-12-08 11:07:25
|
6
6
|
@Author : Rey
|
7
7
|
@Contact : reyxbo@163.com
|
8
|
-
@Explain : Network
|
8
|
+
@Explain : Network methods.
|
9
9
|
"""
|
10
10
|
|
11
11
|
|
@@ -30,9 +30,9 @@ from mimetypes import guess_type
|
|
30
30
|
from filetype import guess as filetype_guess
|
31
31
|
from datetime import datetime
|
32
32
|
|
33
|
-
from .
|
33
|
+
from .rexc import throw, check_response_code
|
34
34
|
from .ros import RFile
|
35
|
-
from .
|
35
|
+
from .rre import search
|
36
36
|
from .rtype import RBase
|
37
37
|
|
38
38
|
|
@@ -44,7 +44,7 @@ __all__ = (
|
|
44
44
|
'get_content_type',
|
45
45
|
'request',
|
46
46
|
'download',
|
47
|
-
'
|
47
|
+
'compute_stream_time',
|
48
48
|
'listen_socket',
|
49
49
|
'RRequestCache'
|
50
50
|
)
|
@@ -387,12 +387,12 @@ def download(url: str, path: str | None = None) -> str:
|
|
387
387
|
return path
|
388
388
|
|
389
389
|
|
390
|
-
def
|
390
|
+
def compute_stream_time(
|
391
391
|
file: str | bytes | int,
|
392
392
|
bandwidth: float
|
393
393
|
) -> float:
|
394
394
|
"""
|
395
|
-
|
395
|
+
Compute file stream transfer time, unit second.
|
396
396
|
|
397
397
|
Parameters
|
398
398
|
----------
|
reykit/{rnumber.py → rnum.py}
RENAMED
@@ -11,7 +11,7 @@
|
|
11
11
|
|
12
12
|
from typing import Any
|
13
13
|
|
14
|
-
from .
|
14
|
+
from .rexc import throw
|
15
15
|
|
16
16
|
|
17
17
|
__all__ = (
|
@@ -119,7 +119,7 @@ def number_ch(number: int) -> str:
|
|
119
119
|
"""
|
120
120
|
|
121
121
|
# Import.
|
122
|
-
from .
|
122
|
+
from .rre import sub_batch
|
123
123
|
|
124
124
|
# Set parameter.
|
125
125
|
map_digit = {
|
reykit/ros.py
CHANGED
@@ -51,9 +51,9 @@ from docx.oxml.table import CT_Tbl
|
|
51
51
|
from lxml.etree import ElementChildIterator
|
52
52
|
from pdfplumber import open as pdfplumber_open
|
53
53
|
|
54
|
-
from .
|
55
|
-
from .
|
56
|
-
from .
|
54
|
+
from .rexc import throw
|
55
|
+
from .rre import search, sub
|
56
|
+
from .rsys import dos_command
|
57
57
|
from .rtext import to_json
|
58
58
|
from .rtype import RBase
|
59
59
|
|
@@ -1857,10 +1857,9 @@ def doc_to_docx(
|
|
1857
1857
|
DOCX file path.
|
1858
1858
|
"""
|
1859
1859
|
|
1860
|
-
|
1860
|
+
# Import.
|
1861
1861
|
from win32com.client import Dispatch, CDispatch
|
1862
1862
|
|
1863
|
-
|
1864
1863
|
# Handle parameter.
|
1865
1864
|
if save_path is None:
|
1866
1865
|
pattern = '.[dD][oO][cC]'
|
reykit/{rrandom.py → rrand.py}
RENAMED
@@ -19,8 +19,8 @@ from random import Random
|
|
19
19
|
from secrets import randbelow as secrets_randbelow
|
20
20
|
from threading import get_ident as threading_get_ident
|
21
21
|
|
22
|
-
from .
|
23
|
-
from .
|
22
|
+
from .rexc import throw
|
23
|
+
from .rnum import digits
|
24
24
|
from .rtype import T, RBase, RConfigMeta
|
25
25
|
|
26
26
|
|
reykit/rstdout.py
CHANGED
@@ -5,18 +5,18 @@
|
|
5
5
|
@Time : 2023-10-01 14:47:47
|
6
6
|
@Author : Rey
|
7
7
|
@Contact : reyxbo@163.com
|
8
|
-
@Explain : Standard output methods.
|
8
|
+
@Explain : Standard output and input methods.
|
9
9
|
"""
|
10
10
|
|
11
11
|
|
12
|
-
from typing import Any, Literal, Final
|
12
|
+
from typing import Any, Literal, Final
|
13
13
|
from collections.abc import Callable
|
14
14
|
import sys
|
15
15
|
from io import TextIOWrapper
|
16
16
|
from os import devnull as os_devnull
|
17
17
|
from os.path import abspath as os_abspath
|
18
18
|
|
19
|
-
from .
|
19
|
+
from .rsys import get_first_notnull, get_name, get_stack_param
|
20
20
|
from .rtext import to_text, add_text_frame
|
21
21
|
from .rtype import RBase, RConfigMeta
|
22
22
|
|
reykit/{rsystem.py → rsys.py}
RENAMED
@@ -56,7 +56,7 @@ from tkinter.filedialog import (
|
|
56
56
|
askdirectory as tkinter_askdirectory
|
57
57
|
)
|
58
58
|
|
59
|
-
from .
|
59
|
+
from .rexc import throw
|
60
60
|
from .rtype import RBase, RConfigMeta
|
61
61
|
|
62
62
|
|
@@ -184,7 +184,7 @@ def del_modules(path: str) -> list[str]:
|
|
184
184
|
"""
|
185
185
|
|
186
186
|
# Import.
|
187
|
-
from .
|
187
|
+
from .rre import search
|
188
188
|
|
189
189
|
# Set parameter.
|
190
190
|
deleted_dict = {}
|
@@ -9,7 +9,6 @@
|
|
9
9
|
"""
|
10
10
|
|
11
11
|
|
12
|
-
from __future__ import annotations
|
13
12
|
from typing import Any, Literal, overload
|
14
13
|
from collections.abc import Callable, Iterable, Generator, Coroutine
|
15
14
|
from threading import RLock as TRLock, get_ident as threading_get_ident
|
@@ -31,7 +30,7 @@ from asyncio import (
|
|
31
30
|
)
|
32
31
|
from aiohttp import ClientSession, ClientResponse
|
33
32
|
|
34
|
-
from .
|
33
|
+
from .rexc import throw, check_most_one, check_response_code
|
35
34
|
from .rtime import randn, RTimeMark
|
36
35
|
from .rtype import T, RBase
|
37
36
|
from .rwrap import wrap_thread
|
reykit/rtext.py
CHANGED
@@ -15,9 +15,9 @@ from decimal import Decimal
|
|
15
15
|
from pprint import pformat as pprint_pformat
|
16
16
|
from json import dumps as json_dumps
|
17
17
|
|
18
|
-
from .
|
18
|
+
from .rexc import throw
|
19
19
|
from .rmonkey import monkey_patch_pprint_modify_width_judgment
|
20
|
-
from .
|
20
|
+
from .rrand import randi
|
21
21
|
|
22
22
|
|
23
23
|
__all__ = (
|
reykit/rtime.py
CHANGED
@@ -29,10 +29,10 @@ from pandas import (
|
|
29
29
|
Timedelta as PTimedelta
|
30
30
|
)
|
31
31
|
|
32
|
-
from .
|
33
|
-
from .
|
34
|
-
from .
|
35
|
-
from .
|
32
|
+
from .rexc import throw
|
33
|
+
from .rnum import digits, to_number
|
34
|
+
from .rrand import randn
|
35
|
+
from .rre import search
|
36
36
|
from .rstdout import echo
|
37
37
|
from .rtype import T
|
38
38
|
|
reykit/rwrap.py
CHANGED
@@ -18,9 +18,9 @@ from threading import Thread
|
|
18
18
|
from argparse import ArgumentParser
|
19
19
|
from contextlib import redirect_stdout
|
20
20
|
|
21
|
-
from .
|
21
|
+
from .rexc import catch_exc
|
22
22
|
from .rstdout import echo
|
23
|
-
from .
|
23
|
+
from .rsys import get_arg_info
|
24
24
|
from .rtime import now, time_to, RTimeMark
|
25
25
|
|
26
26
|
|
reykit/rzip.py
CHANGED
@@ -0,0 +1,29 @@
|
|
1
|
+
reykit/__init__.py,sha256=LdwdCXLzzPyteyYerrwfJH0LGj5jp_j-tamv2JEghTg,821
|
2
|
+
reykit/rall.py,sha256=AEHa1iUCopuM5sPzO0vmSLWTmKeSjilUtzQ8f-jULHk,649
|
3
|
+
reykit/rdata.py,sha256=a7aauSEjLiqDr-Adg3Aipri0gJrW-Mn-9hMQxRqKq9M,10006
|
4
|
+
reykit/remail.py,sha256=PBY2lCCkJr8BZbeD944sXjOompW1F1-ihbOXNJX-Lak,6744
|
5
|
+
reykit/rexc.py,sha256=yy4VGc7r0GC3ZBp6KMT99hpZ4-AbV1D-wgKuU0Blih4,8136
|
6
|
+
reykit/rimage.py,sha256=fSPNxwfdN9_dMbbPn-LagNSIo_Z-ISLcXaOZgisUc24,6190
|
7
|
+
reykit/rlog.py,sha256=7fGg9XldIntUFrcYVZWC2ChlJlnmbaaU1rB7yZw-IDM,25704
|
8
|
+
reykit/rmonkey.py,sha256=pDXhfX0kyHWptM3OPLL6x3_hQqFd-n6H3TaQafgdXcs,8246
|
9
|
+
reykit/rnet.py,sha256=Je-43L5-ELpy-mWe02jyj9bfcllVifM9KusBP4tkjME,15085
|
10
|
+
reykit/rnum.py,sha256=9J6unM11dDTg9A8XigHzfut8VFHWaNRKu59vGQ-ISXo,3637
|
11
|
+
reykit/ros.py,sha256=ORdUP72dPYWlRyOfcNw5FibxXMPk_Kv9im8h30MoGXc,40731
|
12
|
+
reykit/rrand.py,sha256=5vjQ4wsHUZ84dUs1Arp54QG8ghZYlkusEXgpht19iVw,9237
|
13
|
+
reykit/rre.py,sha256=0yYRiHhGg2OmuEVNf3zT92AcqQTdrvIJUltiFpjlYdM,6085
|
14
|
+
reykit/rschedule.py,sha256=tWqsEiXgNo5zcJtf4-MR5ZMs0fbn3ymU4M8_X1sELEc,5822
|
15
|
+
reykit/rstdout.py,sha256=zyGDk07X9WMTx06MBrg0Ki2tb_QsYLsd0ypU1fa1MVw,9920
|
16
|
+
reykit/rsys.py,sha256=qtmmw_GDIx0KbLHAADLDjXuSd_tYCyFoG7evW0K6564,36402
|
17
|
+
reykit/rtable.py,sha256=M0OOoxFlMJH91lhSGauzwEP7JA0q5-Odwzpff_X-b5g,12031
|
18
|
+
reykit/rtask.py,sha256=gwerLHFnrju695JukYpwCITq0SrblVaSktSLYYpkcLs,23114
|
19
|
+
reykit/rtext.py,sha256=KtK9d1y4NCsfydZTxrq5lnnyWvJfPi79ywy2qnauNew,11073
|
20
|
+
reykit/rtime.py,sha256=YXUN-EQYsgDbZk636gyeXa9NifU2hYoUNvbkX6jmsN4,17096
|
21
|
+
reykit/rtype.py,sha256=O7iI_sJ1Bfl_ZiP29IHqEE3v3PfJRpeA5M6ukEdZSMk,2317
|
22
|
+
reykit/rwrap.py,sha256=r5FBxbgiRMRLdaK6L7Uls5c6E_yfzM9xvWRY2O85KbA,15339
|
23
|
+
reykit/rzip.py,sha256=OEpRB2meW5copstZjeuKmarLD_co8I05WHBaKcLg0O8,3486
|
24
|
+
reykit/rdll/__init__.py,sha256=tdKb-BOKLFn-diCvXjSLg9x71VuRKzkg2KtpOLGLTR4,679
|
25
|
+
reykit/rdll/rdll_core.py,sha256=o6-rKcTQgxZQe0kD3GnwyNb3KL9IogzgCQNOmYLMm7A,5086
|
26
|
+
reykit-1.1.25.dist-info/METADATA,sha256=PJdqvyQoLCx553RFzQLB1KHEvr-yIn9lHEePxUoBagE,1919
|
27
|
+
reykit-1.1.25.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
28
|
+
reykit-1.1.25.dist-info/licenses/LICENSE,sha256=UYLPqp7BvPiH8yEZduJqmmyEl6hlM3lKrFIefiD4rvk,1059
|
29
|
+
reykit-1.1.25.dist-info/RECORD,,
|
reykit/rdll/rdll_inject.py
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
# !/usr/bin/env python
|
2
|
-
# -*- coding: utf-8 -*-
|
3
|
-
|
4
|
-
"""
|
5
|
-
@Time : 2023-12-06 16:09:59
|
6
|
-
@Author : Rey
|
7
|
-
@Contact : reyxbo@163.com
|
8
|
-
@Explain : Inject DLL file methods.
|
9
|
-
"""
|
10
|
-
|
11
|
-
|
12
|
-
__all__ = (
|
13
|
-
'inject_dll',
|
14
|
-
)
|
15
|
-
|
16
|
-
|
17
|
-
def inject_dll(
|
18
|
-
id_: int,
|
19
|
-
path: str
|
20
|
-
) -> None:
|
21
|
-
"""
|
22
|
-
Inject DLL file.
|
23
|
-
|
24
|
-
Parameters
|
25
|
-
----------
|
26
|
-
id_ : Process ID.
|
27
|
-
path : DLL file path.
|
28
|
-
"""
|
29
|
-
|
30
|
-
|
31
|
-
from ctypes import create_string_buffer
|
32
|
-
|
33
|
-
from .rdll_inject_core import InjectDLL
|
34
|
-
|
35
|
-
|
36
|
-
# Get parameter.
|
37
|
-
path_bytes = path.encode()
|
38
|
-
buffer = create_string_buffer(path_bytes)
|
39
|
-
|
40
|
-
# Inject.
|
41
|
-
InjectDLL(id_, buffer)
|
reykit-1.1.24.dist-info/RECORD
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
reykit/__init__.py,sha256=QwnhdUDSXgjXJQ4ClaeP9oKXUXyQOPj5sApwGCDrILc,848
|
2
|
-
reykit/rall.py,sha256=mOFwHXZ4-BOkJ5Ptbm6lQc2zwNf_VqcqM6AYYnYPfoo,672
|
3
|
-
reykit/rcomm.py,sha256=Y7s2yTgOf_PZ1NvVHsd5cd6STUkruC9_pbWJZDojwtA,15106
|
4
|
-
reykit/rdata.py,sha256=nROfD4tvZTOXwgD1TxtCAAyA1ZW83bgzTUZcK3bLv8Y,10015
|
5
|
-
reykit/remail.py,sha256=DUmueocrWlH7e_LewhHUE3xmvrLjTguwbKjR_iWqWdc,6750
|
6
|
-
reykit/rexception.py,sha256=9EVP0i7NmD_XAg4J8XauYSOtANxZaGiWr0rMzW027zM,8325
|
7
|
-
reykit/rimage.py,sha256=ii8tSwy6q9JE2hQwk-UetmCIFMNy4EteVb3GaCIcjI8,6267
|
8
|
-
reykit/rlog.py,sha256=wt_A7mhJ2pm52Th9lE5_z8dMiZ2pw93-AiGXkOgzFG0,25752
|
9
|
-
reykit/rmonkey.py,sha256=J0wtqttL0qwbIH4H0eCH4Ougf9LufhwxTqkVtXYRabw,8223
|
10
|
-
reykit/rmultitask.py,sha256=IMQGP_sDquptigjdEpzf2P-wfXSESsF2yjbEEo_2NN4,23156
|
11
|
-
reykit/rnumber.py,sha256=6x4FuRB-MTJheo6wbTUEaBarnew15jomlrneo3_Q2wg,3646
|
12
|
-
reykit/ros.py,sha256=C9pUJVc-UZ39FhyLBmYrqFiKJHyNOAlOi3poCjbubHw,40732
|
13
|
-
reykit/rrandom.py,sha256=4lTBL3IMhcurFeMOXaML_W7Q4xU4_HOW-si-13IrV3A,9246
|
14
|
-
reykit/rregex.py,sha256=0yYRiHhGg2OmuEVNf3zT92AcqQTdrvIJUltiFpjlYdM,6085
|
15
|
-
reykit/rschedule.py,sha256=tWqsEiXgNo5zcJtf4-MR5ZMs0fbn3ymU4M8_X1sELEc,5822
|
16
|
-
reykit/rstdout.py,sha256=4AmKvn_17fAk34CRU0IAwRlXRO2wmJzS-OI09KSdMK4,9919
|
17
|
-
reykit/rsystem.py,sha256=yKvXtw2291gIlAiZ1ABBagAXslOH0jyE5xgndoGGT48,36411
|
18
|
-
reykit/rtable.py,sha256=M0OOoxFlMJH91lhSGauzwEP7JA0q5-Odwzpff_X-b5g,12031
|
19
|
-
reykit/rtext.py,sha256=P72xFza1LVAUKEgyeBS2zQhDfJSWBdo4C5x_CfSZTwE,11081
|
20
|
-
reykit/rtime.py,sha256=1FC7JU-9t9dORUBUEzeVEvS73h7LDL9W8qTm9PZDscU,17110
|
21
|
-
reykit/rtype.py,sha256=O7iI_sJ1Bfl_ZiP29IHqEE3v3PfJRpeA5M6ukEdZSMk,2317
|
22
|
-
reykit/rwrap.py,sha256=EQVlI07YSB2z5LbpbWqeVnQmHLwku0jCoBcaaGr-imY,15348
|
23
|
-
reykit/rzip.py,sha256=i6KkmeSWCnq025d-O1mbuCYezNRUhyY9OGVK0CRlNAM,3522
|
24
|
-
reykit/rdll/__init__.py,sha256=vM9V7wSNno-WH9RrxgHTIgCkQm8LmBFoLFO8z7qovNo,306
|
25
|
-
reykit/rdll/rdll_inject.py,sha256=bETl8tywtN1OiQudbA21u6GwBM_bqVX7jbiisNj_JBg,645
|
26
|
-
reykit/rdll/rdll_inject_core.py,sha256=Trgh_pdJs_Lw-Y-0Kkn8kHr4BnilM9dBKnHnX25T_pM,5092
|
27
|
-
reykit-1.1.24.dist-info/METADATA,sha256=rsxwdhw4Cpsw2berjz2EqXwz2TYn-L2LJYkA9XhWh08,1919
|
28
|
-
reykit-1.1.24.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
29
|
-
reykit-1.1.24.dist-info/licenses/LICENSE,sha256=UYLPqp7BvPiH8yEZduJqmmyEl6hlM3lKrFIefiD4rvk,1059
|
30
|
-
reykit-1.1.24.dist-info/RECORD,,
|
/reykit/{rregex.py → rre.py}
RENAMED
File without changes
|
File without changes
|
File without changes
|