POC testing - In Memory Library Loading
I was playing around with how python imports libraries and I understand that the code will be executed on import if you don't have everything in functions and use if __name__ == __main__.
So naturally I thought, what if I could import code and run that code without ever having to type "import" and or write to files/touch the system.
And thus this was born, my attempt at making a way to load code/libraries from a link or within the file itself without needing to write to a temp file or use "import".
I am not aware of a simple way to do this on windows systems, I am still looking into ways. But for python projects on linux systems, you can load and execute code filelessly in memory.
Donate to me here:
- Don't have Cashapp? Sign Up