With roslibpy you can communicate with ROS stuff without being a ROS Node:
https://github.com/gramaziokohler/roslibpy
"Unlike the rospy library, this does not require a local ROS environment, allowing usage from platforms other than Linux."
Please also consider, that this is related mostly to ROS1.