SQLDataModel
Advanced tools
+2
-2
| Metadata-Version: 2.1 | ||
| Name: SQLDataModel | ||
| Version: 0.8.2 | ||
| Version: 0.9.0 | ||
| Summary: SQLDataModel is a lightweight dataframe library designed for efficient data extraction, transformation, and loading (ETL) across various sources and destinations, providing an efficient alternative to common setups like pandas, numpy, and sqlalchemy while also providing additional features without the overhead of external dependencies. | ||
@@ -90,3 +90,3 @@ Home-page: https://github.com/AnteT/SQLDataModel | ||
| >>> | ||
| >>> sdm = SQLDataModel.from_html(url, table_identifier=94) | ||
| >>> sdm = SQLDataModel.from_html(url, table_identifier=95) | ||
| >>> | ||
@@ -93,0 +93,0 @@ >>> sdm[:4, ['R', 'Team', 'W', 'Pts.']] |
+1
-1
@@ -65,3 +65,3 @@ <img src="https://github.com/AnteT/SQLDataModel/raw/master/figs/sdm_banner_cyan.PNG?raw=true" alt="SQLDataModel Logo" style="width:100vw; border-radius: .6vw" /> | ||
| >>> | ||
| >>> sdm = SQLDataModel.from_html(url, table_identifier=94) | ||
| >>> sdm = SQLDataModel.from_html(url, table_identifier=95) | ||
| >>> | ||
@@ -68,0 +68,0 @@ >>> sdm[:4, ['R', 'Team', 'W', 'Pts.']] |
+1
-1
@@ -8,3 +8,3 @@ import setuptools | ||
| name='SQLDataModel', | ||
| version='0.8.2', | ||
| version='0.9.0', | ||
| scripts=['src/SQLDataModel/SQLDataModel.py'] , | ||
@@ -11,0 +11,0 @@ author='Ante Tonkovic-Capin', |
| Metadata-Version: 2.1 | ||
| Name: SQLDataModel | ||
| Version: 0.8.2 | ||
| Version: 0.9.0 | ||
| Summary: SQLDataModel is a lightweight dataframe library designed for efficient data extraction, transformation, and loading (ETL) across various sources and destinations, providing an efficient alternative to common setups like pandas, numpy, and sqlalchemy while also providing additional features without the overhead of external dependencies. | ||
@@ -90,3 +90,3 @@ Home-page: https://github.com/AnteT/SQLDataModel | ||
| >>> | ||
| >>> sdm = SQLDataModel.from_html(url, table_identifier=94) | ||
| >>> sdm = SQLDataModel.from_html(url, table_identifier=95) | ||
| >>> | ||
@@ -93,0 +93,0 @@ >>> sdm[:4, ['R', 'Team', 'W', 'Pts.']] |
@@ -25,5 +25,8 @@ from __future__ import annotations | ||
| ``target_table`` (list): List to hold the data of the target table once found. | ||
| Change Log: | ||
| - Version 0.9.0 (2024-06-26): | ||
| - Modified integer indexing of table elements found to use one-based indexing instead of zero-based indexing to align with similar method usage across package. | ||
| """ | ||
| def __init__(self, *, convert_charrefs: bool = True, cell_sep:str=" ", table_identifier:int|str=0) -> None: | ||
| def __init__(self, *, convert_charrefs: bool = True, cell_sep:str=" ", table_identifier:int|str=1) -> None: | ||
| super().__init__(convert_charrefs=convert_charrefs) | ||
@@ -46,3 +49,3 @@ if table_identifier is None: | ||
| self._is_finished = False | ||
| self.table_counter = -1 | ||
| self.table_counter = 0 | ||
| self.target_table = [] | ||
@@ -161,5 +164,5 @@ | ||
| - If a row is found with mismatched dimensions, it will be filled with ``None`` values to ensure tabular output. | ||
| """ | ||
| """ | ||
| if not self.found_target: | ||
| if (num_tables_found := self.table_counter + 1) < 1: | ||
| if (num_tables_found := self.table_counter) < 1: | ||
| if num_tables_found < 1: | ||
@@ -166,0 +169,0 @@ raise ValueError( |
Sorry, the diff of this file is too big to display
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
1090044
0.05%15694
0.04%