This is the low level Prism connection object. It is used for initalizing prism and open a repository. 

init() Boolean Initialize prism
close() Boolean Close down prism.
setprismpath(path) None Set the path where you find the prism support files. 
openrepo(
name,
path,
[username]
[password])
Repo
or
int
Open a repository. If it goes wrong return the prism error code.
from debprism import Prism
import os
prism = Prism()
ppath=sys.executable
parts = os.path.split(ppath)
sp = parts[0]+os.path.sep
prism.setprismpath(sp)
prism.init()
repo = prism.openrepo("MyApp", "C:\Data\MyApp", "myusername", "secretpassword")
if (isinstance(repo, int): # we was not successfull
    print("You had a problem. The error code is %s" % repo)
else:
    print("Your repo is open for action")

Ex. open a repository