|
And
For use with python's filter method, simulates logical AND
Usage: filter(And(f1,f2,fn), sequence)
|
|
Call
Call object encapsulating any code, thus providing a simple facade for it
:note: derive from it if a more complex call is required
|
|
CallAdv
Advanced call class providing additional options:
|
|
CallOnDeletion
Call the given callable object once this object is being deleted
Its usefull if you want to assure certain code to run once the parent scope
of this object looses focus
|
|
DAGTree
Adds utility functions to DirectedTree allowing to handle a directed tree like a dag
:note: currently this tree does not support instancing
:todo: add instancing support
|
|
Event
Descriptor allowing to easily setup callbacks for classes derived from
EventSender
|
|
EventSender
Base class for all classes that want to provide a common callback interface
to supply event information to clients.
|
|
InterfaceMaster
Base class making the derived class an interface provider, allowing interfaces
to be set, queried and used including build-in use
|
|
MetaCopyClsMembers
Meta class copying members from given classes onto the type to be created
it will read the following attributes from the class dict:
forbiddenMembers, overwritePrefix, __virtual_bases__
|
|
Or
For use with python's filter method, simulates logical OR
Usage: filter(Or(f1,f2,fn), sequence)
|
|
PipeSeparatedFile
Read and write simple pipe separated files.
|
|
Singleton
Singleton classes can be derived from this class,
you can derive from other classes as long as Singleton comes first (and class doesn't override __new__)
|
|
WeakInstFunction
Create a proper weak instance to an instance function by weakly binding
the instance, not the bound function object.
|
|
|
|
copyClsMembers(sourcecls,
destcls,
overwritePrefix=None,
forbiddenMembers=[ ] ,
copyNamespaceGlobally=None)
Copy the members or sourcecls to destcls while ignoring member names in forbiddenMembers
It will only copy mebers of this class, not its base classes |
source code
|
|
|
decodeString(valuestr)
Returns:
int,float or str from string valuestr - a string that encodes a
numeric value or a string |
source code
|
|
|
|
|
iterNetworkxGraph(graph,
startItem,
direction=0,
prune=<function <lambda> at 0x2aedb90>,
stop=<function <lambda> at 0x2aedc08>,
depth=-1,
branch_first=True,
visit_once=True,
ignore_startitem=1)
Returns:
iterator yielding pairs of depth, item |
source code
|
|
|
list_submodules(path)
Returns:
set(submodule_name, ...) list of submodule names that could
be imported using __import__ |
source code
|
|
|
|
|
packageClasses(importBase,
packageFile,
predicate=<function <lambda> at 0x2aedaa0>)
Returns:
all classes of modules of the given package file that additionally
match given predicate |
source code
|
|
|
pythonIndex(index,
length)
Compute the actual index based on the given index and array length, thus
-1 will result in the last array element's index |
source code
|
|
|
|