chumoli 0.1.1__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 (61) hide show
  1. chumoli-0.1.1/.gitignore +43 -0
  2. chumoli-0.1.1/CHANGELOG.md +86 -0
  3. chumoli-0.1.1/LICENSE +204 -0
  4. chumoli-0.1.1/PKG-INFO +199 -0
  5. chumoli-0.1.1/README.md +151 -0
  6. chumoli-0.1.1/docs/skills/README.md +19 -0
  7. chumoli-0.1.1/pyproject.toml +89 -0
  8. chumoli-0.1.1/src/chumoli/__init__.py +3 -0
  9. chumoli-0.1.1/src/chumoli/api/__init__.py +1 -0
  10. chumoli-0.1.1/src/chumoli/api/app.py +934 -0
  11. chumoli-0.1.1/src/chumoli/cli.py +188 -0
  12. chumoli-0.1.1/src/chumoli/connectors/__init__.py +51 -0
  13. chumoli-0.1.1/src/chumoli/connectors/base.py +135 -0
  14. chumoli-0.1.1/src/chumoli/connectors/bitrix24/__init__.py +1 -0
  15. chumoli-0.1.1/src/chumoli/connectors/bitrix24/connector.py +292 -0
  16. chumoli-0.1.1/src/chumoli/connectors/click_uz/__init__.py +0 -0
  17. chumoli-0.1.1/src/chumoli/connectors/click_uz/connector.py +192 -0
  18. chumoli-0.1.1/src/chumoli/connectors/didox/__init__.py +0 -0
  19. chumoli-0.1.1/src/chumoli/connectors/didox/connector.py +299 -0
  20. chumoli-0.1.1/src/chumoli/connectors/facebook_ads/__init__.py +1 -0
  21. chumoli-0.1.1/src/chumoli/connectors/facebook_ads/connector.py +283 -0
  22. chumoli-0.1.1/src/chumoli/connectors/filesystem_s3/__init__.py +1 -0
  23. chumoli-0.1.1/src/chumoli/connectors/filesystem_s3/connector.py +223 -0
  24. chumoli-0.1.1/src/chumoli/connectors/moysklad/__init__.py +1 -0
  25. chumoli-0.1.1/src/chumoli/connectors/moysklad/connector.py +288 -0
  26. chumoli-0.1.1/src/chumoli/connectors/payme_uz/__init__.py +0 -0
  27. chumoli-0.1.1/src/chumoli/connectors/payme_uz/connector.py +237 -0
  28. chumoli-0.1.1/src/chumoli/connectors/rest_api/__init__.py +0 -0
  29. chumoli-0.1.1/src/chumoli/connectors/rest_api/connector.py +282 -0
  30. chumoli-0.1.1/src/chumoli/connectors/sql_database/__init__.py +0 -0
  31. chumoli-0.1.1/src/chumoli/connectors/sql_database/connector.py +535 -0
  32. chumoli-0.1.1/src/chumoli/connectors/synthetic_volume/__init__.py +0 -0
  33. chumoli-0.1.1/src/chumoli/connectors/synthetic_volume/connector.py +101 -0
  34. chumoli-0.1.1/src/chumoli/connectors/uzum_market/__init__.py +0 -0
  35. chumoli-0.1.1/src/chumoli/connectors/uzum_market/connector.py +147 -0
  36. chumoli-0.1.1/src/chumoli/core/__init__.py +0 -0
  37. chumoli-0.1.1/src/chumoli/core/config.py +130 -0
  38. chumoli-0.1.1/src/chumoli/core/cursor_utils.py +60 -0
  39. chumoli-0.1.1/src/chumoli/core/demo_data.py +175 -0
  40. chumoli-0.1.1/src/chumoli/core/destinations.py +164 -0
  41. chumoli-0.1.1/src/chumoli/core/errors.py +60 -0
  42. chumoli-0.1.1/src/chumoli/core/folder_picker.py +114 -0
  43. chumoli-0.1.1/src/chumoli/core/identifiers.py +75 -0
  44. chumoli-0.1.1/src/chumoli/core/logging_setup.py +89 -0
  45. chumoli-0.1.1/src/chumoli/core/manifest.py +202 -0
  46. chumoli-0.1.1/src/chumoli/core/notify.py +160 -0
  47. chumoli-0.1.1/src/chumoli/core/paths.py +275 -0
  48. chumoli-0.1.1/src/chumoli/core/pipeline_runner.py +1105 -0
  49. chumoli-0.1.1/src/chumoli/core/quality.py +423 -0
  50. chumoli-0.1.1/src/chumoli/core/retry_policy.py +88 -0
  51. chumoli-0.1.1/src/chumoli/core/row_counts.py +101 -0
  52. chumoli-0.1.1/src/chumoli/core/run_queue.py +212 -0
  53. chumoli-0.1.1/src/chumoli/core/scheduler.py +201 -0
  54. chumoli-0.1.1/src/chumoli/core/sql_cursor_check.py +102 -0
  55. chumoli-0.1.1/src/chumoli/security/__init__.py +0 -0
  56. chumoli-0.1.1/src/chumoli/security/api_key.py +60 -0
  57. chumoli-0.1.1/src/chumoli/security/crypto.py +121 -0
  58. chumoli-0.1.1/src/chumoli/static/index.html +2268 -0
  59. chumoli-0.1.1/src/chumoli/store/__init__.py +0 -0
  60. chumoli-0.1.1/src/chumoli/store/control_store.py +298 -0
  61. chumoli-0.1.1/src/chumoli/store/run_store.py +272 -0
@@ -0,0 +1,43 @@
1
+ # Python
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+ *.egg-info/
6
+ .eggs/
7
+ build/
8
+ dist/
9
+
10
+ # Virtual environments
11
+ .venv/
12
+ venv/
13
+ env/
14
+
15
+ # Test / coverage
16
+ .pytest_cache/
17
+ .coverage
18
+ htmlcov/
19
+
20
+ # Chumoli runtime data — HECH QACHON commit qilinmasligi kerak:
21
+ # bular foydalanuvchining shifrlash kaliti va pipeline credentiallarini
22
+ # o'z ichiga oladi (qarang: src/chumoli/security/crypto.py,
23
+ # src/chumoli/store/control_store.py)
24
+ *.duckdb
25
+ *.duckdb.wal
26
+ *.sqlite
27
+ *.sqlite3
28
+ *.db
29
+ *.db-journal
30
+ chumoli_control.db
31
+ chumoli_control.db-*
32
+ master.key
33
+ .chumoli/
34
+ # legacy home
35
+ .uzpipe/
36
+
37
+ # Editor
38
+ .vscode/
39
+ .idea/
40
+ *.swp
41
+
42
+ # OS
43
+ .DS_Store
@@ -0,0 +1,86 @@
1
+ # Changelog
2
+
3
+ ## 0.1.1 — 2026-09-27
4
+
5
+ ### Added
6
+ - Source connectors: **Filesystem / S3** (`filesystem_s3`, dlt `readers`),
7
+ **MoySklad** (JSON API 1.2), **Bitrix24** (inbound webhook / OAuth REST),
8
+ **Meta Ads / Facebook Ads** (`facebook_ads`, Marketing API — beta, live token)
9
+ - Failed runs are now persisted to run history for manual (sync), async and demo
10
+ runs. Previously only scheduler runs recorded failures, so a dashboard-triggered
11
+ failure left no trace beyond a transient toast.
12
+ - `RunResult.error` / `RunResponse.error`: the dlt failed-jobs reason is captured
13
+ and shown in the dashboard run history.
14
+ - `core/errors.py`: credential redaction (`sanitize_error`) and friendly mapping
15
+ (`friendly_error`) so stored/displayed errors never leak passwords or tokens.
16
+
17
+ ### Changed
18
+ - ClickHouse loads now use `parquet` instead of dlt's `jsonl` default (columnar +
19
+ compressed; much faster for anything but a handful of rows).
20
+ - Quality checks reuse a single `sql_client` instead of opening one per check —
21
+ avoids a connect/auth round-trip per check on remote destinations.
22
+
23
+ ### Fixed
24
+ - **`drop-resource` was a silent no-op for DuckDB:** the dlt CLI ran as a
25
+ separate process without the destination credentials, so it opened a stray
26
+ empty `<cwd>/<pipeline>.duckdb`, "dropped" there and reported success while the
27
+ real table stayed. It now runs in-process on the pipeline built from the
28
+ stored config (`dlt.pipeline.helpers.pipeline_drop`), like recovery's other
29
+ actions — the drop hits the real destination and no longer litters the working
30
+ directory. A drop that matches no table/state is reported as an error, not `ok`.
31
+ - `tests/test_recovery.py` now asserts the dropped table is actually gone from
32
+ the destination — the old assertion only checked the success message, which is
33
+ how the no-op above stayed hidden.
34
+ - Meta Ads (`facebook_ads`) now retries 429/5xx: the Meta JSON error was raised
35
+ as `ValueError`, which the shared retry policy treats as non-transient, so
36
+ rate limits were never retried (transient statuses are now re-raised as
37
+ `HTTPStatusError`; JSON-less error pages are handled too)
38
+ - MoySklad `updated>=` filter uses Moscow time (the server's timezone), not
39
+ Tashkent — the 2-hour offset could skip records at the filter boundary
40
+ - MoySklad `stock` merge key is derived from `meta.href` with the query string
41
+ stripped (stable across `?expand=...`), falling back to the nested product id
42
+ - Pagination no longer risks an infinite loop when the API cursor does not
43
+ advance (Bitrix24 `next: 0`, Meta Ads repeated `after`)
44
+ - Filesystem / S3: a dotted directory (`s3://bucket/data.v2`) is no longer
45
+ mistaken for a single file and silently read as empty
46
+ - `.gitignore`: `.uzpipe/` is ignored again — the inline comment on that line
47
+ prevented the rule from matching
48
+ - `drop-resource` recovery was completely broken: the dlt CLI was invoked with
49
+ `--pipelines-dir` *after* the subcommand (rejected as "unrecognized arguments")
50
+ and without `-y` (could hang on the interactive confirmation). Now uses
51
+ `dlt -y pipeline --pipelines-dir <dir> <name> drop <resource>`.
52
+ - Dashboard run stats: load-OK but quality-fail runs no longer counted as
53
+ "Muvaffaqiyatli"; new `quality_warn` field so "Quality ogohlantirish" card is accurate
54
+ - Run history now shows the failure reason (redacted) instead of only a red badge
55
+ - Recovery (`sync` / `drop-pending` / `drop-resource`) now refuses to run while the
56
+ pipeline is loading — wiping pending dirs or dropping a table mid-load corrupts
57
+ dlt state
58
+ - Recovery error messages are redacted (no connection-string passwords in toasts)
59
+ - Dashboard recovery buttons disable during the action and surface failures as
60
+ errors (an error payload was previously toasted as success)
61
+
62
+ ## 0.1.0 — 2026-09-23
63
+
64
+ ### Added
65
+ - PyPI packaging polish: classifiers, `pip install chumoli`, wheel static include
66
+ - Connector `maturity` (`stable` | `beta`) — UI badge
67
+ - Local filesystem: hidden dlt staging; user folder gets clean tables only
68
+ - Native folder picker for local filesystem destination
69
+ - CI: pytest 3.11/3.12 + Docker smoke
70
+
71
+ ### Fixed
72
+ - Click connector auth raised `NameError` (`time` not imported) — connector was unusable
73
+ - Filesystem export silently failed: `Path` was undefined in `_execute` and the
74
+ error was swallowed by `except Exception`
75
+ - Wheel build failed with duplicate `chumoli/static/index.html` (redundant
76
+ `force-include`); static is now packaged via `packages = ["src/chumoli"]`
77
+ - Single source of truth for the version (`src/chumoli/__init__.py`);
78
+ `pyproject.toml` and the FastAPI app read it dynamically
79
+
80
+ ### Removed
81
+ - Unused imports across `src` and `tests`
82
+ - Stale `tests/static/` dashboard copies (canonical UI is `src/chumoli/static/index.html`)
83
+
84
+ ### Notes
85
+ - UZ connectors (Click, Payme, Uzum Market, Didox) are **beta** — test with your own API keys
86
+ - Stable: SQL, REST, synthetic volume, DuckDB / filesystem / S3 destinations
chumoli-0.1.1/LICENSE ADDED
@@ -0,0 +1,204 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other
43
+ modifications represent, as a whole, an original work of authorship.
44
+ For the purposes of this License, Derivative Works shall not include
45
+ works that remain separable from, or merely link (or bind by name)
46
+ to the interfaces of, the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including the
49
+ original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright
52
+ owner or by an individual or Legal Entity authorized to submit on
53
+ behalf of the copyright owner. For the purposes of this definition,
54
+ "submitted" means any form of electronic, verbal, or written
55
+ communication sent to the Licensor or its representatives,
56
+ including but not limited to communication on electronic mailing
57
+ lists, source code control systems, and issue tracking systems
58
+ that are managed by, or on behalf of, the Licensor for the purpose
59
+ of discussing and improving the Work, but excluding communication
60
+ that is conspicuously marked or otherwise designated in writing
61
+ by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal
64
+ Entity on behalf of whom a Contribution has been received by
65
+ Licensor and subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have
78
+ made, use, offer to sell, sell, import, and otherwise transfer the
79
+ Work, where such license applies only to those patent claims
80
+ licensable by such Contributor that are necessarily infringed by
81
+ their Contribution(s) alone or by combination of their
82
+ Contribution(s) with the Work to which such Contribution(s) was
83
+ submitted. If You institute patent litigation against any entity
84
+ (including a cross-claim or counterclaim in a lawsuit) alleging
85
+ that the Work or a Contribution incorporated within the Work
86
+ constitutes direct or contributory patent infringement, then any
87
+ patent licenses granted to You under this License for that Work
88
+ shall terminate as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or Derivative
96
+ Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing
142
+ the origin of the Work and reproducing the content of the NOTICE
143
+ file.
144
+
145
+ 7. Disclaimer of Warranty. Unless required by applicable law or
146
+ agreed to in writing, Licensor provides the Work (and each
147
+ Contributor provides its Contributions) on an "AS IS" BASIS,
148
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
149
+ implied, including, without limitation, any warranties or
150
+ conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS
151
+ FOR A PARTICULAR PURPOSE. You are solely responsible for
152
+ determining the appropriateness of using or redistributing the
153
+ Work and assume any risks associated with Your exercise of
154
+ permissions under this License.
155
+
156
+ 8. Limitation of Liability. In no event and under no legal theory,
157
+ whether in tort (including negligence), contract, or otherwise,
158
+ unless required by applicable law (such as deliberate and grossly
159
+ negligent acts) or agreed to in writing, shall any Contributor be
160
+ liable to You for damages, including any direct, indirect, special,
161
+ incidental, or consequential damages of any character arising as a
162
+ result of this License or out of the use or inability to use the
163
+ Work (including but not limited to damages for loss of goodwill,
164
+ work stoppage, computer failure or malfunction, or any and all
165
+ other commercial damages or losses), even if such Contributor
166
+ has been advised of the possibility of such damages.
167
+
168
+ 9. Accepting Warranty or Additional Liability. While redistributing
169
+ the Work or Derivative Works thereof, You may choose to offer,
170
+ and charge a fee for, acceptance of support, warranty, indemnity,
171
+ or other liability obligations and/or rights consistent with this
172
+ License. However, in accepting such obligations, You may act only
173
+ on Your own behalf and on Your sole responsibility, not on behalf
174
+ of any other Contributor, and only if You agree to indemnify,
175
+ defend, and hold each Contributor harmless for any liability
176
+ incurred by, or claims asserted against, such Contributor by reason
177
+ of your accepting any such warranty or additional liability.
178
+
179
+ END OF TERMS AND CONDITIONS
180
+
181
+ APPENDIX: How to apply the Apache License to your work.
182
+
183
+ To apply the Apache License to your work, attach the following
184
+ boilerplate notice, with the fields enclosed by brackets "[]"
185
+ replaced with your own identifying information. (Don't include
186
+ the brackets!) The text should be enclosed in the appropriate
187
+ comment syntax for the file format. We also recommend that a
188
+ file or class name and description of purpose be included on the
189
+ same "printed page" as the copyright notice for easier
190
+ identification within third-party archives.
191
+
192
+ Copyright 2026 Chumoli contributors
193
+
194
+ Licensed under the Apache License, Version 2.0 (the "License");
195
+ you may not use this file except in compliance with the License.
196
+ You may obtain a copy of the License at
197
+
198
+ http://www.apache.org/licenses/LICENSE-2.0
199
+
200
+ Unless required by applicable law or agreed to in writing, software
201
+ distributed under the License is distributed on an "AS IS" BASIS,
202
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
203
+ See the License for the specific language governing permissions and
204
+ limitations under the License.
chumoli-0.1.1/PKG-INFO ADDED
@@ -0,0 +1,199 @@
1
+ Metadata-Version: 2.5
2
+ Name: chumoli
3
+ Version: 0.1.1
4
+ Summary: Lightweight EL tool for Uzbekistan data sources, built on dlt
5
+ Project-URL: Homepage, https://github.com/farrux05-ai/chumoli
6
+ Project-URL: Repository, https://github.com/farrux05-ai/chumoli
7
+ Project-URL: Issues, https://github.com/farrux05-ai/chumoli/issues
8
+ Project-URL: Documentation, https://github.com/farrux05-ai/chumoli#readme
9
+ Author: farrux05-ai
10
+ License-Expression: Apache-2.0
11
+ License-File: LICENSE
12
+ Keywords: data-pipeline,dlt,duckdb,elt,etl,uzbekistan
13
+ Classifier: Development Status :: 4 - Beta
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: License :: OSI Approved :: Apache Software License
16
+ Classifier: Operating System :: OS Independent
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Topic :: Database
21
+ Classifier: Topic :: Software Development :: Libraries
22
+ Requires-Python: >=3.11
23
+ Requires-Dist: apscheduler>=3.10
24
+ Requires-Dist: cryptography>=42.0
25
+ Requires-Dist: dlt[duckdb]>=1.30
26
+ Requires-Dist: dlt[sql-database]>=1.30
27
+ Requires-Dist: fastapi>=0.115
28
+ Requires-Dist: httpx>=0.27
29
+ Requires-Dist: psycopg2-binary>=2.9
30
+ Requires-Dist: pyarrow>=14.0
31
+ Requires-Dist: pydantic>=2.0
32
+ Requires-Dist: pymysql>=1.1
33
+ Requires-Dist: rich>=13.0
34
+ Requires-Dist: sqlalchemy>=2.0
35
+ Requires-Dist: structlog>=24.1
36
+ Requires-Dist: tenacity>=8.2
37
+ Requires-Dist: typer>=0.12
38
+ Requires-Dist: uvicorn[standard]>=0.30
39
+ Provides-Extra: clickhouse
40
+ Requires-Dist: dlt[clickhouse]>=1.30; extra == 'clickhouse'
41
+ Provides-Extra: dev
42
+ Requires-Dist: build>=1.2; extra == 'dev'
43
+ Requires-Dist: pytest>=8.0; extra == 'dev'
44
+ Requires-Dist: twine>=5.0; extra == 'dev'
45
+ Provides-Extra: postgres
46
+ Requires-Dist: dlt[postgres]>=1.30; extra == 'postgres'
47
+ Description-Content-Type: text/markdown
48
+
49
+ <p align="center">
50
+ <img src="https://raw.githubusercontent.com/farrux05-ai/chumoli/main/assets/chumoli-logo.svg" alt="Chumoli" width="120" height="120" />
51
+ </p>
52
+
53
+ <h1 align="center">Chumoli</h1>
54
+
55
+ <p align="center">
56
+ <strong>O‘zbekiston ma’lumot manbalari uchun engil EL vosita</strong><br/>
57
+ <a href="https://dlthub.com/docs">dlt</a> (Apache 2.0) ustida · UI + CLI
58
+ </p>
59
+
60
+ <p align="center">
61
+ <a href="https://github.com/farrux05-ai/chumoli/actions/workflows/ci.yml"><img src="https://github.com/farrux05-ai/chumoli/actions/workflows/ci.yml/badge.svg" alt="CI" /></a>
62
+ <a href="https://pypi.org/project/chumoli/"><img src="https://img.shields.io/pypi/v/chumoli.svg" alt="PyPI" /></a>
63
+ <a href="LICENSE"><img src="https://img.shields.io/badge/license-Apache%202.0-blue.svg" alt="License" /></a>
64
+ <img src="https://img.shields.io/badge/python-3.11%2B-blue.svg" alt="Python" />
65
+ <img src="https://img.shields.io/badge/status-beta-yellow.svg" alt="Beta" />
66
+ </p>
67
+
68
+ ---
69
+
70
+ SQL, REST, fayl/S3, MoySklad, Bitrix24 va O‘zbekiston manbalaridan (Click, Payme, Uzum, Didox — **beta**) ma’lumotni olib **DuckDB**, **PostgreSQL**, **lokal fayl** yoki **S3** ga yuklang. Brauzerda boshqaring yoki CLI orqali ishga tushiring.
71
+
72
+ ## Tez boshlash
73
+
74
+ **Talab:** Python 3.11+
75
+
76
+ ```bash
77
+ pip install chumoli
78
+ chumoli ui
79
+ ```
80
+
81
+ - Dashboard: http://127.0.0.1:8000/
82
+ - API docs: http://127.0.0.1:8000/api/docs
83
+ - To‘xtatish: `Ctrl+C`
84
+
85
+ Brauzersiz: `chumoli ui --no-open` yoki `chumoli-api`.
86
+
87
+ ### Ishlab chiqish (repo)
88
+
89
+ ```bash
90
+ git clone https://github.com/farrux05-ai/chumoli.git
91
+ cd chumoli
92
+ python -m venv .venv && source .venv/bin/activate
93
+ pip install -e ".[dev]"
94
+ chumoli ui
95
+ ```
96
+
97
+ ### Birinchi pipeline
98
+
99
+ 1. **+ Yangi** yoki **Ulagichlar**
100
+ 2. Manba tanlang → ulanishni tekshiring → saqlang
101
+ 3. **Run** → **Preview**
102
+
103
+ UI dagi demo: SQL → DuckDB, REST (CBU valyuta kurslari) → DuckDB, Volume (sintetik).
104
+
105
+ ## Nima bor (v0.1)
106
+
107
+ | Imkoniyat | Izoh |
108
+ |-----------|------|
109
+ | Ulagichlar | SQL, REST, Filesystem/S3, MoySklad, Bitrix24, sintetik volume (**stable**); Click, Payme, Uzum, Didox (**beta**) |
110
+ | Destinationlar | DuckDB, PostgreSQL, lokal CSV/Parquet, S3/GCS/…, ClickHouse |
111
+ | Dashboard | Yaratish, Run, Preview, runs tarixi, scheduler |
112
+ | Xavfsizlik | Secrets Fernet bilan shifrlangan; API kalit |
113
+ | Bildirishnoma | Telegram (ixtiyoriy) |
114
+ | CLI | `chumoli ui`, `list`, `run` |
115
+
116
+ ### UZ connectorlar — beta
117
+
118
+ Click, Payme, Uzum Market va Didox kod bazasida bor va UI da **beta** deb belgilangan. Ular hali barcha merchant/sandbox muhitlarida to‘liq tasdiqlanmagan. Ishlatishdan oldin o‘z API kalitingiz bilan sinang; xato topsangiz [Issues](https://github.com/farrux05-ai/chumoli/issues) oching.
119
+
120
+ ## Destinationlar
121
+
122
+ | Key | Default / connection |
123
+ |-----|----------------------|
124
+ | `duckdb` | `~/chumoli-data/<pipeline>.duckdb` |
125
+ | `postgresql` | SQLAlchemy URL (parol maxfiy) |
126
+ | `filesystem` | Faqat lokal → tanlangan papka yoki `~/chumoli-data/exports/<pipeline>/` |
127
+ | `s3` | `s3://` / `gs://` / `az://` … |
128
+ | `clickhouse` | URL; `pip install "chumoli[clickhouse]"` |
129
+
130
+ Lokal fayl va S3 katalogda **alohida**. dlt `_dlt_*` metadata yashirin staging da qoladi; foydalanuvchi papkasiga faqat toza jadvallar chiqadi. Preview: papka yo‘li, fayllar, CSV namunasi.
131
+
132
+ ## Ma’lumot qayerda
133
+
134
+ ```text
135
+ ~/.chumoli/ # tizim (yashirin)
136
+ chumoli_control.db
137
+ master.key
138
+ api.key
139
+ pipelines/ # dlt state
140
+ fs_staging/ # dlt filesystem + _dlt_* (yashirin)
141
+
142
+ ~/chumoli-data/ # foydalanuvchi ko‘radigan
143
+ <pipeline>.duckdb
144
+ warehouse.duckdb # path ko‘rsatilmagan DuckDB uchun fallback
145
+ examples/
146
+ exports/<pipeline>/ # toza CSV/Parquet
147
+ ```
148
+
149
+ ```bash
150
+ export CHUMOLI_HOME=/var/lib/chumoli
151
+ export CHUMOLI_DATA=/var/lib/chumoli-data
152
+ chumoli ui
153
+ ```
154
+
155
+ `master.key` ni control DB bilan birga zaxiralang — kalitsiz secrets ochilmaydi.
156
+
157
+ ## CLI
158
+
159
+ ```bash
160
+ chumoli --help
161
+ chumoli ui # dashboard + brauzer
162
+ chumoli ui --port 8080
163
+ chumoli list
164
+ chumoli run <pipeline>
165
+ ```
166
+
167
+ ## Docker
168
+
169
+ ```bash
170
+ docker compose up --build
171
+ # http://127.0.0.1:8000/
172
+ ```
173
+
174
+ - Bind: `127.0.0.1:8000` (tashqi tarmoq uchun reverse proxy + `CHUMOLI_API_KEY` + TLS)
175
+ - Volume: `chumoli_data` → `/data` (`CHUMOLI_HOME` + `CHUMOLI_DATA`)
176
+ - **Bitta** uvicorn worker — scheduler va run lock shu processda
177
+
178
+ ## Muhit o‘zgaruvchilari
179
+
180
+ | O‘zgaruvchi | Default | Ma’nosi |
181
+ |-------------|---------|---------|
182
+ | `CHUMOLI_HOME` | `~/.chumoli` | Control DB, kalitlar, dlt state |
183
+ | `CHUMOLI_DATA` | `~/chumoli-data` | DuckDB va lokal eksportlar |
184
+ | `CHUMOLI_API_KEY` | (avto `api.key`) | API autentifikatsiya |
185
+
186
+ Telegram: dashboard **Sozlamalar** → bot token + chat id.
187
+
188
+ ## Ishlab chiqish
189
+
190
+ ```bash
191
+ pip install -e ".[dev]"
192
+ PYTHONPATH=src python -m pytest tests/ -q
193
+ ```
194
+
195
+ CI (GitHub Actions): har push/PR da Python 3.11 va 3.12 da testlar + Docker image build.
196
+
197
+ ## Litsenziya
198
+
199
+ Apache-2.0 · [GitHub](https://github.com/farrux05-ai/chumoli)
@@ -0,0 +1,151 @@
1
+ <p align="center">
2
+ <img src="https://raw.githubusercontent.com/farrux05-ai/chumoli/main/assets/chumoli-logo.svg" alt="Chumoli" width="120" height="120" />
3
+ </p>
4
+
5
+ <h1 align="center">Chumoli</h1>
6
+
7
+ <p align="center">
8
+ <strong>O‘zbekiston ma’lumot manbalari uchun engil EL vosita</strong><br/>
9
+ <a href="https://dlthub.com/docs">dlt</a> (Apache 2.0) ustida · UI + CLI
10
+ </p>
11
+
12
+ <p align="center">
13
+ <a href="https://github.com/farrux05-ai/chumoli/actions/workflows/ci.yml"><img src="https://github.com/farrux05-ai/chumoli/actions/workflows/ci.yml/badge.svg" alt="CI" /></a>
14
+ <a href="https://pypi.org/project/chumoli/"><img src="https://img.shields.io/pypi/v/chumoli.svg" alt="PyPI" /></a>
15
+ <a href="LICENSE"><img src="https://img.shields.io/badge/license-Apache%202.0-blue.svg" alt="License" /></a>
16
+ <img src="https://img.shields.io/badge/python-3.11%2B-blue.svg" alt="Python" />
17
+ <img src="https://img.shields.io/badge/status-beta-yellow.svg" alt="Beta" />
18
+ </p>
19
+
20
+ ---
21
+
22
+ SQL, REST, fayl/S3, MoySklad, Bitrix24 va O‘zbekiston manbalaridan (Click, Payme, Uzum, Didox — **beta**) ma’lumotni olib **DuckDB**, **PostgreSQL**, **lokal fayl** yoki **S3** ga yuklang. Brauzerda boshqaring yoki CLI orqali ishga tushiring.
23
+
24
+ ## Tez boshlash
25
+
26
+ **Talab:** Python 3.11+
27
+
28
+ ```bash
29
+ pip install chumoli
30
+ chumoli ui
31
+ ```
32
+
33
+ - Dashboard: http://127.0.0.1:8000/
34
+ - API docs: http://127.0.0.1:8000/api/docs
35
+ - To‘xtatish: `Ctrl+C`
36
+
37
+ Brauzersiz: `chumoli ui --no-open` yoki `chumoli-api`.
38
+
39
+ ### Ishlab chiqish (repo)
40
+
41
+ ```bash
42
+ git clone https://github.com/farrux05-ai/chumoli.git
43
+ cd chumoli
44
+ python -m venv .venv && source .venv/bin/activate
45
+ pip install -e ".[dev]"
46
+ chumoli ui
47
+ ```
48
+
49
+ ### Birinchi pipeline
50
+
51
+ 1. **+ Yangi** yoki **Ulagichlar**
52
+ 2. Manba tanlang → ulanishni tekshiring → saqlang
53
+ 3. **Run** → **Preview**
54
+
55
+ UI dagi demo: SQL → DuckDB, REST (CBU valyuta kurslari) → DuckDB, Volume (sintetik).
56
+
57
+ ## Nima bor (v0.1)
58
+
59
+ | Imkoniyat | Izoh |
60
+ |-----------|------|
61
+ | Ulagichlar | SQL, REST, Filesystem/S3, MoySklad, Bitrix24, sintetik volume (**stable**); Click, Payme, Uzum, Didox (**beta**) |
62
+ | Destinationlar | DuckDB, PostgreSQL, lokal CSV/Parquet, S3/GCS/…, ClickHouse |
63
+ | Dashboard | Yaratish, Run, Preview, runs tarixi, scheduler |
64
+ | Xavfsizlik | Secrets Fernet bilan shifrlangan; API kalit |
65
+ | Bildirishnoma | Telegram (ixtiyoriy) |
66
+ | CLI | `chumoli ui`, `list`, `run` |
67
+
68
+ ### UZ connectorlar — beta
69
+
70
+ Click, Payme, Uzum Market va Didox kod bazasida bor va UI da **beta** deb belgilangan. Ular hali barcha merchant/sandbox muhitlarida to‘liq tasdiqlanmagan. Ishlatishdan oldin o‘z API kalitingiz bilan sinang; xato topsangiz [Issues](https://github.com/farrux05-ai/chumoli/issues) oching.
71
+
72
+ ## Destinationlar
73
+
74
+ | Key | Default / connection |
75
+ |-----|----------------------|
76
+ | `duckdb` | `~/chumoli-data/<pipeline>.duckdb` |
77
+ | `postgresql` | SQLAlchemy URL (parol maxfiy) |
78
+ | `filesystem` | Faqat lokal → tanlangan papka yoki `~/chumoli-data/exports/<pipeline>/` |
79
+ | `s3` | `s3://` / `gs://` / `az://` … |
80
+ | `clickhouse` | URL; `pip install "chumoli[clickhouse]"` |
81
+
82
+ Lokal fayl va S3 katalogda **alohida**. dlt `_dlt_*` metadata yashirin staging da qoladi; foydalanuvchi papkasiga faqat toza jadvallar chiqadi. Preview: papka yo‘li, fayllar, CSV namunasi.
83
+
84
+ ## Ma’lumot qayerda
85
+
86
+ ```text
87
+ ~/.chumoli/ # tizim (yashirin)
88
+ chumoli_control.db
89
+ master.key
90
+ api.key
91
+ pipelines/ # dlt state
92
+ fs_staging/ # dlt filesystem + _dlt_* (yashirin)
93
+
94
+ ~/chumoli-data/ # foydalanuvchi ko‘radigan
95
+ <pipeline>.duckdb
96
+ warehouse.duckdb # path ko‘rsatilmagan DuckDB uchun fallback
97
+ examples/
98
+ exports/<pipeline>/ # toza CSV/Parquet
99
+ ```
100
+
101
+ ```bash
102
+ export CHUMOLI_HOME=/var/lib/chumoli
103
+ export CHUMOLI_DATA=/var/lib/chumoli-data
104
+ chumoli ui
105
+ ```
106
+
107
+ `master.key` ni control DB bilan birga zaxiralang — kalitsiz secrets ochilmaydi.
108
+
109
+ ## CLI
110
+
111
+ ```bash
112
+ chumoli --help
113
+ chumoli ui # dashboard + brauzer
114
+ chumoli ui --port 8080
115
+ chumoli list
116
+ chumoli run <pipeline>
117
+ ```
118
+
119
+ ## Docker
120
+
121
+ ```bash
122
+ docker compose up --build
123
+ # http://127.0.0.1:8000/
124
+ ```
125
+
126
+ - Bind: `127.0.0.1:8000` (tashqi tarmoq uchun reverse proxy + `CHUMOLI_API_KEY` + TLS)
127
+ - Volume: `chumoli_data` → `/data` (`CHUMOLI_HOME` + `CHUMOLI_DATA`)
128
+ - **Bitta** uvicorn worker — scheduler va run lock shu processda
129
+
130
+ ## Muhit o‘zgaruvchilari
131
+
132
+ | O‘zgaruvchi | Default | Ma’nosi |
133
+ |-------------|---------|---------|
134
+ | `CHUMOLI_HOME` | `~/.chumoli` | Control DB, kalitlar, dlt state |
135
+ | `CHUMOLI_DATA` | `~/chumoli-data` | DuckDB va lokal eksportlar |
136
+ | `CHUMOLI_API_KEY` | (avto `api.key`) | API autentifikatsiya |
137
+
138
+ Telegram: dashboard **Sozlamalar** → bot token + chat id.
139
+
140
+ ## Ishlab chiqish
141
+
142
+ ```bash
143
+ pip install -e ".[dev]"
144
+ PYTHONPATH=src python -m pytest tests/ -q
145
+ ```
146
+
147
+ CI (GitHub Actions): har push/PR da Python 3.11 va 3.12 da testlar + Docker image build.
148
+
149
+ ## Litsenziya
150
+
151
+ Apache-2.0 · [GitHub](https://github.com/farrux05-ai/chumoli)