Use request sessions to reuse existing connections #25

Merged
cmo merged 13 commits from issue-24 into master 2026-02-04 21:01:58 +00:00

13 commits

Author SHA1 Message Date
Christian Mönch
b05c21b40d update schema_type warning 2026-02-04 22:01:33 +01:00
Christian Mönch
8b3a516d11 remove an erroneous import from post-records 2026-02-04 16:41:41 +01:00
Christian Monch
d9f0b8de32 use session in read-pages 2026-02-04 15:08:23 +01:00
Christian Monch
f7359598d5 use session in post-records 2026-02-04 15:05:46 +01:00
Christian Monch
bf6117e269 use session in maintenance 2026-02-04 15:04:11 +01:00
Christian Monch
efda0a1990 use session in get-records, unify message output 2026-02-04 15:00:42 +01:00
Christian Monch
9ce1f89d82 use session in export, add progress report
Use request-session in `dtc` subcommand `export`.
Add progress report to `export`.
2026-02-04 14:50:18 +01:00
Christian Monch
c8da4d809b use session in delete-records
This commit uses a request session in `delete-records`,
adds progress reporting and cleans up output.
2026-02-04 14:35:57 +01:00
Christian Monch
e94a0dd27a rename delete_record.py to delete_records.py
The module name should correspond with the
subcommand name.
2026-02-04 14:29:07 +01:00
Christian Monch
2d2a622616 use session in clean-incoming 2026-02-04 14:28:22 +01:00
Christian Monch
44ec55709d improve --dry-run output in auto_curate 2026-02-04 14:24:48 +01:00
Christian Monch
f179c024d0 use session in auto-curate
This commit uses a session in the `dtc` subcommand
`auto-curate` to allow connection re-use.

It also fixes a possible duplicated reporting of
errors.
2026-02-04 11:08:07 +01:00
Christian Monch
2ef2da870b add session-support to communicate.py
This commit adds optional requests.Session
support to the methods in `communicate.py`.

This is the first step in supporting session
on all commands. The following commits will
add session-support to various dtc-subcommands
2026-02-04 10:58:10 +01:00