If I create a package in Python, then another Python user can import that package and interface with it.
How can I create a package so that it doesn\'t matter what l
In a similar spirit as what Nurzhan mentions above regarding CORBA, you could use OPC UA: https://en.m.wikipedia.org/wiki/OPC_Unified_Architecture
It is an architecture oriented to device control via server to client communication but may suit your needs. In my work we have used licensed C/C++ (Unified automation and Java sdks (prosys), explored Python options and also embedded solutions from PLCs and the inter-plarform communication works well.
There are several open source projects for OPC UA in Python in the web, e.g. freeopcua.