ping-dataexport 0.2.0__tar.gz → 0.2.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.
- {ping_dataexport-0.2.0/src/ping_dataexport.egg-info → ping_dataexport-0.2.1}/PKG-INFO +8 -4
- {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/README.md +7 -3
- {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/pyproject.toml +1 -1
- {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/__init__.py +1 -1
- {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/job/spec.py +2 -2
- {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/job/validator.py +2 -1
- {ping_dataexport-0.2.0 → ping_dataexport-0.2.1/src/ping_dataexport.egg-info}/PKG-INFO +8 -4
- {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/LICENSE +0 -0
- {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/MANIFEST.in +0 -0
- {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/config.sample.ini +0 -0
- {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/job.sample.ini +0 -0
- {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/setup.cfg +0 -0
- {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/__config__.py +0 -0
- {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/__main__.py +0 -0
- {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/api.py +0 -0
- {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/applogger.py +0 -0
- {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/cli.py +0 -0
- {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/config.py +0 -0
- {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/db/__init__.py +0 -0
- {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/db/connector.py +0 -0
- {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/db/oracle_connector.py +0 -0
- {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/db/pyodbc_connector.py +0 -0
- {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/db/sqlite_connector.py +0 -0
- {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/db/type_map.py +0 -0
- {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/errors.py +0 -0
- {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/export/__init__.py +0 -0
- {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/export/engine.py +0 -0
- {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/export/options.py +0 -0
- {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/export/runner.py +0 -0
- {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/export/util.py +0 -0
- {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/job/__init__.py +0 -0
- {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/job/executor.py +0 -0
- {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/job/shared_context.py +0 -0
- {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/paths.py +0 -0
- {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/planner/__init__.py +0 -0
- {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/planner/base.py +0 -0
- {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/planner/datelist.py +0 -0
- {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/planner/groupby.py +0 -0
- {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/planner/monthbydate.py +0 -0
- {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/planner/single.py +0 -0
- {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/planner/watermark.py +0 -0
- {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/writer/__init__.py +0 -0
- {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/writer/arrow_map.py +0 -0
- {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/writer/base.py +0 -0
- {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/writer/delimited.py +0 -0
- {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/writer/parquet.py +0 -0
- {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport.egg-info/SOURCES.txt +0 -0
- {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport.egg-info/dependency_links.txt +0 -0
- {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport.egg-info/entry_points.txt +0 -0
- {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport.egg-info/requires.txt +0 -0
- {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ping-dataexport
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.1
|
|
4
4
|
Summary: Universal database data export to CSV/TXT/Parquet — streaming, typed, no pandas
|
|
5
5
|
Author: vorapol
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -31,6 +31,9 @@ Dynamic: license-file
|
|
|
31
31
|
|
|
32
32
|
## PING (ping-godhand)'s Universal Data Exporter
|
|
33
33
|
|
|
34
|
+
> **Provided as-is. No support, no warranty, no roadmap commitments, use at
|
|
35
|
+
> your own risk.**
|
|
36
|
+
|
|
34
37
|
## คำอธิบาย (ภาษาไทย)
|
|
35
38
|
|
|
36
39
|
โปรแกรมช่วย Export ข้อมูลอย่างง่าย: เชื่อมต่อฐานข้อมูล รันคำสั่ง SQL
|
|
@@ -178,7 +181,7 @@ All options:
|
|
|
178
181
|
| `-m` | `--mode` | export mode: `groupby` \| `date` \| `relativedate` \| `monthbydate` \| `splitrow` \| `watermark` — see section 4 |
|
|
179
182
|
| `-col` | `--column` | column the mode partitions on |
|
|
180
183
|
| `-row` | `--row` | rows per file (`-m splitrow`) |
|
|
181
|
-
| `-df` | `--datefrom` | start / anchor date `yyyy-MM-dd` |
|
|
184
|
+
| `-df` | `--datefrom` | start / anchor date `yyyy-MM-dd`; omitted with `-dr`/`-mr` ⇒ today (system date) |
|
|
182
185
|
| `-dt` | `--dateto` | end date `yyyy-MM-dd` (`-m date`) |
|
|
183
186
|
| `-dr` | `--daysrelative` | days back from `-df` (`-m relativedate`) |
|
|
184
187
|
| `-mr` | `--monthsrelative` | months back from `-df` (`-m monthbydate`) |
|
|
@@ -225,7 +228,8 @@ daily/
|
|
|
225
228
|
└── sales_2026-01-05.csv
|
|
226
229
|
```
|
|
227
230
|
|
|
228
|
-
**`relativedate` — N days back from an anchor date, anchor included
|
|
231
|
+
**`relativedate` — N days back from an anchor date, anchor included
|
|
232
|
+
(omit `-df` to anchor on today):**
|
|
229
233
|
|
|
230
234
|
```bash
|
|
231
235
|
ping-dataexport -s DB01 -q "SELECT * FROM sales" -m relativedate -col txn_date \
|
|
@@ -240,7 +244,7 @@ rel/
|
|
|
240
244
|
```
|
|
241
245
|
|
|
242
246
|
**`monthbydate` — N months back plus the anchor month (the anchor month stops
|
|
243
|
-
at the anchor date):**
|
|
247
|
+
at the anchor date; omit `-df` to anchor on today):**
|
|
244
248
|
|
|
245
249
|
```bash
|
|
246
250
|
ping-dataexport -s DB01 -q "SELECT * FROM sales" -m monthbydate -col txn_date \
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
## PING (ping-godhand)'s Universal Data Exporter
|
|
4
4
|
|
|
5
|
+
> **Provided as-is. No support, no warranty, no roadmap commitments, use at
|
|
6
|
+
> your own risk.**
|
|
7
|
+
|
|
5
8
|
## คำอธิบาย (ภาษาไทย)
|
|
6
9
|
|
|
7
10
|
โปรแกรมช่วย Export ข้อมูลอย่างง่าย: เชื่อมต่อฐานข้อมูล รันคำสั่ง SQL
|
|
@@ -149,7 +152,7 @@ All options:
|
|
|
149
152
|
| `-m` | `--mode` | export mode: `groupby` \| `date` \| `relativedate` \| `monthbydate` \| `splitrow` \| `watermark` — see section 4 |
|
|
150
153
|
| `-col` | `--column` | column the mode partitions on |
|
|
151
154
|
| `-row` | `--row` | rows per file (`-m splitrow`) |
|
|
152
|
-
| `-df` | `--datefrom` | start / anchor date `yyyy-MM-dd` |
|
|
155
|
+
| `-df` | `--datefrom` | start / anchor date `yyyy-MM-dd`; omitted with `-dr`/`-mr` ⇒ today (system date) |
|
|
153
156
|
| `-dt` | `--dateto` | end date `yyyy-MM-dd` (`-m date`) |
|
|
154
157
|
| `-dr` | `--daysrelative` | days back from `-df` (`-m relativedate`) |
|
|
155
158
|
| `-mr` | `--monthsrelative` | months back from `-df` (`-m monthbydate`) |
|
|
@@ -196,7 +199,8 @@ daily/
|
|
|
196
199
|
└── sales_2026-01-05.csv
|
|
197
200
|
```
|
|
198
201
|
|
|
199
|
-
**`relativedate` — N days back from an anchor date, anchor included
|
|
202
|
+
**`relativedate` — N days back from an anchor date, anchor included
|
|
203
|
+
(omit `-df` to anchor on today):**
|
|
200
204
|
|
|
201
205
|
```bash
|
|
202
206
|
ping-dataexport -s DB01 -q "SELECT * FROM sales" -m relativedate -col txn_date \
|
|
@@ -211,7 +215,7 @@ rel/
|
|
|
211
215
|
```
|
|
212
216
|
|
|
213
217
|
**`monthbydate` — N months back plus the anchor month (the anchor month stops
|
|
214
|
-
at the anchor date):**
|
|
218
|
+
at the anchor date; omit `-df` to anchor on today):**
|
|
215
219
|
|
|
216
220
|
```bash
|
|
217
221
|
ping-dataexport -s DB01 -q "SELECT * FROM sales" -m monthbydate -col txn_date \
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "ping-dataexport"
|
|
7
|
-
version = "0.2.
|
|
7
|
+
version = "0.2.1"
|
|
8
8
|
description = "Universal database data export to CSV/TXT/Parquet — streaming, typed, no pandas"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = "Apache-2.0"
|
|
@@ -169,8 +169,8 @@ class JobSpecBuilder:
|
|
|
169
169
|
|
|
170
170
|
datefrom = parse_strict_date(datefrom_v, what="--datefrom") if datefrom_v else None
|
|
171
171
|
dateto = parse_strict_date(dateto_v, what="--dateto") if dateto_v else None
|
|
172
|
-
if mode
|
|
173
|
-
datefrom = self.today # anchor
|
|
172
|
+
if mode in ("relativedate", "monthbydate") and datefrom is None:
|
|
173
|
+
datefrom = self.today # -dr/-mr without -df: anchor = current system date
|
|
174
174
|
|
|
175
175
|
output = layered("output")
|
|
176
176
|
outputdir = layered("outputdir")
|
|
@@ -45,7 +45,8 @@ class JobValidator:
|
|
|
45
45
|
e(spec, f"--datefrom {spec.datefrom} is after --dateto {spec.dateto}")
|
|
46
46
|
if spec.mode == "relativedate":
|
|
47
47
|
if not spec.datefrom or spec.daysrelative is None:
|
|
48
|
-
e(spec, "--mode relativedate requires --
|
|
48
|
+
e(spec, "--mode relativedate requires --daysrelative "
|
|
49
|
+
"(--datefrom defaults to today when omitted)")
|
|
49
50
|
if spec.daysrelative < 0:
|
|
50
51
|
e(spec, "--daysrelative must be >= 0")
|
|
51
52
|
if spec.mode == "monthbydate":
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ping-dataexport
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.1
|
|
4
4
|
Summary: Universal database data export to CSV/TXT/Parquet — streaming, typed, no pandas
|
|
5
5
|
Author: vorapol
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -31,6 +31,9 @@ Dynamic: license-file
|
|
|
31
31
|
|
|
32
32
|
## PING (ping-godhand)'s Universal Data Exporter
|
|
33
33
|
|
|
34
|
+
> **Provided as-is. No support, no warranty, no roadmap commitments, use at
|
|
35
|
+
> your own risk.**
|
|
36
|
+
|
|
34
37
|
## คำอธิบาย (ภาษาไทย)
|
|
35
38
|
|
|
36
39
|
โปรแกรมช่วย Export ข้อมูลอย่างง่าย: เชื่อมต่อฐานข้อมูล รันคำสั่ง SQL
|
|
@@ -178,7 +181,7 @@ All options:
|
|
|
178
181
|
| `-m` | `--mode` | export mode: `groupby` \| `date` \| `relativedate` \| `monthbydate` \| `splitrow` \| `watermark` — see section 4 |
|
|
179
182
|
| `-col` | `--column` | column the mode partitions on |
|
|
180
183
|
| `-row` | `--row` | rows per file (`-m splitrow`) |
|
|
181
|
-
| `-df` | `--datefrom` | start / anchor date `yyyy-MM-dd` |
|
|
184
|
+
| `-df` | `--datefrom` | start / anchor date `yyyy-MM-dd`; omitted with `-dr`/`-mr` ⇒ today (system date) |
|
|
182
185
|
| `-dt` | `--dateto` | end date `yyyy-MM-dd` (`-m date`) |
|
|
183
186
|
| `-dr` | `--daysrelative` | days back from `-df` (`-m relativedate`) |
|
|
184
187
|
| `-mr` | `--monthsrelative` | months back from `-df` (`-m monthbydate`) |
|
|
@@ -225,7 +228,8 @@ daily/
|
|
|
225
228
|
└── sales_2026-01-05.csv
|
|
226
229
|
```
|
|
227
230
|
|
|
228
|
-
**`relativedate` — N days back from an anchor date, anchor included
|
|
231
|
+
**`relativedate` — N days back from an anchor date, anchor included
|
|
232
|
+
(omit `-df` to anchor on today):**
|
|
229
233
|
|
|
230
234
|
```bash
|
|
231
235
|
ping-dataexport -s DB01 -q "SELECT * FROM sales" -m relativedate -col txn_date \
|
|
@@ -240,7 +244,7 @@ rel/
|
|
|
240
244
|
```
|
|
241
245
|
|
|
242
246
|
**`monthbydate` — N months back plus the anchor month (the anchor month stops
|
|
243
|
-
at the anchor date):**
|
|
247
|
+
at the anchor date; omit `-df` to anchor on today):**
|
|
244
248
|
|
|
245
249
|
```bash
|
|
246
250
|
ping-dataexport -s DB01 -q "SELECT * FROM sales" -m monthbydate -col txn_date \
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport.egg-info/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|