2 ms·
We made a python module to run complicated non-python code in python (like stuff that needs ridiculous environmental gymnastics). It's called sidomo (Simple Doc
by stephensonsco 11y ago
We made a python module to run complicated non-python code in python (like stuff that needs ridiculous environmental gymnastics). It's called sidomo (Simple Docker Module) and it's used to easily make python modules that are actually docker containers (well, docker images). These containers take an input, then hit it with the contained code, and send the output back to pure python.
The hello world:
from sidomo import Container
with Container('ubuntu') as c:
for line in c.run('echo hello from the;echo other side;'):
print(line)
- StavrosK 11y agoIt's probably a happy coincidence that that means "quick" in Greek.
- noajshu 11y agoThat is lovely--you're referring to 'σύντομα'?
- rantanplan 11y agoQuite close, he is referring to "σύντομο" the adjective. "σύντομα" would be the adverb.
- reinhardt 11y ago<pedantic>"brief" would be a closer translation</pedantic>
- StavrosK 11y agoYou're the best kind of correct.