I was wondering if anyone knew of an implementation/library I could use to perform a deep copy of a PyObject without using the Python API.
I'd prefer something in C (as I currently use, and am somewhat familiar with CFFI), but anything (no matter the language - e.g. RUST), would be greatly appreciated.
The reason for this, is that I'm attempting to perform an analysis of Python variables (for a real-time Python debug library), but don't want to perform the analysis during the execution of the program being analyzed (as that would greatly impact program performance).
If I could analyze the variables post-execution (but before program termination), that would be tremendously helpful. In order to do that, I'd need to save the variables in some other thread (preferably a C program which doesn't require the GIL - so that the main Python program can continue execution uninterrupted).
I personally don't think there's anything out there, as I've looked already, but thought it might be worth a shot asking someone on Stack Overflow.
Thank you.