Skip to content

Commit 08e3b38

Browse files
committed
Conecta: Add index page
1 parent 0d6d981 commit 08e3b38

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

docs/integrate/conecta/index.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
(conecta)=
2+
# Conecta
3+
4+
:::{rubric} About
5+
:::
6+
7+
[Conecta] is a library designed to load data from SQL databases into Arrow
8+
with maximum speed and memory efficiency by leveraging zero-copy and true
9+
concurrency in Python.
10+
11+
:::{rubric} Install
12+
:::
13+
```shell
14+
uv pip install --upgrade conecta pyarrow
15+
```
16+
17+
:::{rubric} Usage
18+
:::
19+
20+
```python
21+
from pprint import pprint
22+
from conecta import read_sql
23+
24+
table = read_sql(
25+
"postgres://crate:crate@localhost:5432/doc",
26+
queries=["SELECT country, region, mountain, height, latitude(coordinates), longitude(coordinates) FROM sys.summits ORDER BY height DESC LIMIT 3"],
27+
)
28+
29+
pprint(table.to_pylist())
30+
```
31+
32+
```python
33+
[{'country': 'FR/IT',
34+
'height': 4808,
35+
'latitude': 45.8325,
36+
'longitude': 6.86444,
37+
'mountain': 'Mont Blanc',
38+
'region': 'Mont Blanc massif'},
39+
{'country': 'CH',
40+
'height': 4634,
41+
'latitude': 45.93694,
42+
'longitude': 7.86694,
43+
'mountain': 'Monte Rosa',
44+
'region': 'Monte Rosa Alps'},
45+
{'country': 'CH',
46+
'height': 4545,
47+
'latitude': 46.09389,
48+
'longitude': 7.85889,
49+
'mountain': 'Dom',
50+
'region': 'Mischabel'}]
51+
```
52+
53+
54+
[Conecta]: https://pypi.org/project/conecta/

0 commit comments

Comments
 (0)