chdb 3.4.1__cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

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.

Potentially problematic release.


This version of chdb might be problematic. Click here for more details.

@@ -0,0 +1,532 @@
1
+ Metadata-Version: 2.4
2
+ Name: chdb
3
+ Version: 3.4.1
4
+ Summary: chDB is an in-process SQL OLAP Engine powered by ClickHouse
5
+ Home-page: https://github.com/chdb-io/chdb
6
+ Author: auxten
7
+ Author-email: auxten@clickhouse.com
8
+ License: Apache-2.0
9
+ Project-URL: Homepage, https://clickhouse.com/chdb
10
+ Project-URL: Documentation, https://clickhouse.com/docs/en/chdb
11
+ Project-URL: Source, https://github.com/chdb-io/chdb
12
+ Project-URL: Download, https://pypi.org/project/chdb/#files
13
+ Project-URL: Twitter, https://twitter.com/chdb_io
14
+ Platform: Mac
15
+ Platform: Linux
16
+ Classifier: Development Status :: 4 - Beta
17
+ Classifier: Intended Audience :: Developers
18
+ Classifier: License :: OSI Approved :: Apache Software License
19
+ Classifier: Operating System :: MacOS :: MacOS X
20
+ Classifier: Operating System :: POSIX
21
+ Classifier: Programming Language :: Python :: 3.8
22
+ Classifier: Programming Language :: Python :: 3.9
23
+ Classifier: Programming Language :: Python :: 3.10
24
+ Classifier: Programming Language :: Python :: 3.11
25
+ Classifier: Programming Language :: Python :: 3.12
26
+ Classifier: Topic :: Database
27
+ Classifier: Topic :: Scientific/Engineering :: Information Analysis
28
+ Requires-Python: >=3.8
29
+ Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
30
+ License-File: LICENSE.txt
31
+ Requires-Dist: pyarrow>=13.0.0
32
+ Requires-Dist: pandas>=2.0.0
33
+ Dynamic: license-file
34
+ Dynamic: requires-dist
35
+ Dynamic: requires-python
36
+
37
+ <div align="center">
38
+ <a href="https://clickhouse.com/blog/chdb-joins-clickhouse-family">📢 chDB joins the ClickHouse family 🐍+🚀</a>
39
+ </div>
40
+ <div align="center">
41
+ <picture>
42
+ <source media="(prefers-color-scheme: dark)" srcset="https://github.com/chdb-io/chdb/raw/main/docs/_static/snake-chdb-dark.png" height="130">
43
+ <img src="https://github.com/chdb-io/chdb/raw/main/docs/_static/snake-chdb.png" height="130">
44
+ </picture>
45
+
46
+ [![Build X86](https://github.com/chdb-io/chdb/actions/workflows/build_linux_x86_wheels.yml/badge.svg?event=release)](https://github.com/chdb-io/chdb/actions/workflows/build_linux_x86_wheels.yml)
47
+ [![PyPI](https://img.shields.io/pypi/v/chdb.svg)](https://pypi.org/project/chdb/)
48
+ [![Downloads](https://static.pepy.tech/badge/chdb)](https://pepy.tech/project/chdb)
49
+ [![Discord](https://img.shields.io/discord/1098133460310294528?logo=Discord)](https://discord.gg/D2Daa2fM5K)
50
+ [![Twitter](https://img.shields.io/twitter/url/http/shields.io.svg?style=social&label=Twitter)](https://twitter.com/chdb_io)
51
+ </div>
52
+
53
+ # chDB
54
+
55
+
56
+ > chDB is an in-process SQL OLAP Engine powered by ClickHouse [^1]
57
+ > For more details: [The birth of chDB](https://auxten.com/the-birth-of-chdb/)
58
+
59
+
60
+ ## Features
61
+
62
+ * In-process SQL OLAP Engine, powered by ClickHouse
63
+ * No need to install ClickHouse
64
+ * Minimized data copy from C++ to Python with [python memoryview](https://docs.python.org/3/c-api/memoryview.html)
65
+ * Input&Output support Parquet, CSV, JSON, Arrow, ORC and 60+[more](https://clickhouse.com/docs/en/interfaces/formats) formats, [samples](tests/format_output.py)
66
+ * Support Python DB API 2.0, [example](examples/dbapi.py)
67
+
68
+
69
+
70
+ ## Arch
71
+ <div align="center">
72
+ <img src="https://github.com/chdb-io/chdb/raw/main/docs/_static/arch-chdb3.png" width="450">
73
+ </div>
74
+
75
+ ## Get Started
76
+ Get started with **chdb** using our [Installation and Usage Examples](https://clickhouse.com/docs/en/chdb)
77
+
78
+ <br>
79
+
80
+ ## Installation
81
+ Currently, chDB supports Python 3.8+ on macOS and Linux (x86_64 and ARM64).
82
+ ```bash
83
+ pip install chdb
84
+ ```
85
+
86
+ ## Usage
87
+
88
+ ### Run in command line
89
+ > `python3 -m chdb SQL [OutputFormat]`
90
+ ```bash
91
+ python3 -m chdb "SELECT 1,'abc'" Pretty
92
+ ```
93
+
94
+ <br>
95
+
96
+ ### Data Input
97
+ The following methods are available to access on-disk and in-memory data formats:
98
+
99
+ <details>
100
+ <summary><h4>🗂️ Connection based API (recommended)</h4></summary>
101
+
102
+ ```python
103
+ import chdb
104
+
105
+ # Create a connection (in-memory by default)
106
+ conn = chdb.connect(":memory:")
107
+ # Or use file-based: conn = chdb.connect("test.db")
108
+
109
+ # Create a cursor
110
+ cur = conn.cursor()
111
+
112
+ # Execute queries
113
+ cur.execute("SELECT number, toString(number) as str FROM system.numbers LIMIT 3")
114
+
115
+ # Fetch data in different ways
116
+ print(cur.fetchone()) # Single row: (0, '0')
117
+ print(cur.fetchmany(2)) # Multiple rows: ((1, '1'), (2, '2'))
118
+
119
+ # Get column information
120
+ print(cur.column_names()) # ['number', 'str']
121
+ print(cur.column_types()) # ['UInt64', 'String']
122
+
123
+ # Use the cursor as an iterator
124
+ cur.execute("SELECT number FROM system.numbers LIMIT 3")
125
+ for row in cur:
126
+ print(row)
127
+
128
+ # Always close resources when done
129
+ cur.close()
130
+ conn.close()
131
+ ```
132
+
133
+ For more details, see [examples/connect.py](examples/connect.py).
134
+ </details>
135
+
136
+
137
+ <details>
138
+ <summary><h4>🗂️ Query On File</h4> (Parquet, CSV, JSON, Arrow, ORC and 60+)</summary>
139
+
140
+ You can execute SQL and return desired format data.
141
+
142
+ ```python
143
+ import chdb
144
+ res = chdb.query('select version()', 'Pretty'); print(res)
145
+ ```
146
+
147
+ ### Work with Parquet or CSV
148
+ ```python
149
+ # See more data type format in tests/format_output.py
150
+ res = chdb.query('select * from file("data.parquet", Parquet)', 'JSON'); print(res)
151
+ res = chdb.query('select * from file("data.csv", CSV)', 'CSV'); print(res)
152
+ print(f"SQL read {res.rows_read()} rows, {res.bytes_read()} bytes, storage read {res.storage_rows_read()} rows, {res.storage_bytes_read()} bytes, elapsed {res.elapsed()} seconds")
153
+ ```
154
+
155
+ ### Pandas dataframe output
156
+ ```python
157
+ # See more in https://clickhouse.com/docs/en/interfaces/formats
158
+ chdb.query('select * from file("data.parquet", Parquet)', 'Dataframe')
159
+ ```
160
+ </details>
161
+
162
+ <details>
163
+ <summary><h4>🗂️ Query On Table</h4> (Pandas DataFrame, Parquet file/bytes, Arrow bytes) </summary>
164
+
165
+ ### Query On Pandas DataFrame
166
+ ```python
167
+ import chdb.dataframe as cdf
168
+ import pandas as pd
169
+ # Join 2 DataFrames
170
+ df1 = pd.DataFrame({'a': [1, 2, 3], 'b': ["one", "two", "three"]})
171
+ df2 = pd.DataFrame({'c': [1, 2, 3], 'd': ["①", "②", "③"]})
172
+ ret_tbl = cdf.query(sql="select * from __tbl1__ t1 join __tbl2__ t2 on t1.a = t2.c",
173
+ tbl1=df1, tbl2=df2)
174
+ print(ret_tbl)
175
+ # Query on the DataFrame Table
176
+ print(ret_tbl.query('select b, sum(a) from __table__ group by b'))
177
+ # Pandas DataFrames are automatically registered as temporary tables in ClickHouse
178
+ chdb.query("SELECT * FROM Python(df1) t1 JOIN Python(df2) t2 ON t1.a = t2.c").show()
179
+ ```
180
+ </details>
181
+
182
+ <details>
183
+ <summary><h4>🗂️ Query with Stateful Session</h4></summary>
184
+
185
+ ```python
186
+ from chdb import session as chs
187
+
188
+ ## Create DB, Table, View in temp session, auto cleanup when session is deleted.
189
+ sess = chs.Session()
190
+ sess.query("CREATE DATABASE IF NOT EXISTS db_xxx ENGINE = Atomic")
191
+ sess.query("CREATE TABLE IF NOT EXISTS db_xxx.log_table_xxx (x String, y Int) ENGINE = Log;")
192
+ sess.query("INSERT INTO db_xxx.log_table_xxx VALUES ('a', 1), ('b', 3), ('c', 2), ('d', 5);")
193
+ sess.query(
194
+ "CREATE VIEW db_xxx.view_xxx AS SELECT * FROM db_xxx.log_table_xxx LIMIT 4;"
195
+ )
196
+ print("Select from view:\n")
197
+ print(sess.query("SELECT * FROM db_xxx.view_xxx", "Pretty"))
198
+ ```
199
+
200
+ see also: [test_stateful.py](tests/test_stateful.py).
201
+ </details>
202
+
203
+ <details>
204
+ <summary><h4>🗂️ Query with Python DB-API 2.0</h4></summary>
205
+
206
+ ```python
207
+ import chdb.dbapi as dbapi
208
+ print("chdb driver version: {0}".format(dbapi.get_client_info()))
209
+
210
+ conn1 = dbapi.connect()
211
+ cur1 = conn1.cursor()
212
+ cur1.execute('select version()')
213
+ print("description: ", cur1.description)
214
+ print("data: ", cur1.fetchone())
215
+ cur1.close()
216
+ conn1.close()
217
+ ```
218
+ </details>
219
+
220
+
221
+ <details>
222
+ <summary><h4>🗂️ Query with UDF (User Defined Functions)</h4></summary>
223
+
224
+ ```python
225
+ from chdb.udf import chdb_udf
226
+ from chdb import query
227
+
228
+ @chdb_udf()
229
+ def sum_udf(lhs, rhs):
230
+ return int(lhs) + int(rhs)
231
+
232
+ print(query("select sum_udf(12,22)"))
233
+ ```
234
+
235
+ Some notes on chDB Python UDF(User Defined Function) decorator.
236
+ 1. The function should be stateless. So, only UDFs are supported, not UDAFs(User Defined Aggregation Function).
237
+ 2. Default return type is String. If you want to change the return type, you can pass in the return type as an argument.
238
+ The return type should be one of the following: https://clickhouse.com/docs/en/sql-reference/data-types
239
+ 3. The function should take in arguments of type String. As the input is TabSeparated, all arguments are strings.
240
+ 4. The function will be called for each line of input. Something like this:
241
+ ```
242
+ def sum_udf(lhs, rhs):
243
+ return int(lhs) + int(rhs)
244
+
245
+ for line in sys.stdin:
246
+ args = line.strip().split('\t')
247
+ lhs = args[0]
248
+ rhs = args[1]
249
+ print(sum_udf(lhs, rhs))
250
+ sys.stdout.flush()
251
+ ```
252
+ 5. The function should be pure python function. You SHOULD import all python modules used IN THE FUNCTION.
253
+ ```
254
+ def func_use_json(arg):
255
+ import json
256
+ ...
257
+ ```
258
+ 6. Python interpertor used is the same as the one used to run the script. Get from `sys.executable`
259
+
260
+ see also: [test_udf.py](tests/test_udf.py).
261
+ </details>
262
+
263
+
264
+ <details>
265
+ <summary><h4>🗂️ Streaming Query</h4></summary>
266
+
267
+ Process large datasets with constant memory usage through chunked streaming.
268
+
269
+ ```python
270
+ from chdb import session as chs
271
+
272
+ sess = chs.Session()
273
+
274
+ # Example 1: Basic example of using streaming query
275
+ rows_cnt = 0
276
+ with sess.send_query("SELECT * FROM numbers(200000)", "CSV") as stream_result:
277
+ for chunk in stream_result:
278
+ rows_cnt += chunk.rows_read()
279
+
280
+ print(rows_cnt) # 200000
281
+
282
+ # Example 2: Manual iteration with fetch()
283
+ rows_cnt = 0
284
+ stream_result = sess.send_query("SELECT * FROM numbers(200000)", "CSV")
285
+ while True:
286
+ chunk = stream_result.fetch()
287
+ if chunk is None:
288
+ break
289
+ rows_cnt += chunk.rows_read()
290
+
291
+ print(rows_cnt) # 200000
292
+
293
+ # Example 3: Early cancellation demo
294
+ rows_cnt = 0
295
+ stream_result = sess.send_query("SELECT * FROM numbers(200000)", "CSV")
296
+ while True:
297
+ chunk = stream_result.fetch()
298
+ if chunk is None:
299
+ break
300
+ if rows_cnt > 0:
301
+ stream_result.cancel()
302
+ break
303
+ rows_cnt += chunk.rows_read()
304
+
305
+ print(rows_cnt) # 65409
306
+
307
+ sess.close()
308
+ ```
309
+
310
+ For more details, see [test_streaming_query.py](tests/test_streaming_query.py).
311
+ </details>
312
+
313
+
314
+ <details>
315
+ <summary><h4>🗂️ Python Table Engine</h4></summary>
316
+
317
+ ### Query on Pandas DataFrame
318
+
319
+ ```python
320
+ import chdb
321
+ import pandas as pd
322
+ df = pd.DataFrame(
323
+ {
324
+ "a": [1, 2, 3, 4, 5, 6],
325
+ "b": ["tom", "jerry", "auxten", "tom", "jerry", "auxten"],
326
+ "dict_col": [
327
+ {'id': 1, 'tags': ['urgent', 'important'], 'metadata': {'created': '2024-01-01'}},
328
+ {'id': 2, 'tags': ['normal'], 'metadata': {'created': '2024-02-01'}},
329
+ {'id': 3, 'name': 'tom'},
330
+ {'id': 4, 'value': '100'},
331
+ {'id': 5, 'value': 101},
332
+ {'id': 6, 'value': 102},
333
+ ],
334
+ }
335
+ )
336
+
337
+ chdb.query("SELECT b, sum(a) FROM Python(df) GROUP BY b ORDER BY b").show()
338
+ chdb.query("SELECT dict_col.id FROM Python(df) WHERE dict_col.value='100'").show()
339
+ ```
340
+
341
+ ### Query on Arrow Table
342
+
343
+ ```python
344
+ import chdb
345
+ import pyarrow as pa
346
+ arrow_table = pa.table(
347
+ {
348
+ "a": [1, 2, 3, 4, 5, 6],
349
+ "b": ["tom", "jerry", "auxten", "tom", "jerry", "auxten"],
350
+ "dict_col": [
351
+ {'id': 1, 'value': 'tom'},
352
+ {'id': 2, 'value': 'jerry'},
353
+ {'id': 3, 'value': 'auxten'},
354
+ {'id': 4, 'value': 'tom'},
355
+ {'id': 5, 'value': 'jerry'},
356
+ {'id': 6, 'value': 'auxten'},
357
+ ],
358
+ }
359
+ )
360
+
361
+ chdb.query("SELECT b, sum(a) FROM Python(arrow_table) GROUP BY b ORDER BY b").show()
362
+ chdb.query("SELECT dict_col.id FROM Python(arrow_table) WHERE dict_col.value='tom'").show()
363
+ ```
364
+
365
+ ### Query on chdb.PyReader class instance
366
+
367
+ 1. You must inherit from chdb.PyReader class and implement the `read` method.
368
+ 2. The `read` method should:
369
+ 1. return a list of lists, the first demension is the column, the second dimension is the row, the columns order should be the same as the first arg `col_names` of `read`.
370
+ 1. return an empty list when there is no more data to read.
371
+ 1. be stateful, the cursor should be updated in the `read` method.
372
+ 3. An optional `get_schema` method can be implemented to return the schema of the table. The prototype is `def get_schema(self) -> List[Tuple[str, str]]:`, the return value is a list of tuples, each tuple contains the column name and the column type. The column type should be one of the following: https://clickhouse.com/docs/en/sql-reference/data-types
373
+
374
+ ```python
375
+ import chdb
376
+
377
+ class myReader(chdb.PyReader):
378
+ def __init__(self, data):
379
+ self.data = data
380
+ self.cursor = 0
381
+ super().__init__(data)
382
+
383
+ def read(self, col_names, count):
384
+ print("Python func read", col_names, count, self.cursor)
385
+ if self.cursor >= len(self.data["a"]):
386
+ self.cursor = 0
387
+ return []
388
+ block = [self.data[col] for col in col_names]
389
+ self.cursor += len(block[0])
390
+ return block
391
+
392
+ def get_schema(self):
393
+ return [
394
+ ("a", "int"),
395
+ ("b", "str"),
396
+ ("dict_col", "json")
397
+ ]
398
+
399
+ reader = myReader(
400
+ {
401
+ "a": [1, 2, 3, 4, 5, 6],
402
+ "b": ["tom", "jerry", "auxten", "tom", "jerry", "auxten"],
403
+ "dict_col": [
404
+ {'id': 1, 'tags': ['urgent', 'important'], 'metadata': {'created': '2024-01-01'}},
405
+ {'id': 2, 'tags': ['normal'], 'metadata': {'created': '2024-02-01'}},
406
+ {'id': 3, 'name': 'tom'},
407
+ {'id': 4, 'value': '100'},
408
+ {'id': 5, 'value': 101},
409
+ {'id': 6, 'value': 102}
410
+ ],
411
+ }
412
+ )
413
+
414
+ chdb.query("SELECT b, sum(a) FROM Python(reader) GROUP BY b ORDER BY b").show()
415
+ chdb.query("SELECT dict_col.id FROM Python(reader) WHERE dict_col.value='100'").show()
416
+ ```
417
+
418
+ see also: [test_query_py.py](tests/test_query_py.py) and [test_query_json.py](tests/test_query_json.py).
419
+
420
+ ### JSON Type Inference
421
+
422
+ chDB automatically converts Python dictionary objects to ClickHouse JSON types from these sources:
423
+
424
+ 1. **Pandas DataFrame**
425
+ - Columns with `object` dtype are sampled (default 10,000 rows) to detect JSON structures.
426
+ - Control sampling via SQL settings:
427
+ ```sql
428
+ SET pandas_analyze_sample = 10000 -- Default sampling
429
+ SET pandas_analyze_sample = 0 -- Force String type
430
+ SET pandas_analyze_sample = -1 -- Force JSON type
431
+ ```
432
+ - Columns are converted to `String` if sampling finds non-dictionary values.
433
+
434
+ 2. **Arrow Table**
435
+ - `struct` type columns are automatically mapped to JSON columns.
436
+ - Nested structures preserve type information.
437
+
438
+ 3. **chdb.PyReader**
439
+ - Implement custom schema mapping in `get_schema()`:
440
+ ```python
441
+ def get_schema(self):
442
+ return [
443
+ ("c1", "JSON"), # Explicit JSON mapping
444
+ ("c2", "String")
445
+ ]
446
+ ```
447
+ - Column types declared as "JSON" will bypass auto-detection.
448
+
449
+ When converting Python dictionary objects to JSON columns:
450
+
451
+ 1. **Nested Structures**
452
+ - Recursively process nested dictionaries, lists, tuples and NumPy arrays.
453
+
454
+ 2. **Primitive Types**
455
+ - Automatic type recognition for basic types such as integers, floats, strings, and booleans, and more.
456
+
457
+ 3. **Complex Objects**
458
+ - Non-primitive types will be converted to strings.
459
+
460
+ ### Limitations
461
+
462
+ 1. Column types supported: pandas.Series, pyarrow.array, chdb.PyReader
463
+ 1. Data types supported: Int, UInt, Float, String, Date, DateTime, Decimal
464
+ 1. Python Object type will be converted to String
465
+ 1. Pandas DataFrame performance is all of the best, Arrow Table is better than PyReader
466
+
467
+
468
+ </details>
469
+
470
+ For more examples, see [examples](examples) and [tests](tests).
471
+
472
+ <br>
473
+
474
+ ## Demos and Examples
475
+
476
+ - [Project Documentation](https://clickhouse.com/docs/en/chdb) and [Usage Examples](https://clickhouse.com/docs/en/chdb/install/python)
477
+ - [Colab Notebooks](https://colab.research.google.com/drive/1-zKB6oKfXeptggXi0kUX87iR8ZTSr4P3?usp=sharing) and other [Script Examples](examples)
478
+
479
+ ## Benchmark
480
+
481
+ - [ClickBench of embedded engines](https://benchmark.clickhouse.com/#eyJzeXN0ZW0iOnsiQXRoZW5hIChwYXJ0aXRpb25lZCkiOnRydWUsIkF0aGVuYSAoc2luZ2xlKSI6dHJ1ZSwiQXVyb3JhIGZvciBNeVNRTCI6dHJ1ZSwiQXVyb3JhIGZvciBQb3N0Z3JlU1FMIjp0cnVlLCJCeXRlSG91c2UiOnRydWUsImNoREIiOnRydWUsIkNpdHVzIjp0cnVlLCJjbGlja2hvdXNlLWxvY2FsIChwYXJ0aXRpb25lZCkiOnRydWUsImNsaWNraG91c2UtbG9jYWwgKHNpbmdsZSkiOnRydWUsIkNsaWNrSG91c2U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MkdCIjp0cnVlLCJjNmEuNHhsYXJnZSwgNTAwZ2IgZ3AzIjp0cnVlfSwiY2x1c3Rlcl9zaXplIjp7IjEiOnRydWUsIjIiOnRydWUsIjQiOnRydWUsIjgiOnRydWUsIjE2Ijp0cnVlLCIzMiI6dHJ1ZSwiNjQiOnRydWUsIjEyOCI6dHJ1ZSwic2VydmVybGVzcyI6dHJ1ZX0sIm1ldHJpYyI6ImhvdCIsInF1ZXJpZXMiOlt0cnVlLHRydWUsdHJ1ZSx0cnVlLHRydWUsdHJ1ZSx0cnVlLHRydWUsdHJ1ZSx0cnVlLHRydWUsdHJ1ZSx0cnVlLHRydWUsdHJ1ZSx0cnVlLHRydWUsdHJ1ZSx0cnVlLHRydWUsdHJ1ZSx0cnVlLHRydWUsdHJ1ZSx0cnVlLHRydWUsdHJ1ZSx0cnVlLHRydWUsdHJ1ZSx0cnVlLHRydWUsdHJ1ZSx0cnVlLHRydWUsdHJ1ZSx0cnVlLHRydWUsdHJ1ZSx0cnVlLHRydWUsdHJ1ZSx0cnVlXX0=)
486
+
487
+
488
+ <div align="center">
489
+ <img src="https://github.com/chdb-io/chdb/raw/main/docs/_static/df_bench.png" width="800">
490
+ </div>
491
+
492
+
493
+ ## Documentation
494
+ - For chdb specific examples and documentation refer to [chDB docs](https://clickhouse.com/docs/en/chdb)
495
+ - For SQL syntax, please refer to [ClickHouse SQL Reference](https://clickhouse.com/docs/en/sql-reference/syntax)
496
+
497
+
498
+ ## Events
499
+
500
+ - Demo chDB at [ClickHouse v23.7 livehouse!](https://t.co/todc13Kn19) and [Slides](https://docs.google.com/presentation/d/1ikqjOlimRa7QAg588TAB_Fna-Tad2WMg7_4AgnbQbFA/edit?usp=sharing)
501
+
502
+ ## Contributing
503
+ Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**.
504
+ There are something you can help:
505
+ - [ ] Help test and report bugs
506
+ - [ ] Help improve documentation
507
+ - [ ] Help improve code quality and performance
508
+
509
+ ### Bindings
510
+
511
+ We welcome bindings for other languages, please refer to [bindings](bindings.md) for more details.
512
+
513
+ ## Paper
514
+
515
+ - [ClickHouse - Lightning Fast Analytics for Everyone](https://www.vldb.org/pvldb/vol17/p3731-schulze.pdf)
516
+
517
+ ## License
518
+ Apache 2.0, see [LICENSE](LICENSE.txt) for more information.
519
+
520
+ ## Acknowledgments
521
+ chDB is mainly based on [ClickHouse](https://github.com/ClickHouse/ClickHouse) [^1]
522
+ for trade mark and other reasons, I named it chDB.
523
+
524
+ ## Contact
525
+ - Discord: [https://discord.gg/D2Daa2fM5K](https://discord.gg/D2Daa2fM5K)
526
+ - Email: auxten@clickhouse.com
527
+ - Twitter: [@chdb](https://twitter.com/chdb_io)
528
+
529
+
530
+ <br>
531
+
532
+ [^1]: ClickHouse® is a trademark of ClickHouse Inc. All trademarks, service marks, and logos mentioned or depicted are the property of their respective owners. The use of any third-party trademarks, brand names, product names, and company names does not imply endorsement, affiliation, or association with the respective owners.
@@ -0,0 +1,28 @@
1
+ chdb/__init__.py,sha256=KjR7cb7QFtjCqvasu81WQvX-2LeHjx-rSB3preiRefI,3762
2
+ chdb/__main__.py,sha256=xNNtDY38d973YM5dlxiIazcqqKhXJSpNb7JflyyrXGE,1185
3
+ chdb/_chdb.cpython-312-x86_64-linux-gnu.so,sha256=vEG35-mHGAry0d97Ax260gsp-XpfkGxNDxunJ7lf6rs,735033696
4
+ chdb/rwabc.py,sha256=tbiwCrXirfrfx46wCJxS64yvFe6pVWIPGdSuvrAL5Ys,2102
5
+ chdb/dataframe/__init__.py,sha256=1_mrZZiJwqBTnH_P8_FCbbYXIWWY5sxnaFpe3-tDLF4,680
6
+ chdb/dataframe/query.py,sha256=ggvE8A5vtabFg9gSTp99S7LCrnIEwbWtb-PtJVT8Ct0,12759
7
+ chdb/dbapi/__init__.py,sha256=aaNhxXNBC1ZkFr260cbGR8msOinTp0VoNTT_j8AXGUc,2205
8
+ chdb/dbapi/connections.py,sha256=RW0EcusyKueMGp7VmSaCO-ukyzY7l2ps_ibA9-pXDvo,2754
9
+ chdb/dbapi/converters.py,sha256=0SDqgixUTCz0LtWke_HHzgF1lFJhpsQrR_-ky3b-JRY,7447
10
+ chdb/dbapi/cursors.py,sha256=3ufVB1zt3x7SzCYowVbwAOsuzkMxYPO74q9XW6ctkKo,8120
11
+ chdb/dbapi/err.py,sha256=kUI9-A8LNqBoMoo4jh2NFsLCOLoPEwh9YIuz_qMoLoM,2017
12
+ chdb/dbapi/times.py,sha256=_qXgDaYwsHntvpIKSKXp1rrYIgtq6Z9pLyLnO2XNoL0,360
13
+ chdb/dbapi/constants/FIELD_TYPE.py,sha256=ytFzgAnGmb9hvdsBlnK68qdZv_a6jYFIXT6VSAb60z8,370
14
+ chdb/dbapi/constants/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
+ chdb/session/__init__.py,sha256=fCUROZ5L1-92o2lcASiWJpFu-80-kDoSrNfouLEmLg8,50
16
+ chdb/session/state.py,sha256=m7K9zZtoMQTlh-pfmSyJV38pAe6eHNTPtOvlHYrImhA,4436
17
+ chdb/state/__init__.py,sha256=RVUIWDqDi7gte4Os7Mz1wPXFyFpdHT_p1klJC7QtluI,55
18
+ chdb/state/sqlitelike.py,sha256=v0xh9jWirHzhDVq26C2213LxfaDbRulSAhSHaTiZ24c,12283
19
+ chdb/udf/__init__.py,sha256=qSMaPEre7w1pYz8uJ-iZtuu8wYOUNRcI_8UNuaOymGE,80
20
+ chdb/udf/udf.py,sha256=z0A1RmyZrx55bykpvvS-LpVt1lMrQOexjvU5zxCdCSA,3935
21
+ chdb/utils/__init__.py,sha256=tXRcwBRGW2YQNBZWV4Mitw5QlCu_qlSRCjllw15XHbs,171
22
+ chdb/utils/trace.py,sha256=W-pvDoKlnzq6H_7FiWjr5_teN40UNE4E5--zbUrjOIc,2511
23
+ chdb/utils/types.py,sha256=MGLFIjoDvu7Uc2Wy8EDY60jjue66HmMPxbhrujjrZxQ,7530
24
+ chdb-3.4.1.dist-info/METADATA,sha256=uFmfdxDkm0eBkLJcMsBKZdxjfRrPccIOjYHBxmPw2mQ,24690
25
+ chdb-3.4.1.dist-info/WHEEL,sha256=aSgG0F4rGPZtV0iTEIfy6dtHq6g67Lze3uLfk0vWn88,151
26
+ chdb-3.4.1.dist-info/top_level.txt,sha256=se0Jj0A2-ijfMW51hIjiuNyDJPqy5xJU1G8a_IEdllI,11
27
+ chdb-3.4.1.dist-info/RECORD,,
28
+ chdb-3.4.1.dist-info/licenses/LICENSE.txt,sha256=isYVtNCO5910aj6e9bJJ6kQceivkLqsMlFSNYwzGGKI,11366
@@ -0,0 +1,6 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (80.9.0)
3
+ Root-Is-Purelib: false
4
+ Tag: cp312-cp312-manylinux_2_17_x86_64
5
+ Tag: cp312-cp312-manylinux2014_x86_64
6
+