Post by Mayank LalwaniHello,
Has anyone here been able to open,read or write Enscribe files using Python?
I have been able to read and write 101 coded files in Python but the 0 coded files throw error on open command which reads "OSError: [Errno 4022] Invalid function argument: '<file-name>' ".
You might be able to use popen from the os module to develop at least a limited ability to work with Enscribe files from python.
It is possible for OSS programs to open and read or write Enscribe files. I imagine you could write simple C programs that takes the relevant arguments for each operation you want to perform on an Enscribe file, have the program write the result of the operation to stdout, then use those programs from your python code via popen. It would involve starting and stopping a process for each I/O, which would be kind of slow, but if you don't have to do much I/O, it might be workable.
I should say I have never tried this, nor have I used python on OSS at all, so I'm just speculating, so take that into account.
I don't know whether there is a way to open an interprocess file to a Guardian server from python, but if someone knows how to do that, that would be a way to access Enscribe from python without requiring a process start/stop for each I/O. Of course, at some point, it probably would be less trouble to write the whole thing in C.