#!/usr/bin/python # This module will pack zopes database # Assuming you have placed the pack external method in the root import sys, xmlrpclib class packDb: def __init__(self): s=xmlrpclib.Server('http://myserver:8080/', transport=None, username='username', password='password') # This is the external method. If you haven't placed it in the root then adjust as required. s.pack() if __name__ == '__main__': x = packDb()