reykit 1.2.74__tar.gz → 1.2.85__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.
Files changed (34) hide show
  1. reykit-1.2.85/PKG-INFO +508 -0
  2. reykit-1.2.85/README.md +470 -0
  3. reykit-1.2.85/README_zh.md +470 -0
  4. {reykit-1.2.74 → reykit-1.2.85}/pyproject.toml +25 -4
  5. reykit-1.2.85/src/reykit/__init__.py +58 -0
  6. {reykit-1.2.74 → reykit-1.2.85}/src/reykit/rall.py +3 -3
  7. {reykit-1.2.74 → reykit-1.2.85}/src/reykit/rbase.py +27 -41
  8. {reykit-1.2.74 → reykit-1.2.85}/src/reykit/rdata.py +12 -16
  9. {reykit-1.2.74 → reykit-1.2.85}/src/reykit/rdll/__init__.py +2 -1
  10. {reykit-1.2.74 → reykit-1.2.85}/src/reykit/remail.py +2 -1
  11. {reykit-1.2.74 → reykit-1.2.85}/src/reykit/rimage.py +2 -1
  12. {reykit-1.2.74 → reykit-1.2.85}/src/reykit/rlog.py +11 -22
  13. {reykit-1.2.74 → reykit-1.2.85}/src/reykit/rmonkey.py +3 -2
  14. {reykit-1.2.74 → reykit-1.2.85}/src/reykit/rnet.py +13 -10
  15. {reykit-1.2.74 → reykit-1.2.85}/src/reykit/rnum.py +5 -5
  16. {reykit-1.2.74 → reykit-1.2.85}/src/reykit/ros.py +9 -8
  17. {reykit-1.2.74 → reykit-1.2.85}/src/reykit/rrand.py +31 -10
  18. {reykit-1.2.74 → reykit-1.2.85}/src/reykit/rre.py +9 -8
  19. {reykit-1.2.74 → reykit-1.2.85}/src/reykit/rschedule.py +4 -3
  20. {reykit-1.2.74 → reykit-1.2.85}/src/reykit/rstdout.py +11 -10
  21. {reykit-1.2.74 → reykit-1.2.85}/src/reykit/rsys.py +6 -5
  22. {reykit-1.2.74 → reykit-1.2.85}/src/reykit/rtable.py +5 -2
  23. {reykit-1.2.74 → reykit-1.2.85}/src/reykit/rtask.py +96 -95
  24. {reykit-1.2.74 → reykit-1.2.85}/src/reykit/rtext.py +2 -1
  25. {reykit-1.2.74 → reykit-1.2.85}/src/reykit/rtime.py +9 -16
  26. {reykit-1.2.74 → reykit-1.2.85}/src/reykit/rwrap.py +29 -32
  27. reykit-1.2.74/PKG-INFO +0 -47
  28. reykit-1.2.74/README.md +0 -9
  29. reykit-1.2.74/src/reykit/__init__.py +0 -32
  30. {reykit-1.2.74 → reykit-1.2.85}/.gitignore +0 -0
  31. {reykit-1.2.74 → reykit-1.2.85}/.python-version +0 -0
  32. {reykit-1.2.74 → reykit-1.2.85}/LICENSE +0 -0
  33. {reykit-1.2.74 → reykit-1.2.85}/src/reykit/rdll/rdll_core.py +0 -0
  34. {reykit-1.2.74 → reykit-1.2.85}/uv.lock +0 -0
reykit-1.2.85/PKG-INFO ADDED
@@ -0,0 +1,508 @@
1
+ Metadata-Version: 2.5
2
+ Name: reykit
3
+ Version: 1.2.85
4
+ Summary: General-purpose utility method integration package.
5
+ Project-URL: Homepage, https://www.reyxbo.com/release/python/reykit
6
+ Project-URL: Repository, https://github.com/reyxbo/reykit-py.git
7
+ Author-email: Rey <reyxbo@163.com>
8
+ License: Copyright 2025 ReyXBo
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
15
+ License-File: LICENSE
16
+ Keywords: async,decorator,dll-injection,email,image,kit,log,net,os,random,regex,rey,reyxbo,schedule,stdout,system,table,text,thread,time
17
+ Requires-Python: >=3.12
18
+ Requires-Dist: aiohttp
19
+ Requires-Dist: apscheduler
20
+ Requires-Dist: bcrypt
21
+ Requires-Dist: captcha
22
+ Requires-Dist: concurrent-log-handler
23
+ Requires-Dist: filetype
24
+ Requires-Dist: pandas
25
+ Requires-Dist: pdfplumber
26
+ Requires-Dist: pillow
27
+ Requires-Dist: psutil
28
+ Requires-Dist: pyjwt
29
+ Requires-Dist: pymem
30
+ Requires-Dist: python-docx
31
+ Requires-Dist: pyzbar
32
+ Requires-Dist: qrcode
33
+ Requires-Dist: requests
34
+ Requires-Dist: requests-cache
35
+ Requires-Dist: reydb
36
+ Requires-Dist: varname
37
+ Description-Content-Type: text/markdown
38
+
39
+ [中文](README_zh.md)
40
+
41
+ # reykit
42
+
43
+ **reykit** is a Python general-purpose utility method integration package.
44
+
45
+ It provides commonly used utility methods for data processing, network requests, file operations, image processing, logging, random values, regular expressions, scheduled tasks, system operations, table processing, multitasking, text processing, time processing, decorators, and more.
46
+
47
+ It also provides functional modules for DLL files, e-mail, standard input and output, and integrates commonly used Python development utilities through a modular design, reducing the need to repeatedly implement basic utility functions.
48
+
49
+ It is suitable for general-purpose utility method calls and basic functionality integration in Python application development.
50
+
51
+ ## Features
52
+
53
+ * Provides a wide range of general-purpose Python utility methods
54
+ * Modular design, allowing different functionalities to be used as needed
55
+ * Provides unified method exports
56
+ * Provides Python basic data type processing methods
57
+ * Provides encoding and decoding methods such as JWT and bcrypt
58
+ * Provides e-mail sending and content processing methods
59
+ * Provides image compression, QR code, and CAPTCHA processing methods
60
+ * Provides application logging and runtime data storage methods
61
+ * Provides HTTP, URL, Cookie, Socket, and other network processing methods
62
+ * Provides file, folder, and temporary file processing methods
63
+ * Provides random value and random data processing methods
64
+ * Provides regular expression processing methods
65
+ * Provides database-integrated scheduled task methods
66
+ * Provides standard input/output and terminal printing methods
67
+ * Provides operating system, process, memory, and environment related methods
68
+ * Provides table data conversion and processing methods
69
+ * Provides multitasking methods for threads and coroutines
70
+ * Provides text and string processing methods
71
+ * Provides time processing and execution time measurement methods
72
+ * Provides a wide range of decorator methods
73
+ * Provides Windows DLL file injection methods
74
+
75
+ ---
76
+
77
+ ## Installation
78
+
79
+ Requires **Python 3.12 or higher**.
80
+
81
+ ```bash
82
+ pip install reykit
83
+ ```
84
+
85
+ ---
86
+
87
+ # Folders
88
+
89
+ reykit is organized into multiple folders by functionality, with each folder providing methods and objects for its corresponding functionality.
90
+
91
+ ## `rdll` — DLL file methods
92
+
93
+ **DLL file methods directory.**
94
+
95
+ Provides methods for working with Windows system DLL files.
96
+
97
+ Mainly includes:
98
+
99
+ * Windows DLL file injection methods
100
+ * Other DLL file related methods
101
+
102
+ ---
103
+
104
+ # Modules
105
+
106
+ reykit is divided into multiple modules by functionality, with each module providing different general-purpose utilities and base functionality.
107
+
108
+ ## `rall` — All import methods
109
+
110
+ **Unified export module.**
111
+
112
+ Provides convenient exports of all reykit module methods and objects. It allows the functionality provided by the package to be imported centrally, reducing the need to import from multiple modules separately.
113
+
114
+ ---
115
+
116
+ ## `rbase` — Base methods
117
+
118
+ **Base methods module.**
119
+
120
+ Provides common base methods and shared dependencies used by other modules.
121
+
122
+ Mainly includes:
123
+
124
+ * Base classes for various objects
125
+ * Exception base classes
126
+ * Singleton base classes
127
+ * Configuration parameter base classes
128
+ * Static metaclasses
129
+ * Terminal exit methods
130
+ * Exception raising utilities
131
+ * Warning raising utilities
132
+ * Exception handling utilities
133
+ * Exception traceback processing methods
134
+ * Value checking methods
135
+ * Value type checking methods
136
+ * Namespace name processing methods
137
+ * Type annotation related methods
138
+
139
+ ---
140
+
141
+ ## `rdata` — Data methods
142
+
143
+ **Data processing module.**
144
+
145
+ Provides integrated processing methods for Python basic types and commonly used data.
146
+
147
+ Mainly includes:
148
+
149
+ * JWT encoding and decoding
150
+ * bcrypt encoding and decoding
151
+ * Generator creation utilities
152
+ * Array processing methods
153
+ * Other data processing methods
154
+
155
+ ---
156
+
157
+ ## `remail` — E-mail methods
158
+
159
+ **E-mail module.**
160
+
161
+ Provides integrated methods and objects for e-mail processing.
162
+
163
+ Mainly includes:
164
+
165
+ * E-mail content processing
166
+ * E-mail property modification
167
+ * E-mail sending
168
+ * Other e-mail related methods
169
+
170
+ ---
171
+
172
+ ## `rimage` — Image methods
173
+
174
+ **Image processing module.**
175
+
176
+ Provides methods for image processing.
177
+
178
+ Mainly includes:
179
+
180
+ * Image compression
181
+ * QR code encoding
182
+ * QR code decoding
183
+ * CAPTCHA image generation
184
+ * Other image processing methods
185
+
186
+ ---
187
+
188
+ ## `rlog` — Log methods
189
+
190
+ **Logging module.**
191
+
192
+ Provides integrated methods and objects for application logging and runtime data storage.
193
+
194
+ Mainly includes:
195
+
196
+ * Standard output logging
197
+ * Disk file logging
198
+ * Log triggering
199
+ * Log filtering
200
+ * Log processing
201
+ * Runtime data storage on disk
202
+ * Runtime data saving and checking
203
+
204
+ ---
205
+
206
+ ## `rmonkey` — Monkey patch methods
207
+
208
+ **Monkey patch module.**
209
+
210
+ Provides Monkey Patch methods required by other modules.
211
+
212
+ ---
213
+
214
+ ## `rnet` — Network methods
215
+
216
+ **Network module.**
217
+
218
+ Provides network-related methods for HTTP, URL, Cookie, Socket, request caching, and more.
219
+
220
+ Mainly includes:
221
+
222
+ * Integrated HTTP request methods
223
+ * Automatic `Content-Type` handling
224
+ * Automatic conversion of Python data types and request bodies
225
+ * Automatic response result detection
226
+ * Streaming HTTP requests
227
+ * URL processing
228
+ * Cookie processing
229
+ * Socket listening
230
+ * Socket data sending
231
+ * Global request cache data
232
+
233
+ ---
234
+
235
+ ## `rnum` — Number methods
236
+
237
+ **Number processing module.**
238
+
239
+ Provides methods for processing numbers and numeric values.
240
+
241
+ Mainly includes:
242
+
243
+ * Base62 conversion
244
+ * Chinese number conversion
245
+ * Other number processing methods
246
+
247
+ ---
248
+
249
+ ## `ros` — Operation system methods
250
+
251
+ **Operating system module.**
252
+
253
+ Provides integrated methods and objects for files, folders, temporary files, and operating system operations.
254
+
255
+ Mainly includes:
256
+
257
+ * File and folder operations
258
+ * Temporary file and temporary folder operations
259
+ * Path processing
260
+ * File reading and writing
261
+ * File content traversal
262
+ * File information retrieval
263
+ * File disk storage processing
264
+ * Automatic storage directory creation
265
+ * File indexing
266
+ * File storage
267
+ * File deletion
268
+ * File comparison
269
+
270
+ ---
271
+
272
+ ## `rrand` — Random methods
273
+
274
+ **Random value module.**
275
+
276
+ Provides methods for processing random values and random data.
277
+
278
+ Mainly includes:
279
+
280
+ * Global random seed management
281
+ * Random indexing
282
+ * Random sorting
283
+ * Random strings
284
+ * Other random value processing methods
285
+
286
+ ---
287
+
288
+ ## `rre` — Regular expression methods
289
+
290
+ **Regular expression module.**
291
+
292
+ Provides methods for regular expression processing.
293
+
294
+ Mainly includes:
295
+
296
+ * E-mail format validation
297
+ * Phone number format validation
298
+ * Batch expression matching
299
+ * Other regular expression processing methods
300
+
301
+ ---
302
+
303
+ ## `rschedule` — Schedule methods
304
+
305
+ **Scheduled task module.**
306
+
307
+ Provides integrated methods and objects for scheduled tasks.
308
+
309
+ Mainly includes:
310
+
311
+ * Scheduled task management
312
+ * Automatic database storage
313
+ * Batch task creation
314
+ * Other scheduled task related methods
315
+
316
+ ---
317
+
318
+ ## `rstdout` — Standard output and input methods
319
+
320
+ **Standard input/output module.**
321
+
322
+ Provides methods for standard input/output and terminal printing.
323
+
324
+ Mainly includes:
325
+
326
+ * Pretty printing of data
327
+ * Replacing the global `print` function
328
+ * Adding source code locations to global `print` output
329
+ * Other standard input/output processing methods
330
+
331
+ ---
332
+
333
+ ## `rsys` — Interpreter system methods
334
+
335
+ **Interpreter and system module.**
336
+
337
+ Provides methods related to the Python interpreter and operating system.
338
+
339
+ Mainly includes:
340
+
341
+ * Environment variable operations
342
+ * Python module table processing
343
+ * Terminal command execution
344
+ * Process operations
345
+ * Memory operations
346
+ * Dialog operations
347
+ * Other system-related methods
348
+
349
+ ---
350
+
351
+ ## `rtable` — Table methods
352
+
353
+ **Table processing module.**
354
+
355
+ Provides integrated table data processing methods and objects.
356
+
357
+ Supports conversion between different data structures.
358
+
359
+ Mainly includes:
360
+
361
+ * Table structure conversion
362
+ * Row structure conversion
363
+ * JSON conversion
364
+ * DataFrame conversion
365
+ * HTML text conversion
366
+ * CSV conversion
367
+ * Excel conversion
368
+ * Other table data processing methods
369
+
370
+ ---
371
+
372
+ ## `rtask` — Multi task methods
373
+
374
+ **Multitasking module.**
375
+
376
+ Provides integrated methods for threads, coroutines, and multitasking.
377
+
378
+ Mainly includes:
379
+
380
+ * Thread pools
381
+ * Coroutine pools
382
+ * Coroutine launching
383
+ * Coroutine integration methods
384
+ * Other multitasking methods
385
+
386
+ ---
387
+
388
+ ## `rtext` — Text methods
389
+
390
+ **Text processing module.**
391
+
392
+ Provides methods for text and string processing.
393
+
394
+ Mainly includes:
395
+
396
+ * Chinese string width processing
397
+ * Data-to-text conversion
398
+ * Text format beautification
399
+ * Chinese character detection
400
+ * Other text processing methods
401
+
402
+ ---
403
+
404
+ ## `rtime` — Time methods
405
+
406
+ **Time processing module.**
407
+
408
+ Provides methods for time processing and execution time measurement.
409
+
410
+ Mainly includes:
411
+
412
+ * Execution time tracking objects
413
+ * Execution time calculation
414
+ * Execution time reports
415
+ * Time object conversion
416
+ * Polling and waiting for events to complete
417
+ * Other time processing methods
418
+
419
+ ---
420
+
421
+ ## `rwrap` — Decorators
422
+
423
+ **Decorator module.**
424
+
425
+ Provides methods for creating decorators and commonly used decorators.
426
+
427
+ Mainly includes:
428
+
429
+ * Decorator creation methods
430
+ * Decorator enhancement
431
+ * Execution time decorators
432
+ * Thread execution decorators
433
+ * Exception handling decorators
434
+ * Cache decorators
435
+ * Terminal command argument input decorators
436
+ * Print interception decorators
437
+ * Other decorator methods
438
+
439
+ ---
440
+
441
+ # Module Overview
442
+
443
+ | Module | Function |
444
+ | ----------- | ---------------------------------------------- |
445
+ | `rall` | Unified export of all methods |
446
+ | `rbase` | Base methods and shared dependencies |
447
+ | `rdata` | Python data and basic type processing |
448
+ | `remail` | E-mail processing |
449
+ | `rimage` | Image, QR code, and CAPTCHA processing |
450
+ | `rlog` | Application logging and runtime data storage |
451
+ | `rmonkey` | Monkey Patch methods |
452
+ | `rnet` | HTTP, URL, Cookie, Socket, and request caching |
453
+ | `rnum` | Number and numeric value processing |
454
+ | `ros` | File, folder, and operating system processing |
455
+ | `rrand` | Random value and random data processing |
456
+ | `rre` | Regular expression processing |
457
+ | `rschedule` | Scheduled tasks |
458
+ | `rstdout` | Standard input/output and terminal printing |
459
+ | `rsys` | Python interpreter and system operations |
460
+ | `rtable` | Table data conversion and processing |
461
+ | `rtask` | Thread, coroutine, and multitasking |
462
+ | `rtext` | Text and string processing |
463
+ | `rtime` | Time and execution time processing |
464
+ | `rwrap` | Decorator methods |
465
+
466
+ ---
467
+
468
+ # Dependencies
469
+
470
+ Main dependencies:
471
+
472
+ * `aiohttp`
473
+ * `apscheduler`
474
+ * `bcrypt`
475
+ * `captcha`
476
+ * `concurrent-log-handler`
477
+ * `filetype`
478
+ * `pandas`
479
+ * `pyzbar`
480
+ * `pdfplumber`
481
+ * `psutil`
482
+ * `pymem`
483
+ * `python-docx`
484
+ * `qrcode`
485
+ * `requests`
486
+ * `requests_cache`
487
+ * `reydb`
488
+ * `varname`
489
+ * `Pillow`
490
+ * `PyJWT`
491
+
492
+ ---
493
+
494
+ # Project Information
495
+
496
+ | Project | Information |
497
+ | ---------- | ---------------------------------------------------------- |
498
+ | Name | `reykit` |
499
+ | Version | `1.2.83` |
500
+ | Python | `>=3.12` |
501
+ | Author | `Rey` |
502
+ | Email | `reyxbo@163.com` |
503
+ | Homepage | [REYXBO](https://www.reyxbo.com/release/javascript/reykit) |
504
+ | Repository | [reykit-py](https://github.com/reyxbo/reykit-py.git) |
505
+
506
+ ## Keywords
507
+
508
+ `rey` · `reyxbo` · `kit` · `dll` · `email` · `image` · `log` · `net` · `os` · `random` · `regex` · `schedule` · `stdout` · `system` · `table` · `thread` · `async` · `text` · `time` · `decorator`