{"id":25176209,"url":"https://github.com/redturtle/rt.zps","last_synced_at":"2025-04-04T01:40:29.559Z","repository":{"id":2789122,"uuid":"3789053","full_name":"RedTurtle/rt.zps","owner":"RedTurtle","description":"RedTurtle Zope Process Inspector","archived":false,"fork":false,"pushed_at":"2015-11-13T22:53:32.000Z","size":264,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-10T13:49:37.771Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://www.redturtle.it","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RedTurtle.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-03-21T17:04:33.000Z","updated_at":"2023-02-18T10:43:30.000Z","dependencies_parsed_at":"2022-09-10T13:12:07.432Z","dependency_job_id":null,"html_url":"https://github.com/RedTurtle/rt.zps","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedTurtle%2Frt.zps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedTurtle%2Frt.zps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedTurtle%2Frt.zps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedTurtle%2Frt.zps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RedTurtle","download_url":"https://codeload.github.com/RedTurtle/rt.zps/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247107819,"owners_count":20884794,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-09T13:16:39.187Z","updated_at":"2025-04-04T01:40:29.539Z","avatar_url":"https://github.com/RedTurtle.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"zps - A zope processes inspector\n================================\n\n**zps** is addressed to the manager of zope and plone sites that want to get quickly\nget informations about the running instances of zope.\n\nInstallation\n------------\n::\n\n  easy_install psutil\n  easy_install rt.zps\n\nThanks to `@der_sven_ \u003chttp://twitter.com/der_sven_\u003e`_ you can find up to date **debian packages** here:\n\n- http://www.apt.leftxs.org/\n\nUsage\n-----\n**zps** basic usage is straightforward: ::\n\n  [user@localhost]$zps\n  CWD:      /home/user/plone1\n  User:     user\n  PID:      1234\n  Conf:     /home/user/plone1/parts/instance/etc/zope.conf\n  Address:  8081\n  Memory:   1.96%\n\n  CWD:      /home/user/plone2\n  User:     user\n  PID:      12345\n  Conf:     /home/user/plone2/parts/instance/etc/zope.conf\n  Address:  8082\n  Memory:   1.96%\n\nThe default action is to report, for each running instance of zope that it founds:\n \n* the Current Working Directory (CWD)\n* the id of the user who is running the process\n* the process PID\n* the zope configuration file used by the instance\n* the port (as calculated parsing the configuration file)\n* the memory usage\n\nTo obtain usage information for **zps** just type zps --help, you will get this::\n\n  [user@localhost]$zps\n  zps - report a snapshot of the current zope processes.\n\n  USAGE:\n  zps\n  zps --help\n  zps --pid 1111\n  zps --port 8080\n  zps --grep plone\n\nAs you can see **zps** can filter the results per **zps** or port, e.g., if calling **zps**\nreturns the report about the two instances above, you will have the following::\n\n  [user@localhost]$zps --pid 1234\n  CWD:      /home/user/plone1\n  User:     user\n  PID:      1234\n  Conf:     /home/user/plone1/parts/instance/etc/zope.conf\n  Address:  8081\n  Memory:   1.96%\n\n  [user@localhost]$zps --port 8082\n  CWD:      /home/user/plone2\n  User:     user\n  PID:      12345\n  Conf:     /home/user/plone2/parts/instance/etc/zope.conf\n  Address:  8082\n  Memory:   1.96%\n\nIn the case no instance is found, you will have::\n\n  [user@localhost]$zps\n  No running zope instance found\n\n**TODO**: filter output information\nIt may happen that your server starts to be crowded. In that case the output of \n**zps** is quickly parsable.\nTwo command line flags should then be introduced:\n \n* --show\n* --hide\n\n**TODO**: colorize output\nIt would be a nice feature to highlight with colors the memory usage. \nIf the output is in the range:\n\n* 0%-5%: green\n* 0%-10%: yellow\n* 10%-20%: red\n* 20%-100%: blinking red\n\nExamples\n--------\n::\n\n  [user@localhost]$zps --hide CWD,User,Memory\n  PID:      1234\n  Conf:     /home/user/plone1/parts/instance/etc/zope.conf\n  Address:  8081\n\n  PID:      12345\n  Conf:     /home/user/plone2/parts/instance/etc/zope.conf\n  Address:  8082\n\n  [user@localhost]$zps --hide CWD,User,Memory\n  CWD:      /home/user/plone1\n  User:     user\n  Memory:   1.96%\n\n  CWD:      /home/user/plone2\n  User:     user\n  Memory:   1.96%\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredturtle%2Frt.zps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredturtle%2Frt.zps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredturtle%2Frt.zps/lists"}