plynx.db.node_cache

Node Cache and utils

Module Contents

plynx.db.node_cache.demo_config :DemoConfig[source]
class plynx.db.node_cache.NodeCache[source]

Bases: plynx.db.db_object.DBObject

Basic Node Cache with db interface.

DB_COLLECTION[source]
_id :ObjectId[source]
key :str =[source]
node_id :Optional[ObjectId][source]
run_id :Optional[ObjectId][source]
outputs :List[Output][source]
logs :List[Output][source]
removed :bool = False[source]
protected :bool = False[source]
static instantiate(node: Node, run_id: ObjectId)[source]

Instantiate a Node Cache from Node.

Args:
node (Node): Node object run_id (ObjectId): Run ID
Return:
(NodeCache)
static generate_key(node: Node)[source]

Generate hash.

Args:
node (Node): Node object
Return:
(str) Hash value