The Assimilation Project  based on Assimilation version 1.1.7.1474836767
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

 isdefault
 
 name
 
 auth
 
 filename
 
 dirname
 

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 cmadb.py.

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 cmadb.py.

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 cmadb.py.

References cma.cmadb.Neo4jCreds.auth, compression_types.name, and cma.cmadb.Neo4jCreds.name.

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

Definition at line 157 of file cmadb.py.

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

Here is the call graph for this function:

def cma.cmadb.Neo4jCreds.randpass (   length)
static
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 cmadb.py.

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 cmadb.py.

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

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

Here is the caller graph for this function:

Field Documentation

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

Definition at line 84 of file cmadb.py.

int cma.cmadb.Neo4jCreds.default_length = 16
static

Definition at line 85 of file cmadb.py.

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

Definition at line 83 of file cmadb.py.

cma.cmadb.Neo4jCreds.dirname

Definition at line 101 of file cmadb.py.

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

cma.cmadb.Neo4jCreds.filename
cma.cmadb.Neo4jCreds.isdefault

Definition at line 94 of file cmadb.py.

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

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

Definition at line 86 of file cmadb.py.


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