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.
Files changed (51) hide show
  1. {ping_dataexport-0.2.0/src/ping_dataexport.egg-info → ping_dataexport-0.2.1}/PKG-INFO +8 -4
  2. {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/README.md +7 -3
  3. {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/pyproject.toml +1 -1
  4. {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/__init__.py +1 -1
  5. {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/job/spec.py +2 -2
  6. {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/job/validator.py +2 -1
  7. {ping_dataexport-0.2.0 → ping_dataexport-0.2.1/src/ping_dataexport.egg-info}/PKG-INFO +8 -4
  8. {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/LICENSE +0 -0
  9. {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/MANIFEST.in +0 -0
  10. {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/config.sample.ini +0 -0
  11. {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/job.sample.ini +0 -0
  12. {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/setup.cfg +0 -0
  13. {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/__config__.py +0 -0
  14. {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/__main__.py +0 -0
  15. {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/api.py +0 -0
  16. {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/applogger.py +0 -0
  17. {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/cli.py +0 -0
  18. {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/config.py +0 -0
  19. {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/db/__init__.py +0 -0
  20. {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/db/connector.py +0 -0
  21. {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/db/oracle_connector.py +0 -0
  22. {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/db/pyodbc_connector.py +0 -0
  23. {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/db/sqlite_connector.py +0 -0
  24. {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/db/type_map.py +0 -0
  25. {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/errors.py +0 -0
  26. {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/export/__init__.py +0 -0
  27. {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/export/engine.py +0 -0
  28. {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/export/options.py +0 -0
  29. {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/export/runner.py +0 -0
  30. {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/export/util.py +0 -0
  31. {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/job/__init__.py +0 -0
  32. {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/job/executor.py +0 -0
  33. {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/job/shared_context.py +0 -0
  34. {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/paths.py +0 -0
  35. {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/planner/__init__.py +0 -0
  36. {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/planner/base.py +0 -0
  37. {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/planner/datelist.py +0 -0
  38. {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/planner/groupby.py +0 -0
  39. {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/planner/monthbydate.py +0 -0
  40. {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/planner/single.py +0 -0
  41. {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/planner/watermark.py +0 -0
  42. {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/writer/__init__.py +0 -0
  43. {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/writer/arrow_map.py +0 -0
  44. {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/writer/base.py +0 -0
  45. {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/writer/delimited.py +0 -0
  46. {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport/writer/parquet.py +0 -0
  47. {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport.egg-info/SOURCES.txt +0 -0
  48. {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport.egg-info/dependency_links.txt +0 -0
  49. {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport.egg-info/entry_points.txt +0 -0
  50. {ping_dataexport-0.2.0 → ping_dataexport-0.2.1}/src/ping_dataexport.egg-info/requires.txt +0 -0
  51. {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.0
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.0"
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"
@@ -8,4 +8,4 @@ The package uses relative imports only and has no import-time side effects, so
8
8
  the directory can be copied into any project and imported directly.
9
9
  """
10
10
 
11
- __version__ = "0.2.0"
11
+ __version__ = "0.2.1"
@@ -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 == "monthbydate" and datefrom is None:
173
- datefrom = self.today # anchor defaults to today
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 --datefrom and --daysrelative")
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.0
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