<div dir="ltr">Hi,<div>Yes both default .pcppass and PCP environment variable features are available in pyPCP.</div><div><br></div><div>Regards</div><div>Umar Hayat</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Feb 10, 2021 at 6:25 PM Tatsuo Ishii <<a href="mailto:ishii@sraoss.co.jp">ishii@sraoss.co.jp</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Umar,<br>
<br>
Looks good to me. One question. It is possible to have .pcppass file<br>
so that users could avoid to input password while invoking PCP<br>
commands. Does pcp_cli have the feature?<br>
<br>
Best regards,<br>
--<br>
Tatsuo Ishii<br>
SRA OSS, Inc. Japan<br>
English: <a href="http://www.sraoss.co.jp/index_en.php" rel="noreferrer" target="_blank">http://www.sraoss.co.jp/index_en.php</a><br>
Japanese:<a href="http://www.sraoss.co.jp" rel="noreferrer" target="_blank">http://www.sraoss.co.jp</a><br>
<br>
> Hi Hackers,<br>
> Pgpool-II Communication Protocol (PCP) library and pcp_* utilities are used<br>
> to manage & monitor Pgpool-II cluster. Pgpool-II and these utilities are<br>
> Linux based and to develop application and web interface you have to be on<br>
> some *nix system. Which limit the choice of integration of Pgpool-II with<br>
> other systems and platforms. To overcome this limitation, I develop a<br>
> Native Python based PCP library (which does not require Pgpool-II/PCP<br>
> libarary) with name pyPCP. Being written in Python language it can be used<br>
> on any system. I tested pyPCP on Mac, Linux and Windows systems. pyPCP can<br>
> be found on github link: <a href="https://github.com/uhayat/pypcp" rel="noreferrer" target="_blank">https://github.com/uhayat/pypcp</a><br>
> <br>
> Based  on pyPCP, a utility is also available in pyPCP github repository<br>
> named pcp_cli.py. Currently there around 13 pcp_* utilities are being built<br>
> along with Pgpool-II. By the time we add more features/commands in PCP,<br>
> number of these utilities will increase. pcp_cli combines functionality of<br>
> all those utilities in a single utility. Like Azure, Github CLIs, pcp_cli<br>
> provide groups and sub-groups of command based on relevancy. I propose<br>
> following structure for pcp_cli commands:<br>
> pcp_cli pool status<br>
> pcp_cli pool stop<br>
> pcp_cli pool reload-config<br>
> pcp_cli pool check-health-stats<br>
> pcp_cli node count<br>
> pcp_cli node info<br>
> pcp_cli node attach<br>
> pcp_cli node detach<br>
> pcp_cli node promote<br>
> pcp_cli node recovery<br>
> pcp_cli process count<br>
> pcp_cli process info<br>
> pcp_cli watchdog info<br>
> <br>
> PyPCP and PCP_CLI will provide users freedom to develop applications and<br>
> website across platforms. My next goal is to provide these utilities using<br>
> PIP, so that users can install them via pip command instead of cloning<br>
> github repo.<br>
> <br>
> Waiting for suggestions and feedback to improve it further.<br>
> <br>
> Regards<br>
> Umar Hayat<br>
</blockquote></div>