surfdataverse 4.0.2__tar.gz → 4.1.0__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: surfdataverse
3
- Version: 4.0.2
3
+ Version: 4.1.0
4
4
  Summary: A Python package for ionysis Microsoft Dataverse integration
5
5
  Keywords: dataverse,microsoft,crm,api
6
6
  Author: ionysis
@@ -4,7 +4,7 @@ build-backend = "uv_build"
4
4
 
5
5
  [project]
6
6
  name = "surfdataverse"
7
- version = "4.0.2"
7
+ version = "4.1.0"
8
8
  description = "A Python package for ionysis Microsoft Dataverse integration"
9
9
  readme = "README.md"
10
10
  authors = [
@@ -1,3 +1,4 @@
1
+ from collections import defaultdict
1
2
  import io
2
3
  import json
3
4
  import logging
@@ -361,7 +362,7 @@ class DataverseBase:
361
362
  raise DataverseAPIError(error_msg, response.status_code, response.text)
362
363
 
363
364
  # === HELPER METHODS
364
- def name_to_guid(self, table_name, name: str="", name_column=None) -> str | None:
365
+ def name_to_guid(self, table_name, name: str = "", name_column=None) -> str | None:
365
366
  """
366
367
  Fetches a mapping of unique names to GUIDs in a Dataverse table
367
368
 
@@ -473,7 +474,7 @@ class DataverseTable(DataverseBase):
473
474
  import polars as pl
474
475
 
475
476
  data_list = entity_data["value"]
476
- df = pl.DataFrame(data_list)
477
+ df = pl.DataFrame(data_list, infer_schema_length=None)
477
478
  return df
478
479
 
479
480
  entity_set_name = self.get_table_entity_set_name(
@@ -519,7 +520,7 @@ class DataverseTable(DataverseBase):
519
520
  import polars as pl
520
521
 
521
522
  data_list = entity_data["value"]
522
- df = pl.DataFrame(data_list)
523
+ df = pl.DataFrame(data_list, infer_schema_length=None)
523
524
  # Return only requested columns that exist in the data
524
525
  available_cols = [col for col in cols if col in df.columns]
525
526
  if not available_cols:
File without changes