The Assimilation Project  based on Assimilation version
cma.cmadb.Neo4jCreds Class Reference
Inheritance diagram for cma.cmadb.Neo4jCreds:
Collaboration diagram for cma.cmadb.Neo4jCreds:

Public Member Functions

def __init__ (self, filename=None, neologin=None, neopass=None)
def update (self, newauth=None, length=None)
def authenticate (self, uri='localhost:7474')
def __str__ (self, filename=None)

Static Public Member Functions

def randpass (length)

Data Fields


Static Public Attributes

string default_name = 'neo4j'
string default_auth = 'neo4j'
int default_length = 16
string passchange = 'neoauth'

Detailed Description

Definition at line 81 of file

Constructor & Destructor Documentation

def cma.cmadb.Neo4jCreds.__init__ (   self,
  filename = None,
  neologin = None,
  neopass = None 
Neoj4Creds constructor

:arg filename location of where to find/stash the credentials (optional)

Definition at line 88 of file

Member Function Documentation

def cma.cmadb.Neo4jCreds.__str__ (   self,
  filename = None 
We return the current assimilation Neo4j credentials (login, password) as a string
:return: credentials tuple (login, password)

Definition at line 167 of file

References cma.cmadb.Neo4jCreds.auth,, and

def cma.cmadb.Neo4jCreds.authenticate (   self,
  uri = 'localhost:7474' 
Authenticate ourselves to the neo4j database using our credentials

Definition at line 157 of file

References cma.cmadb.Neo4jCreds.auth, cma.cmadb.Neo4jCreds.isdefault,,, and cma.cmadb.Neo4jCreds.update().

Here is the call graph for this function:

def cma.cmadb.Neo4jCreds.randpass (   length)
Generate a random password from letters, digits and punctuation

:param length: length of the password to generate
:return: password string

Definition at line 115 of file

def cma.cmadb.Neo4jCreds.update (   self,
  newauth = None,
  length = None 
Update credentials from the new authorization info we've been given.

Definition at line 127 of file

References cma.cmadb.Neo4jCreds.auth, cma.cmadb.Neo4jCreds.dirname, cma.cmadb.Neo4jCreds.filename,, and

Referenced by cma.cmadb.Neo4jCreds.authenticate().

Here is the caller graph for this function:

Field Documentation

string cma.cmadb.Neo4jCreds.default_auth = 'neo4j'

Definition at line 84 of file

int cma.cmadb.Neo4jCreds.default_length = 16

Definition at line 85 of file

string cma.cmadb.Neo4jCreds.default_name = 'neo4j'

Definition at line 83 of file


Definition at line 101 of file

Referenced by cma.cmadb.Neo4jCreds.update().


Definition at line 94 of file

Referenced by cma.cmadb.Neo4jCreds.authenticate().

string cma.cmadb.Neo4jCreds.passchange = 'neoauth'

Definition at line 86 of file

The documentation for this class was generated from the following file: