codec-bridge 0.2.2__tar.gz → 0.2.3__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.
- {codec_bridge-0.2.2 → codec_bridge-0.2.3}/PKG-INFO +1 -1
- {codec_bridge-0.2.2 → codec_bridge-0.2.3}/codec_bridge.egg-info/PKG-INFO +1 -1
- {codec_bridge-0.2.2 → codec_bridge-0.2.3}/pyproject.toml +1 -1
- {codec_bridge-0.2.2 → codec_bridge-0.2.3}/setup.py +1 -1
- {codec_bridge-0.2.2 → codec_bridge-0.2.3}/tests/duckdb_utils.py +3 -3
- {codec_bridge-0.2.2 → codec_bridge-0.2.3}/README.md +0 -0
- {codec_bridge-0.2.2 → codec_bridge-0.2.3}/codec_bridge/__init__.py +0 -0
- {codec_bridge-0.2.2 → codec_bridge-0.2.3}/codec_bridge/encoding_translator.py +0 -0
- {codec_bridge-0.2.2 → codec_bridge-0.2.3}/codec_bridge/repository/__init__.py +0 -0
- {codec_bridge-0.2.2 → codec_bridge-0.2.3}/codec_bridge/repository/python_to_duckdb.py +0 -0
- {codec_bridge-0.2.2 → codec_bridge-0.2.3}/codec_bridge.egg-info/SOURCES.txt +0 -0
- {codec_bridge-0.2.2 → codec_bridge-0.2.3}/codec_bridge.egg-info/dependency_links.txt +0 -0
- {codec_bridge-0.2.2 → codec_bridge-0.2.3}/codec_bridge.egg-info/requires.txt +0 -0
- {codec_bridge-0.2.2 → codec_bridge-0.2.3}/codec_bridge.egg-info/top_level.txt +0 -0
- {codec_bridge-0.2.2 → codec_bridge-0.2.3}/license.txt +0 -0
- {codec_bridge-0.2.2 → codec_bridge-0.2.3}/setup.cfg +0 -0
- {codec_bridge-0.2.2 → codec_bridge-0.2.3}/tests/__init__.py +0 -0
- {codec_bridge-0.2.2 → codec_bridge-0.2.3}/tests/generate_test_data.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: codec_bridge
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.3
|
|
4
4
|
Summary: Detect encoding from CSV files and return the accepted case format for analytical tools (currently supports DuckDB)
|
|
5
5
|
Home-page: https://github.com/jpferraz-git/codec_bridge
|
|
6
6
|
Author: João Pedro Ferraz Bezerra
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: codec_bridge
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.3
|
|
4
4
|
Summary: Detect encoding from CSV files and return the accepted case format for analytical tools (currently supports DuckDB)
|
|
5
5
|
Home-page: https://github.com/jpferraz-git/codec_bridge
|
|
6
6
|
Author: João Pedro Ferraz Bezerra
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "codec_bridge"
|
|
3
|
-
version = "0.2.
|
|
3
|
+
version = "0.2.3"
|
|
4
4
|
description = "Detect encoding from CSV files and return the accepted case format for analytical tools (currently supports DuckDB)"
|
|
5
5
|
authors = [
|
|
6
6
|
{ name = "João Pedro Ferraz Bezerra", email = "jpferraz554@gmail.com" }
|
|
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|
|
2
2
|
|
|
3
3
|
setup(
|
|
4
4
|
name='codec_bridge',
|
|
5
|
-
version='0.2.
|
|
5
|
+
version='0.2.3',
|
|
6
6
|
packages=find_packages(),
|
|
7
7
|
description='Encoding and case normalization bridge for DuckDB and other engines',
|
|
8
8
|
long_description=open('README.md', encoding='utf-8').read(),
|
|
@@ -3,7 +3,7 @@ def create_table_from_csv(conn, file_path: str, table_name: str, delimiter: str
|
|
|
3
3
|
"""
|
|
4
4
|
Create a table on DuckDB
|
|
5
5
|
"""
|
|
6
|
-
print(f"
|
|
6
|
+
print(f"Processing '{os.path.basename(file_path)}': Table='{table_name}', Encoding='{encoding}', Delim='{delimiter}'")
|
|
7
7
|
try:
|
|
8
8
|
conn.sql(f"""
|
|
9
9
|
CREATE OR REPLACE TEMP TABLE "{table_name}" AS
|
|
@@ -15,7 +15,7 @@ def create_table_from_csv(conn, file_path: str, table_name: str, delimiter: str
|
|
|
15
15
|
auto_detect=true
|
|
16
16
|
) LIMIT 1000)
|
|
17
17
|
""")
|
|
18
|
-
print(f"
|
|
18
|
+
print(f"Create Table Successful '{table_name}' .")
|
|
19
19
|
print(conn.sql(f'SELECT * FROM "{table_name}" LIMIT 3'))
|
|
20
20
|
except Exception as e:
|
|
21
|
-
print(f"
|
|
21
|
+
print(f"ERROR Create Table doesnt work '{table_name}': {e}")
|
|
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
|