A wrapper for subprocess popen
Project description
OSMeterium
The osmeterium is a defensive organ found in all papilionid larvae, in all stages.
Usage
Async
t = run_command_async('ping -c www.google.com',
(lambda x: print('Hey this stdout output {0}'.format(x))),
(lambda x: print('Hey this strerr output {0}'.format(x))),
(lambda y: print('This is exit code ${0}'.format(y))),
(lambda: print('Command success'))) # return a Thread Object
t.join()
Sync
t = run_command('ping -c www.google.com',
(lambda x: print('Hey this stdout output {0}'.format(x))),
(lambda x: print('Hey this strerr output {0}'.format(x))),
(lambda y: print('This is exit code ${0}'.format(y))),
(lambda: print('Command success')))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
osmeterium-0.0.1.tar.gz
(1.9 kB
view hashes)
Built Distribution
Close
Hashes for osmeterium-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d3ae44fffa03a44c050c9b70ff8a6ecf707d44c6625dcac309b4d88067b4cfc |
|
MD5 | 49f5b4b5daec26848ef8c8ac77c8054b |
|
BLAKE2b-256 | 8394e4c23223d2aed24dd64db3584d79de6b450ba6f682286112c4e08dabc135 |