streaming-sql-engine 0.1.3__tar.gz → 0.1.6__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.
Files changed (89) hide show
  1. streaming_sql_engine-0.1.6/DEPLOYMENT.md +154 -0
  2. streaming_sql_engine-0.1.6/MANIFEST.in +11 -0
  3. streaming_sql_engine-0.1.6/PKG-INFO +581 -0
  4. streaming_sql_engine-0.1.6/QUICK_DEPLOY.md +82 -0
  5. streaming_sql_engine-0.1.6/QUICK_FIX.md +53 -0
  6. streaming_sql_engine-0.1.6/README.md +533 -0
  7. streaming_sql_engine-0.1.6/__init__.py +31 -0
  8. streaming_sql_engine-0.1.6/documentation/ARCHITECTURAL_RECOMMENDATION.md +449 -0
  9. streaming_sql_engine-0.1.6/documentation/ARCHITECTURE_DECISION.md +329 -0
  10. streaming_sql_engine-0.1.6/documentation/ARCHITECTURE_SYNCED.md +77 -0
  11. streaming_sql_engine-0.1.6/documentation/BETTER_FILTER_APPROACH.md +189 -0
  12. streaming_sql_engine-0.1.6/documentation/CHANGES_SUMMARY.md +240 -0
  13. streaming_sql_engine-0.1.6/documentation/FINAL_IMPLEMENTATION_RECOMMENDATIONS.md +601 -0
  14. streaming_sql_engine-0.1.6/documentation/FINAL_RECOMMENDATION.md +406 -0
  15. streaming_sql_engine-0.1.6/documentation/HOW_PROTOCOL_DETECTION_WORKS.md +305 -0
  16. streaming_sql_engine-0.1.6/documentation/JSONL_EXECUTOR_ANALYSIS.md +232 -0
  17. streaming_sql_engine-0.1.6/documentation/JSONL_EXECUTOR_REMOVED.md +99 -0
  18. streaming_sql_engine-0.1.6/documentation/LIBRARY_DOCUMENTATION.md +495 -0
  19. streaming_sql_engine-0.1.6/documentation/MIGRATION_GUIDE.md +260 -0
  20. streaming_sql_engine-0.1.6/documentation/OPTIMIZATIONS_BREAKDOWN.md +294 -0
  21. streaming_sql_engine-0.1.6/documentation/OPTIMIZATIONS_NOT_DATABASE_ONLY.md +288 -0
  22. streaming_sql_engine-0.1.6/documentation/OPTIMIZATIONS_VS_POLARS.md +421 -0
  23. streaming_sql_engine-0.1.6/documentation/OPTIMIZER_AUTOMATED.md +187 -0
  24. streaming_sql_engine-0.1.6/documentation/PERFORMANCE_COMPARISON.md +353 -0
  25. streaming_sql_engine-0.1.6/documentation/POLARS_AND_MMAP_GUIDE.md +329 -0
  26. streaming_sql_engine-0.1.6/documentation/PROTOCOL_AND_OPTIMIZATIONS_EXPLAINED.md +338 -0
  27. streaming_sql_engine-0.1.6/documentation/PROTOCOL_EXPLANATION.md +220 -0
  28. streaming_sql_engine-0.1.6/documentation/PUBLISHING.md +206 -0
  29. streaming_sql_engine-0.1.6/documentation/PYPI_CHECKLIST.md +148 -0
  30. streaming_sql_engine-0.1.6/documentation/QUICK_PUBLISH.md +88 -0
  31. streaming_sql_engine-0.1.6/documentation/SIMPLE_PROTOCOL_GUIDE.md +271 -0
  32. streaming_sql_engine-0.1.6/documentation/SIMPLE_SOURCE_FUNCTIONS.md +138 -0
  33. streaming_sql_engine-0.1.6/documentation/SOURCE_COMBINATIONS_GUIDE.md +744 -0
  34. streaming_sql_engine-0.1.6/documentation/WHAT_IS_WHERE_TO_PARAMS.md +200 -0
  35. streaming_sql_engine-0.1.6/documentation/WHY_API_CONVERTER_NEEDED.md +228 -0
  36. streaming_sql_engine-0.1.6/documentation/WHY_MANUAL_PARSING.md +182 -0
  37. streaming_sql_engine-0.1.6/documentation/WHY_PROTOCOL_IN_SOURCES.md +262 -0
  38. {streaming_sql_engine-0.1.3 → streaming_sql_engine-0.1.6}/engine.py +20 -16
  39. {streaming_sql_engine-0.1.3 → streaming_sql_engine-0.1.6}/executor.py +133 -41
  40. {streaming_sql_engine-0.1.3 → streaming_sql_engine-0.1.6}/optimizer.py +121 -0
  41. streaming_sql_engine-0.1.6/polars_operators.py +280 -0
  42. streaming_sql_engine-0.1.6/protocol_helpers.py +493 -0
  43. {streaming_sql_engine-0.1.3 → streaming_sql_engine-0.1.6}/pyproject.toml +24 -13
  44. {streaming_sql_engine-0.1.3 → streaming_sql_engine-0.1.6}/setup.py +18 -5
  45. streaming_sql_engine-0.1.6/streaming_sql_engine.egg-info/PKG-INFO +581 -0
  46. streaming_sql_engine-0.1.6/streaming_sql_engine.egg-info/SOURCES.txt +91 -0
  47. {streaming_sql_engine-0.1.3 → streaming_sql_engine-0.1.6}/streaming_sql_engine.egg-info/requires.txt +10 -5
  48. streaming_sql_engine-0.1.3/PKG-INFO +0 -320
  49. streaming_sql_engine-0.1.3/README.md +0 -275
  50. streaming_sql_engine-0.1.3/__init__.py +0 -30
  51. streaming_sql_engine-0.1.3/db_connector.py +0 -377
  52. streaming_sql_engine-0.1.3/jsonl_executor.py +0 -393
  53. streaming_sql_engine-0.1.3/streaming_sql_engine/__init__.py +0 -36
  54. streaming_sql_engine-0.1.3/streaming_sql_engine/db_connector.py +0 -594
  55. streaming_sql_engine-0.1.3/streaming_sql_engine/engine.py +0 -119
  56. streaming_sql_engine-0.1.3/streaming_sql_engine/evaluator.py +0 -218
  57. streaming_sql_engine-0.1.3/streaming_sql_engine/executor.py +0 -318
  58. streaming_sql_engine-0.1.3/streaming_sql_engine/jsonl_executor.py +0 -393
  59. streaming_sql_engine-0.1.3/streaming_sql_engine/operators.py +0 -507
  60. streaming_sql_engine-0.1.3/streaming_sql_engine/parser.py +0 -93
  61. streaming_sql_engine-0.1.3/streaming_sql_engine/planner.py +0 -172
  62. streaming_sql_engine-0.1.3/streaming_sql_engine.egg-info/PKG-INFO +0 -320
  63. streaming_sql_engine-0.1.3/streaming_sql_engine.egg-info/SOURCES.txt +0 -60
  64. {streaming_sql_engine-0.1.3 → streaming_sql_engine-0.1.6}/documentation/APACHE_DRILL_COMPARISON.md +0 -0
  65. {streaming_sql_engine-0.1.3 → streaming_sql_engine-0.1.6}/documentation/API_JOIN_OPERATIONS.md +0 -0
  66. {streaming_sql_engine-0.1.3 → streaming_sql_engine-0.1.6}/documentation/BEST_USE_CASES.md +0 -0
  67. {streaming_sql_engine-0.1.3 → streaming_sql_engine-0.1.6}/documentation/COMPREHENSIVE_DOCUMENTATION.md +0 -0
  68. {streaming_sql_engine-0.1.3 → streaming_sql_engine-0.1.6}/documentation/DEVELOPER_GUIDE.md +0 -0
  69. {streaming_sql_engine-0.1.3 → streaming_sql_engine-0.1.6}/documentation/DUCKDB_COMPARISON.md +0 -0
  70. {streaming_sql_engine-0.1.3 → streaming_sql_engine-0.1.6}/documentation/HOW_TO_ADD_TO_PROJECT.md +0 -0
  71. {streaming_sql_engine-0.1.3 → streaming_sql_engine-0.1.6}/documentation/INSTALLATION.md +0 -0
  72. {streaming_sql_engine-0.1.3 → streaming_sql_engine-0.1.6}/documentation/MULTI_SOURCE_EXAMPLE_README.md +0 -0
  73. {streaming_sql_engine-0.1.3 → streaming_sql_engine-0.1.6}/documentation/MYSQL_USAGE.md +0 -0
  74. {streaming_sql_engine-0.1.3 → streaming_sql_engine-0.1.6}/documentation/PERFORMANCE.md +0 -0
  75. {streaming_sql_engine-0.1.3 → streaming_sql_engine-0.1.6}/documentation/QUICK_START.md +0 -0
  76. {streaming_sql_engine-0.1.3 → streaming_sql_engine-0.1.6}/documentation/TECHNICAL_DOCUMENTATION.md +0 -0
  77. {streaming_sql_engine-0.1.3 → streaming_sql_engine-0.1.6}/documentation/USER_GUIDE.md +0 -0
  78. {streaming_sql_engine-0.1.3 → streaming_sql_engine-0.1.6}/evaluator.py +0 -0
  79. {streaming_sql_engine-0.1.3 → streaming_sql_engine-0.1.6}/mmap_index.py +0 -0
  80. {streaming_sql_engine-0.1.3 → streaming_sql_engine-0.1.6}/operators.py +0 -0
  81. {streaming_sql_engine-0.1.3 → streaming_sql_engine-0.1.6}/operators_mmap.py +0 -0
  82. {streaming_sql_engine-0.1.3 → streaming_sql_engine-0.1.6}/operators_polars.py +0 -0
  83. {streaming_sql_engine-0.1.3 → streaming_sql_engine-0.1.6}/parser.py +0 -0
  84. {streaming_sql_engine-0.1.3 → streaming_sql_engine-0.1.6}/planner.py +0 -0
  85. {streaming_sql_engine-0.1.3 → streaming_sql_engine-0.1.6}/polars_expression_translator.py +0 -0
  86. {streaming_sql_engine-0.1.3 → streaming_sql_engine-0.1.6}/requirements.txt +0 -0
  87. {streaming_sql_engine-0.1.3 → streaming_sql_engine-0.1.6}/setup.cfg +0 -0
  88. {streaming_sql_engine-0.1.3 → streaming_sql_engine-0.1.6}/streaming_sql_engine.egg-info/dependency_links.txt +0 -0
  89. {streaming_sql_engine-0.1.3 → streaming_sql_engine-0.1.6}/streaming_sql_engine.egg-info/top_level.txt +0 -0
@@ -0,0 +1,154 @@
1
+ # Deploying to PyPI
2
+
3
+ ## Prerequisites
4
+
5
+ 1. **PyPI Account**: Create an account at https://pypi.org/account/register/
6
+ 2. **TestPyPI Account** (optional, for testing): https://test.pypi.org/account/register/
7
+ 3. **Install build tools**:
8
+ ```bash
9
+ pip install build twine
10
+ ```
11
+
12
+ ## Step 1: Update Version
13
+
14
+ Before deploying, update the version in:
15
+ - `pyproject.toml` (version field)
16
+ - `setup.py` (version field)
17
+ - `__init__.py` (__version__ variable)
18
+
19
+ Current version: **0.1.4**
20
+
21
+ ## Step 2: Clean Previous Builds
22
+
23
+ ```bash
24
+ # Remove old build artifacts
25
+ rm -rf build/
26
+ rm -rf dist/
27
+ rm -rf *.egg-info
28
+ rm -rf streaming_sql_engine.egg-info/
29
+ ```
30
+
31
+ ## Step 3: Build the Package
32
+
33
+ ```bash
34
+ # Build source distribution and wheel
35
+ python -m build
36
+ ```
37
+
38
+ This creates:
39
+ - `dist/streaming-sql-engine-0.1.4.tar.gz` (source distribution)
40
+ - `dist/streaming-sql-engine-0.1.4-py3-none-any.whl` (wheel)
41
+
42
+ ## Step 4: Test the Build (Optional but Recommended)
43
+
44
+ ### Test on TestPyPI first:
45
+
46
+ ```bash
47
+ # Upload to TestPyPI
48
+ python -m twine upload --repository testpypi dist/*
49
+
50
+ # Test installation from TestPyPI
51
+ pip install --index-url https://test.pypi.org/simple/ streaming-sql-engine
52
+ ```
53
+
54
+ ### Test locally:
55
+
56
+ ```bash
57
+ # Install from local build
58
+ pip install dist/streaming-sql-engine-0.1.4-py3-none-any.whl
59
+
60
+ # Test import
61
+ python -c "from streaming_sql_engine import Engine; print('✅ Import successful!')"
62
+ ```
63
+
64
+ ## Step 5: Upload to PyPI
65
+
66
+ ### Option A: Upload to TestPyPI First (Recommended)
67
+
68
+ ```bash
69
+ # Upload to TestPyPI
70
+ python -m twine upload --repository testpypi dist/*
71
+ ```
72
+
73
+ You'll be prompted for:
74
+ - Username: Your PyPI username
75
+ - Password: Your PyPI password (or API token)
76
+
77
+ ### Option B: Upload Directly to PyPI
78
+
79
+ ```bash
80
+ # Upload to PyPI
81
+ python -m twine upload dist/*
82
+ ```
83
+
84
+ ## Step 6: Verify Installation
85
+
86
+ After uploading, wait a few minutes for PyPI to process, then test:
87
+
88
+ ```bash
89
+ # Install from PyPI
90
+ pip install streaming-sql-engine
91
+
92
+ # Or with optional dependencies
93
+ pip install streaming-sql-engine[polars]
94
+ pip install streaming-sql-engine[db]
95
+ pip install streaming-sql-engine[all]
96
+
97
+ # Test import
98
+ python -c "from streaming_sql_engine import Engine, register_file_source; print('✅ Import successful!')"
99
+ ```
100
+
101
+ ## Using API Tokens (More Secure)
102
+
103
+ Instead of using your password, create an API token:
104
+
105
+ 1. Go to https://pypi.org/manage/account/
106
+ 2. Scroll to "API tokens"
107
+ 3. Create a new token with scope "Entire account" or specific project
108
+ 4. Use the token as username: `__token__` and password: `pypi-...` (the token)
109
+
110
+ ## Troubleshooting
111
+
112
+ ### "Package already exists"
113
+ - Increment version number in `pyproject.toml`, `setup.py`, and `__init__.py`
114
+
115
+ ### "Invalid distribution"
116
+ - Make sure all required files are included
117
+ - Check `MANIFEST.in` includes necessary files
118
+ - Verify `pyproject.toml` is valid
119
+
120
+ ### "Module not found" after installation
121
+ - Check `package_dir` in `setup.py` matches your structure
122
+ - Verify `__init__.py` is in the correct location
123
+ - Check that all Python files are included
124
+
125
+ ## Quick Deploy Script
126
+
127
+ Create a `deploy.sh` script:
128
+
129
+ ```bash
130
+ #!/bin/bash
131
+ set -e
132
+
133
+ echo "🧹 Cleaning old builds..."
134
+ rm -rf build/ dist/ *.egg-info streaming_sql_engine.egg-info/
135
+
136
+ echo "📦 Building package..."
137
+ python -m build
138
+
139
+ echo "📤 Uploading to PyPI..."
140
+ python -m twine upload dist/*
141
+
142
+ echo "✅ Deployment complete!"
143
+ echo "Test with: pip install streaming-sql-engine"
144
+ ```
145
+
146
+ Make it executable: `chmod +x deploy.sh`
147
+
148
+ ## Version History
149
+
150
+ - **0.1.4** - Current version with protocol helpers and WHERE clause pushdown to joined tables
151
+ - **0.1.3** - Previous version
152
+ - **0.1.2** - Previous version
153
+ - **0.1.0** - Initial release
154
+
@@ -0,0 +1,11 @@
1
+ include README.md
2
+ include LICENSE
3
+ include requirements.txt
4
+ include pyproject.toml
5
+ recursive-include documentation *.md
6
+ recursive-exclude examples *.jsonl
7
+ recursive-exclude examples *.csv
8
+ recursive-exclude examples __pycache__
9
+ recursive-exclude * __pycache__
10
+ recursive-exclude * *.pyc
11
+