hgrecco / pizco

Pizco is Python module/package that allows python objects to communicate via ZMQ. Objects can be exposed to other process in the same computer or over the network, allowing clear separation of concerns, resources and permissions.

Home Page:https://pizco.readthedocs.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pizco singleton

PierreBizouard opened this issue · comments

create a class singleton with a name, perticuliary usefull for inapp bind to random port, gui classes

  • analyse process structure thanks to psutils
  • get root process
  • create/or check a tempfile named "rootprocessid-creationdate-applicationname-singletonname"
  • check the file for the port of the process, if the proxy creation is possible
  • create proxy or launch server if availlable, issue a warning if the file is allready created