Sessions

class statey.Session(ns: statey.syms.session.Namespace)

A session contains a namespace and associated data and objects

abstract clone() → statey.syms.session.Session

Return a copy of this session that can be modified without affecting this one

abstract dependency_graph() → networkx.classes.multidigraph.MultiDiGraph

Return a graph whose nodes are the top-level names registered in this session’s namespace and whose edges are the dependencies between those nodes within this session. Each edge should include path as a property with the relative path reference that the dependency represents. Note that all paths in this result should be returned as tuples so that they are not dependent on this session’s path parser implementation.

abstract get_data(key: str) → Any

Get encoded data at the given key with no resolution

abstract resolve(symbol: statey.syms.object_.Object, allow_unknowns: bool = False, decode: bool = True) → Any

Resolve the given symbol with the given input data.

class statey.syms.py_session.PythonSession(ns: statey.syms.session.Namespace)

A session implementation for resolving python objects