tablemaster 2.1.3__tar.gz → 2.1.4__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 (37) hide show
  1. {tablemaster-2.1.3 → tablemaster-2.1.4}/PKG-INFO +2 -2
  2. {tablemaster-2.1.3 → tablemaster-2.1.4}/pyproject.toml +2 -2
  3. {tablemaster-2.1.3 → tablemaster-2.1.4}/tablemaster/database.py +1 -1
  4. {tablemaster-2.1.3 → tablemaster-2.1.4}/tablemaster/feishu.py +2 -2
  5. {tablemaster-2.1.3 → tablemaster-2.1.4}/tablemaster.egg-info/PKG-INFO +2 -2
  6. {tablemaster-2.1.3 → tablemaster-2.1.4}/tablemaster.egg-info/requires.txt +1 -1
  7. {tablemaster-2.1.3 → tablemaster-2.1.4}/LICENSE +0 -0
  8. {tablemaster-2.1.3 → tablemaster-2.1.4}/README.md +0 -0
  9. {tablemaster-2.1.3 → tablemaster-2.1.4}/setup.cfg +0 -0
  10. {tablemaster-2.1.3 → tablemaster-2.1.4}/tablemaster/__init__.py +0 -0
  11. {tablemaster-2.1.3 → tablemaster-2.1.4}/tablemaster/__main__.py +0 -0
  12. {tablemaster-2.1.3 → tablemaster-2.1.4}/tablemaster/cli.py +0 -0
  13. {tablemaster-2.1.3 → tablemaster-2.1.4}/tablemaster/config.py +0 -0
  14. {tablemaster-2.1.3 → tablemaster-2.1.4}/tablemaster/gspread.py +0 -0
  15. {tablemaster-2.1.3 → tablemaster-2.1.4}/tablemaster/local.py +0 -0
  16. {tablemaster-2.1.3 → tablemaster-2.1.4}/tablemaster/schema/__init__.py +0 -0
  17. {tablemaster-2.1.3 → tablemaster-2.1.4}/tablemaster/schema/apply.py +0 -0
  18. {tablemaster-2.1.3 → tablemaster-2.1.4}/tablemaster/schema/dialects/__init__.py +0 -0
  19. {tablemaster-2.1.3 → tablemaster-2.1.4}/tablemaster/schema/dialects/base.py +0 -0
  20. {tablemaster-2.1.3 → tablemaster-2.1.4}/tablemaster/schema/dialects/mysql.py +0 -0
  21. {tablemaster-2.1.3 → tablemaster-2.1.4}/tablemaster/schema/dialects/postgresql.py +0 -0
  22. {tablemaster-2.1.3 → tablemaster-2.1.4}/tablemaster/schema/dialects/tidb.py +0 -0
  23. {tablemaster-2.1.3 → tablemaster-2.1.4}/tablemaster/schema/diff.py +0 -0
  24. {tablemaster-2.1.3 → tablemaster-2.1.4}/tablemaster/schema/init.py +0 -0
  25. {tablemaster-2.1.3 → tablemaster-2.1.4}/tablemaster/schema/introspect.py +0 -0
  26. {tablemaster-2.1.3 → tablemaster-2.1.4}/tablemaster/schema/loader.py +0 -0
  27. {tablemaster-2.1.3 → tablemaster-2.1.4}/tablemaster/schema/models.py +0 -0
  28. {tablemaster-2.1.3 → tablemaster-2.1.4}/tablemaster/schema/plan.py +0 -0
  29. {tablemaster-2.1.3 → tablemaster-2.1.4}/tablemaster/schema/pull.py +0 -0
  30. {tablemaster-2.1.3 → tablemaster-2.1.4}/tablemaster/sync.py +0 -0
  31. {tablemaster-2.1.3 → tablemaster-2.1.4}/tablemaster/utils.py +0 -0
  32. {tablemaster-2.1.3 → tablemaster-2.1.4}/tablemaster.egg-info/SOURCES.txt +0 -0
  33. {tablemaster-2.1.3 → tablemaster-2.1.4}/tablemaster.egg-info/dependency_links.txt +0 -0
  34. {tablemaster-2.1.3 → tablemaster-2.1.4}/tablemaster.egg-info/entry_points.txt +0 -0
  35. {tablemaster-2.1.3 → tablemaster-2.1.4}/tablemaster.egg-info/top_level.txt +0 -0
  36. {tablemaster-2.1.3 → tablemaster-2.1.4}/tests/test_error_visibility.py +0 -0
  37. {tablemaster-2.1.3 → tablemaster-2.1.4}/tests/test_schema_core.py +0 -0
@@ -1,13 +1,13 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tablemaster
3
- Version: 2.1.3
3
+ Version: 2.1.4
4
4
  Summary: tablemaster is a Python toolkit for moving and managing tabular data across databases, Feishu/Lark, Google Sheets, and local files with one consistent API.
5
5
  Author-email: Livid <livid.su@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/ilivid/tablemaster
7
7
  Requires-Python: >=3.9
8
8
  Description-Content-Type: text/markdown
9
9
  License-File: LICENSE
10
- Requires-Dist: pandas<3,>=1.5
10
+ Requires-Dist: pandas>=1.5
11
11
  Requires-Dist: pyyaml>=6
12
12
  Requires-Dist: python-dateutil>=2.8
13
13
  Requires-Dist: tqdm>=4.60
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "tablemaster"
7
- version = "2.1.3"
7
+ version = "2.1.4"
8
8
  description = "tablemaster is a Python toolkit for moving and managing tabular data across databases, Feishu/Lark, Google Sheets, and local files with one consistent API."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
@@ -12,7 +12,7 @@ authors = [
12
12
  { name = "Livid", email = "livid.su@gmail.com" }
13
13
  ]
14
14
  dependencies = [
15
- "pandas>=1.5,<3",
15
+ "pandas>=1.5",
16
16
  "pyyaml>=6",
17
17
  "python-dateutil>=2.8",
18
18
  "tqdm>=4.60",
@@ -409,7 +409,7 @@ class ManageTable:
409
409
  VALUES ({value_placeholders})
410
410
  """
411
411
 
412
- data = chunk.where(pd.notna(chunk), None).to_dict(orient='records')
412
+ data = chunk.astype(object).where(pd.notna(chunk), None).to_dict(orient='records')
413
413
  connection.execute(text(insert_sql), data)
414
414
  pbar.update(1)
415
415
  except Exception as e:
@@ -192,7 +192,7 @@ def fs_write_df(sheet_address, df, feishu_cfg, loc='A1', clear_sheet=True):
192
192
  df_copy[col] = df_copy[col].astype(str)
193
193
 
194
194
  # 处理 NaN 值,转换为空字符串
195
- df_copy = df_copy.fillna('')
195
+ df_copy = df_copy.astype(object).fillna('')
196
196
 
197
197
  # 替换 'nan' 字符串为空字符串
198
198
  df_copy = df_copy.replace('nan', '')
@@ -365,7 +365,7 @@ def fs_write_base(sheet_address, df, feishu_cfg, clear_table=False):
365
365
 
366
366
  # 处理 DataFrame - 只保留有效字段
367
367
  df_copy = df[list(valid_fields)].copy()
368
- df_copy = df_copy.fillna('')
368
+ df_copy = df_copy.astype(object).fillna('')
369
369
  df_copy = df_copy.replace('nan', '')
370
370
 
371
371
  # 将 DataFrame 转换为 records 格式
@@ -1,13 +1,13 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tablemaster
3
- Version: 2.1.3
3
+ Version: 2.1.4
4
4
  Summary: tablemaster is a Python toolkit for moving and managing tabular data across databases, Feishu/Lark, Google Sheets, and local files with one consistent API.
5
5
  Author-email: Livid <livid.su@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/ilivid/tablemaster
7
7
  Requires-Python: >=3.9
8
8
  Description-Content-Type: text/markdown
9
9
  License-File: LICENSE
10
- Requires-Dist: pandas<3,>=1.5
10
+ Requires-Dist: pandas>=1.5
11
11
  Requires-Dist: pyyaml>=6
12
12
  Requires-Dist: python-dateutil>=2.8
13
13
  Requires-Dist: tqdm>=4.60
@@ -1,4 +1,4 @@
1
- pandas<3,>=1.5
1
+ pandas>=1.5
2
2
  pyyaml>=6
3
3
  python-dateutil>=2.8
4
4
  tqdm>=4.60
File without changes
File without changes
File without changes