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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: codec_bridge
3
- Version: 0.2.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.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.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.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"Processando '{os.path.basename(file_path)}': Tabela='{table_name}', Encoding='{encoding}', Delim='{delimiter}'")
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"✅ Tabela '{table_name}' criada com sucesso.")
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"❌ ERRO ao criar a tabela '{table_name}': {e}")
21
+ print(f"ERROR Create Table doesnt work '{table_name}': {e}")
File without changes
File without changes
File without changes