streaming-sql-engine 0.1.1__tar.gz → 0.1.2__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.
- {streaming_sql_engine-0.1.1/streaming_sql_engine.egg-info → streaming_sql_engine-0.1.2}/PKG-INFO +72 -1
- {streaming_sql_engine-0.1.1 → streaming_sql_engine-0.1.2}/README.md +71 -0
- {streaming_sql_engine-0.1.1 → streaming_sql_engine-0.1.2}/pyproject.toml +1 -1
- {streaming_sql_engine-0.1.1 → streaming_sql_engine-0.1.2}/setup.py +1 -1
- {streaming_sql_engine-0.1.1 → streaming_sql_engine-0.1.2}/streaming_sql_engine/__init__.py +1 -1
- {streaming_sql_engine-0.1.1 → streaming_sql_engine-0.1.2/streaming_sql_engine.egg-info}/PKG-INFO +72 -1
- {streaming_sql_engine-0.1.1 → streaming_sql_engine-0.1.2}/LICENSE +0 -0
- {streaming_sql_engine-0.1.1 → streaming_sql_engine-0.1.2}/MANIFEST.in +0 -0
- {streaming_sql_engine-0.1.1 → streaming_sql_engine-0.1.2}/documentation/APACHE_DRILL_COMPARISON.md +0 -0
- {streaming_sql_engine-0.1.1 → streaming_sql_engine-0.1.2}/documentation/API_JOIN_OPERATIONS.md +0 -0
- {streaming_sql_engine-0.1.1 → streaming_sql_engine-0.1.2}/documentation/BEST_USE_CASES.md +0 -0
- {streaming_sql_engine-0.1.1 → streaming_sql_engine-0.1.2}/documentation/COMPREHENSIVE_DOCUMENTATION.md +0 -0
- {streaming_sql_engine-0.1.1 → streaming_sql_engine-0.1.2}/documentation/DEVELOPER_GUIDE.md +0 -0
- {streaming_sql_engine-0.1.1 → streaming_sql_engine-0.1.2}/documentation/DUCKDB_COMPARISON.md +0 -0
- {streaming_sql_engine-0.1.1 → streaming_sql_engine-0.1.2}/documentation/HOW_TO_ADD_TO_PROJECT.md +0 -0
- {streaming_sql_engine-0.1.1 → streaming_sql_engine-0.1.2}/documentation/INSTALLATION.md +0 -0
- {streaming_sql_engine-0.1.1 → streaming_sql_engine-0.1.2}/documentation/MULTI_SOURCE_EXAMPLE_README.md +0 -0
- {streaming_sql_engine-0.1.1 → streaming_sql_engine-0.1.2}/documentation/MYSQL_USAGE.md +0 -0
- {streaming_sql_engine-0.1.1 → streaming_sql_engine-0.1.2}/documentation/PERFORMANCE.md +0 -0
- {streaming_sql_engine-0.1.1 → streaming_sql_engine-0.1.2}/documentation/QUICK_START.md +0 -0
- {streaming_sql_engine-0.1.1 → streaming_sql_engine-0.1.2}/documentation/TECHNICAL_DOCUMENTATION.md +0 -0
- {streaming_sql_engine-0.1.1 → streaming_sql_engine-0.1.2}/documentation/USER_GUIDE.md +0 -0
- {streaming_sql_engine-0.1.1 → streaming_sql_engine-0.1.2}/requirements.txt +0 -0
- {streaming_sql_engine-0.1.1 → streaming_sql_engine-0.1.2}/setup.cfg +0 -0
- {streaming_sql_engine-0.1.1 → streaming_sql_engine-0.1.2}/streaming_sql_engine/db_connector.py +0 -0
- {streaming_sql_engine-0.1.1 → streaming_sql_engine-0.1.2}/streaming_sql_engine/engine.py +0 -0
- {streaming_sql_engine-0.1.1 → streaming_sql_engine-0.1.2}/streaming_sql_engine/evaluator.py +0 -0
- {streaming_sql_engine-0.1.1 → streaming_sql_engine-0.1.2}/streaming_sql_engine/executor.py +0 -0
- {streaming_sql_engine-0.1.1 → streaming_sql_engine-0.1.2}/streaming_sql_engine/jsonl_executor.py +0 -0
- {streaming_sql_engine-0.1.1 → streaming_sql_engine-0.1.2}/streaming_sql_engine/operators.py +0 -0
- {streaming_sql_engine-0.1.1 → streaming_sql_engine-0.1.2}/streaming_sql_engine/parser.py +0 -0
- {streaming_sql_engine-0.1.1 → streaming_sql_engine-0.1.2}/streaming_sql_engine/planner.py +0 -0
- {streaming_sql_engine-0.1.1 → streaming_sql_engine-0.1.2}/streaming_sql_engine.egg-info/SOURCES.txt +0 -0
- {streaming_sql_engine-0.1.1 → streaming_sql_engine-0.1.2}/streaming_sql_engine.egg-info/dependency_links.txt +0 -0
- {streaming_sql_engine-0.1.1 → streaming_sql_engine-0.1.2}/streaming_sql_engine.egg-info/requires.txt +0 -0
- {streaming_sql_engine-0.1.1 → streaming_sql_engine-0.1.2}/streaming_sql_engine.egg-info/top_level.txt +0 -0
{streaming_sql_engine-0.1.1/streaming_sql_engine.egg-info → streaming_sql_engine-0.1.2}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: streaming-sql-engine
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Summary: A lightweight SQL execution engine for streaming row-by-row queries with joins
|
|
5
5
|
Home-page: https://github.com/Ierofantis/streaming-sql-engine
|
|
6
6
|
Author: Ierofantis
|
|
@@ -42,6 +42,77 @@ Dynamic: requires-python
|
|
|
42
42
|
|
|
43
43
|
A lightweight Python library for executing SQL queries with joins in a streaming, row-by-row fashion without loading full tables into memory.
|
|
44
44
|
|
|
45
|
+
## What This Library Does
|
|
46
|
+
|
|
47
|
+
**Streaming SQL Join Engine** is a Python library that lets you write SQL queries to join data from **any source** - CSV files, REST APIs, database tables, JSON files, or custom Python functions - **without copying or loading the data into a database first**.
|
|
48
|
+
|
|
49
|
+
### The Core Problem It Solves
|
|
50
|
+
|
|
51
|
+
Traditionally, to join data from different sources (like multiple APIs, CSV files, or databases), you need to:
|
|
52
|
+
|
|
53
|
+
1. Extract data from each source
|
|
54
|
+
2. Load it into a database or data warehouse
|
|
55
|
+
3. Write SQL queries against that database
|
|
56
|
+
4. Export the results
|
|
57
|
+
|
|
58
|
+
This library eliminates steps 2 and 4. You can write SQL queries directly against your original data sources, and the engine processes them row-by-row in memory, streaming results as they're computed.
|
|
59
|
+
|
|
60
|
+
### How It Works
|
|
61
|
+
|
|
62
|
+
1. **Register Data Sources**: You register any Python function that yields dictionaries (rows) as a "table":
|
|
63
|
+
|
|
64
|
+
```python
|
|
65
|
+
def my_api_source():
|
|
66
|
+
response = requests.get("https://api.example.com/data")
|
|
67
|
+
for item in response.json():
|
|
68
|
+
yield {"id": item["id"], "name": item["name"]}
|
|
69
|
+
|
|
70
|
+
engine.register("my_table", my_api_source)
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
2. **Write SQL Queries**: Use standard SQL syntax to join and filter:
|
|
74
|
+
|
|
75
|
+
```python
|
|
76
|
+
query = """
|
|
77
|
+
SELECT t1.name, t2.value
|
|
78
|
+
FROM table1 t1
|
|
79
|
+
JOIN table2 t2 ON t1.id = t2.id
|
|
80
|
+
WHERE t1.status = 'active'
|
|
81
|
+
"""
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
3. **Stream Results**: The engine processes your query row-by-row, yielding results as they're computed:
|
|
85
|
+
```python
|
|
86
|
+
for row in engine.query(query):
|
|
87
|
+
print(row) # Process each row immediately, no waiting for full result set
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
### Key Characteristics
|
|
91
|
+
|
|
92
|
+
- **No Data Copying**: Data stays in its original source (API, file, database). Only the data needed for joins is temporarily cached.
|
|
93
|
+
- **Memory Efficient**: Uses iterator pipelines - processes one row at a time instead of loading entire tables.
|
|
94
|
+
- **Source Agnostic**: Works with any data source you can write a Python function for (APIs, CSVs, databases, JSON files, etc.).
|
|
95
|
+
- **SQL Interface**: Familiar SQL syntax for joins and filtering, even when joining data from completely different systems.
|
|
96
|
+
- **Streaming Execution**: Results are yielded immediately as they're computed, enabling real-time processing of large datasets.
|
|
97
|
+
|
|
98
|
+
### Use Cases
|
|
99
|
+
|
|
100
|
+
- **API Data Integration**: Join data from multiple REST APIs without setting up a database
|
|
101
|
+
- **File Processing**: Join CSV files, JSON files, or other file formats using SQL
|
|
102
|
+
- **Cross-System Queries**: Query data from PostgreSQL, MySQL, APIs, and files in a single SQL query
|
|
103
|
+
- **Real-Time Analytics**: Process streaming data sources with SQL joins
|
|
104
|
+
- **ETL Simplification**: Replace complex ETL pipelines with simple SQL queries
|
|
105
|
+
- **Prototyping**: Quickly explore relationships between different data sources
|
|
106
|
+
|
|
107
|
+
### What Makes It Different
|
|
108
|
+
|
|
109
|
+
Unlike traditional databases or query engines:
|
|
110
|
+
|
|
111
|
+
- **No setup required**: No database server, no schema creation, no data loading
|
|
112
|
+
- **Works with live data**: Queries execute against current data from APIs or files
|
|
113
|
+
- **Minimal memory footprint**: Only caches what's needed for joins, not entire tables
|
|
114
|
+
- **Python-native**: Integrates seamlessly with Python code and data sources
|
|
115
|
+
|
|
45
116
|
## Features
|
|
46
117
|
|
|
47
118
|
- **Streaming execution**: Processes queries row-by-row using Python generators
|
|
@@ -2,6 +2,77 @@
|
|
|
2
2
|
|
|
3
3
|
A lightweight Python library for executing SQL queries with joins in a streaming, row-by-row fashion without loading full tables into memory.
|
|
4
4
|
|
|
5
|
+
## What This Library Does
|
|
6
|
+
|
|
7
|
+
**Streaming SQL Join Engine** is a Python library that lets you write SQL queries to join data from **any source** - CSV files, REST APIs, database tables, JSON files, or custom Python functions - **without copying or loading the data into a database first**.
|
|
8
|
+
|
|
9
|
+
### The Core Problem It Solves
|
|
10
|
+
|
|
11
|
+
Traditionally, to join data from different sources (like multiple APIs, CSV files, or databases), you need to:
|
|
12
|
+
|
|
13
|
+
1. Extract data from each source
|
|
14
|
+
2. Load it into a database or data warehouse
|
|
15
|
+
3. Write SQL queries against that database
|
|
16
|
+
4. Export the results
|
|
17
|
+
|
|
18
|
+
This library eliminates steps 2 and 4. You can write SQL queries directly against your original data sources, and the engine processes them row-by-row in memory, streaming results as they're computed.
|
|
19
|
+
|
|
20
|
+
### How It Works
|
|
21
|
+
|
|
22
|
+
1. **Register Data Sources**: You register any Python function that yields dictionaries (rows) as a "table":
|
|
23
|
+
|
|
24
|
+
```python
|
|
25
|
+
def my_api_source():
|
|
26
|
+
response = requests.get("https://api.example.com/data")
|
|
27
|
+
for item in response.json():
|
|
28
|
+
yield {"id": item["id"], "name": item["name"]}
|
|
29
|
+
|
|
30
|
+
engine.register("my_table", my_api_source)
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
2. **Write SQL Queries**: Use standard SQL syntax to join and filter:
|
|
34
|
+
|
|
35
|
+
```python
|
|
36
|
+
query = """
|
|
37
|
+
SELECT t1.name, t2.value
|
|
38
|
+
FROM table1 t1
|
|
39
|
+
JOIN table2 t2 ON t1.id = t2.id
|
|
40
|
+
WHERE t1.status = 'active'
|
|
41
|
+
"""
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
3. **Stream Results**: The engine processes your query row-by-row, yielding results as they're computed:
|
|
45
|
+
```python
|
|
46
|
+
for row in engine.query(query):
|
|
47
|
+
print(row) # Process each row immediately, no waiting for full result set
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### Key Characteristics
|
|
51
|
+
|
|
52
|
+
- **No Data Copying**: Data stays in its original source (API, file, database). Only the data needed for joins is temporarily cached.
|
|
53
|
+
- **Memory Efficient**: Uses iterator pipelines - processes one row at a time instead of loading entire tables.
|
|
54
|
+
- **Source Agnostic**: Works with any data source you can write a Python function for (APIs, CSVs, databases, JSON files, etc.).
|
|
55
|
+
- **SQL Interface**: Familiar SQL syntax for joins and filtering, even when joining data from completely different systems.
|
|
56
|
+
- **Streaming Execution**: Results are yielded immediately as they're computed, enabling real-time processing of large datasets.
|
|
57
|
+
|
|
58
|
+
### Use Cases
|
|
59
|
+
|
|
60
|
+
- **API Data Integration**: Join data from multiple REST APIs without setting up a database
|
|
61
|
+
- **File Processing**: Join CSV files, JSON files, or other file formats using SQL
|
|
62
|
+
- **Cross-System Queries**: Query data from PostgreSQL, MySQL, APIs, and files in a single SQL query
|
|
63
|
+
- **Real-Time Analytics**: Process streaming data sources with SQL joins
|
|
64
|
+
- **ETL Simplification**: Replace complex ETL pipelines with simple SQL queries
|
|
65
|
+
- **Prototyping**: Quickly explore relationships between different data sources
|
|
66
|
+
|
|
67
|
+
### What Makes It Different
|
|
68
|
+
|
|
69
|
+
Unlike traditional databases or query engines:
|
|
70
|
+
|
|
71
|
+
- **No setup required**: No database server, no schema creation, no data loading
|
|
72
|
+
- **Works with live data**: Queries execute against current data from APIs or files
|
|
73
|
+
- **Minimal memory footprint**: Only caches what's needed for joins, not entire tables
|
|
74
|
+
- **Python-native**: Integrates seamlessly with Python code and data sources
|
|
75
|
+
|
|
5
76
|
## Features
|
|
6
77
|
|
|
7
78
|
- **Streaming execution**: Processes queries row-by-row using Python generators
|
|
@@ -12,7 +12,7 @@ with open("requirements.txt", "r", encoding="utf-8") as fh:
|
|
|
12
12
|
|
|
13
13
|
setup(
|
|
14
14
|
name="streaming-sql-engine",
|
|
15
|
-
version="0.1.
|
|
15
|
+
version="0.1.2",
|
|
16
16
|
author="Ierofantis",
|
|
17
17
|
author_email="teopanta1986@gmail.com",
|
|
18
18
|
description="A lightweight SQL execution engine for streaming row-by-row queries with joins",
|
{streaming_sql_engine-0.1.1 → streaming_sql_engine-0.1.2/streaming_sql_engine.egg-info}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: streaming-sql-engine
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Summary: A lightweight SQL execution engine for streaming row-by-row queries with joins
|
|
5
5
|
Home-page: https://github.com/Ierofantis/streaming-sql-engine
|
|
6
6
|
Author: Ierofantis
|
|
@@ -42,6 +42,77 @@ Dynamic: requires-python
|
|
|
42
42
|
|
|
43
43
|
A lightweight Python library for executing SQL queries with joins in a streaming, row-by-row fashion without loading full tables into memory.
|
|
44
44
|
|
|
45
|
+
## What This Library Does
|
|
46
|
+
|
|
47
|
+
**Streaming SQL Join Engine** is a Python library that lets you write SQL queries to join data from **any source** - CSV files, REST APIs, database tables, JSON files, or custom Python functions - **without copying or loading the data into a database first**.
|
|
48
|
+
|
|
49
|
+
### The Core Problem It Solves
|
|
50
|
+
|
|
51
|
+
Traditionally, to join data from different sources (like multiple APIs, CSV files, or databases), you need to:
|
|
52
|
+
|
|
53
|
+
1. Extract data from each source
|
|
54
|
+
2. Load it into a database or data warehouse
|
|
55
|
+
3. Write SQL queries against that database
|
|
56
|
+
4. Export the results
|
|
57
|
+
|
|
58
|
+
This library eliminates steps 2 and 4. You can write SQL queries directly against your original data sources, and the engine processes them row-by-row in memory, streaming results as they're computed.
|
|
59
|
+
|
|
60
|
+
### How It Works
|
|
61
|
+
|
|
62
|
+
1. **Register Data Sources**: You register any Python function that yields dictionaries (rows) as a "table":
|
|
63
|
+
|
|
64
|
+
```python
|
|
65
|
+
def my_api_source():
|
|
66
|
+
response = requests.get("https://api.example.com/data")
|
|
67
|
+
for item in response.json():
|
|
68
|
+
yield {"id": item["id"], "name": item["name"]}
|
|
69
|
+
|
|
70
|
+
engine.register("my_table", my_api_source)
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
2. **Write SQL Queries**: Use standard SQL syntax to join and filter:
|
|
74
|
+
|
|
75
|
+
```python
|
|
76
|
+
query = """
|
|
77
|
+
SELECT t1.name, t2.value
|
|
78
|
+
FROM table1 t1
|
|
79
|
+
JOIN table2 t2 ON t1.id = t2.id
|
|
80
|
+
WHERE t1.status = 'active'
|
|
81
|
+
"""
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
3. **Stream Results**: The engine processes your query row-by-row, yielding results as they're computed:
|
|
85
|
+
```python
|
|
86
|
+
for row in engine.query(query):
|
|
87
|
+
print(row) # Process each row immediately, no waiting for full result set
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
### Key Characteristics
|
|
91
|
+
|
|
92
|
+
- **No Data Copying**: Data stays in its original source (API, file, database). Only the data needed for joins is temporarily cached.
|
|
93
|
+
- **Memory Efficient**: Uses iterator pipelines - processes one row at a time instead of loading entire tables.
|
|
94
|
+
- **Source Agnostic**: Works with any data source you can write a Python function for (APIs, CSVs, databases, JSON files, etc.).
|
|
95
|
+
- **SQL Interface**: Familiar SQL syntax for joins and filtering, even when joining data from completely different systems.
|
|
96
|
+
- **Streaming Execution**: Results are yielded immediately as they're computed, enabling real-time processing of large datasets.
|
|
97
|
+
|
|
98
|
+
### Use Cases
|
|
99
|
+
|
|
100
|
+
- **API Data Integration**: Join data from multiple REST APIs without setting up a database
|
|
101
|
+
- **File Processing**: Join CSV files, JSON files, or other file formats using SQL
|
|
102
|
+
- **Cross-System Queries**: Query data from PostgreSQL, MySQL, APIs, and files in a single SQL query
|
|
103
|
+
- **Real-Time Analytics**: Process streaming data sources with SQL joins
|
|
104
|
+
- **ETL Simplification**: Replace complex ETL pipelines with simple SQL queries
|
|
105
|
+
- **Prototyping**: Quickly explore relationships between different data sources
|
|
106
|
+
|
|
107
|
+
### What Makes It Different
|
|
108
|
+
|
|
109
|
+
Unlike traditional databases or query engines:
|
|
110
|
+
|
|
111
|
+
- **No setup required**: No database server, no schema creation, no data loading
|
|
112
|
+
- **Works with live data**: Queries execute against current data from APIs or files
|
|
113
|
+
- **Minimal memory footprint**: Only caches what's needed for joins, not entire tables
|
|
114
|
+
- **Python-native**: Integrates seamlessly with Python code and data sources
|
|
115
|
+
|
|
45
116
|
## Features
|
|
46
117
|
|
|
47
118
|
- **Streaming execution**: Processes queries row-by-row using Python generators
|
|
File without changes
|
|
File without changes
|
{streaming_sql_engine-0.1.1 → streaming_sql_engine-0.1.2}/documentation/APACHE_DRILL_COMPARISON.md
RENAMED
|
File without changes
|
{streaming_sql_engine-0.1.1 → streaming_sql_engine-0.1.2}/documentation/API_JOIN_OPERATIONS.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{streaming_sql_engine-0.1.1 → streaming_sql_engine-0.1.2}/documentation/DUCKDB_COMPARISON.md
RENAMED
|
File without changes
|
{streaming_sql_engine-0.1.1 → streaming_sql_engine-0.1.2}/documentation/HOW_TO_ADD_TO_PROJECT.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{streaming_sql_engine-0.1.1 → streaming_sql_engine-0.1.2}/documentation/TECHNICAL_DOCUMENTATION.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{streaming_sql_engine-0.1.1 → streaming_sql_engine-0.1.2}/streaming_sql_engine/db_connector.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{streaming_sql_engine-0.1.1 → streaming_sql_engine-0.1.2}/streaming_sql_engine/jsonl_executor.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{streaming_sql_engine-0.1.1 → streaming_sql_engine-0.1.2}/streaming_sql_engine.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{streaming_sql_engine-0.1.1 → streaming_sql_engine-0.1.2}/streaming_sql_engine.egg-info/requires.txt
RENAMED
|
File without changes
|
|
File without changes
|