curation-utils/.python-version
Michael Hanke 3766c47914
First rough sketch of a curation pipeline implementation
The basic idea is to pull from one API endpoint, and to push to
another, while doing some checks and transformations in between.

The demo pipeline can be invoked via

```
uv run inm7meta pipe-user2dataperson \
  --fetch-token <token1> \
  --push-token <token2>
```

It ...
- pulls `User` records from the user management graph
- ignores any record without an ORCID
- performs PID mapping against a (local) persistent mapping file
- posts any new record (a record with the target PID does not exist yet)
- diffs any other record (minus the submitter annotation)
- skips any would-be identical post
- displays a recursive record diff
- or force-posts any modifications

This first implementation is now a candidate to a more structured
and more generally applicable implementation.

Ideas:

- factor out filter method (which records to process)
- factor out transformation method
2025-05-25 15:19:17 +02:00

1 line
5 B
Text