ezKit 1.12.5__tar.gz → 1.12.6__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 (28) hide show
  1. {ezkit-1.12.5/ezKit.egg-info → ezkit-1.12.6}/PKG-INFO +1 -1
  2. {ezkit-1.12.5 → ezkit-1.12.6}/ezKit/database.py +17 -0
  3. {ezkit-1.12.5 → ezkit-1.12.6/ezKit.egg-info}/PKG-INFO +1 -1
  4. {ezkit-1.12.5 → ezkit-1.12.6}/setup.py +1 -1
  5. {ezkit-1.12.5 → ezkit-1.12.6}/LICENSE +0 -0
  6. {ezkit-1.12.5 → ezkit-1.12.6}/MANIFEST.in +0 -0
  7. {ezkit-1.12.5 → ezkit-1.12.6}/README.md +0 -0
  8. {ezkit-1.12.5 → ezkit-1.12.6}/ezKit/__init__.py +0 -0
  9. {ezkit-1.12.5 → ezkit-1.12.6}/ezKit/_file.py +0 -0
  10. {ezkit-1.12.5 → ezkit-1.12.6}/ezKit/bottle.py +0 -0
  11. {ezkit-1.12.5 → ezkit-1.12.6}/ezKit/bottle_extensions.py +0 -0
  12. {ezkit-1.12.5 → ezkit-1.12.6}/ezKit/cipher.py +0 -0
  13. {ezkit-1.12.5 → ezkit-1.12.6}/ezKit/dockerhub.py +0 -0
  14. {ezkit-1.12.5 → ezkit-1.12.6}/ezKit/http.py +0 -0
  15. {ezkit-1.12.5 → ezkit-1.12.6}/ezKit/markdown_to_html.template +0 -0
  16. {ezkit-1.12.5 → ezkit-1.12.6}/ezKit/mongo.py +0 -0
  17. {ezkit-1.12.5 → ezkit-1.12.6}/ezKit/qywx.py +0 -0
  18. {ezkit-1.12.5 → ezkit-1.12.6}/ezKit/redis.py +0 -0
  19. {ezkit-1.12.5 → ezkit-1.12.6}/ezKit/sendemail.py +0 -0
  20. {ezkit-1.12.5 → ezkit-1.12.6}/ezKit/token.py +0 -0
  21. {ezkit-1.12.5 → ezkit-1.12.6}/ezKit/utils.py +0 -0
  22. {ezkit-1.12.5 → ezkit-1.12.6}/ezKit/xftp.py +0 -0
  23. {ezkit-1.12.5 → ezkit-1.12.6}/ezKit/zabbix.py +0 -0
  24. {ezkit-1.12.5 → ezkit-1.12.6}/ezKit.egg-info/SOURCES.txt +0 -0
  25. {ezkit-1.12.5 → ezkit-1.12.6}/ezKit.egg-info/dependency_links.txt +0 -0
  26. {ezkit-1.12.5 → ezkit-1.12.6}/ezKit.egg-info/requires.txt +0 -0
  27. {ezkit-1.12.5 → ezkit-1.12.6}/ezKit.egg-info/top_level.txt +0 -0
  28. {ezkit-1.12.5 → ezkit-1.12.6}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ezKit
3
- Version: 1.12.5
3
+ Version: 1.12.6
4
4
  Summary: Easy Kit
5
5
  Author: septvean
6
6
  Author-email: septvean@gmail.com
@@ -307,6 +307,23 @@ class Database:
307
307
 
308
308
  # ----------------------------------------------------------------------------------------------
309
309
 
310
+ def drop_table(self, table_name: str) -> bool:
311
+ """删除表"""
312
+
313
+ info: str = f"drop table: {table_name}"
314
+
315
+ try:
316
+ logger.info(f"{info} ......")
317
+ self.connect_execute(sql=f"DROP TABLE IF EXISTS {table_name}")
318
+ logger.success(f"{info} [success]")
319
+ return True
320
+ except Exception as e:
321
+ logger.error(f"{info} [failed]")
322
+ logger.exception(e)
323
+ return False
324
+
325
+ # ----------------------------------------------------------------------------------------------
326
+
310
327
  def read_with_pandas(self, method: str = "read_sql", result_type: str = "df", **kwargs) -> pd.DataFrame | list | dict:
311
328
  """读取数据"""
312
329
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ezKit
3
- Version: 1.12.5
3
+ Version: 1.12.6
4
4
  Summary: Easy Kit
5
5
  Author: septvean
6
6
  Author-email: septvean@gmail.com
@@ -4,7 +4,7 @@ from setuptools import find_packages, setup
4
4
 
5
5
  setup(
6
6
  name="ezKit",
7
- version="1.12.5",
7
+ version="1.12.6",
8
8
  author="septvean",
9
9
  author_email="septvean@gmail.com",
10
10
  description="Easy Kit",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes