I have a bash script provided by a 3rd party which defines a set of functions. Here\'s a template of what that looks like
$ cat test.sh
#!/bin/bash
define
No, the function is only available within that bash script.
What you could do is adapt the bash script by checking for an argument and execute functions if a specific argument is given.
For example
# $1 is the first argument
case $1 in
"go" )
go
;;
"otherfunc" )
otherfunc
;;
* )
echo "Unknown function"
;;
esac
Then you can call the function like this:
subprocess.call("test.sh otherfunc")