pipda
package
pipda
Provides Symbolic and Reference classes
Classes
Reference
(
parent
,ref
)
— The Reference class, used to define how it should be evaluatedaccording to the context for references, for example,f.A
,f['A']
or the references of them (i.e.f.A.B
,f.A['b']
, etc) </>ReferenceAttr
— Attribute references, for example:f.A
,f.A.B
etc.</>ReferenceItem
— Subscript references, for example:f['A']
,f.A['B']
etc</>
Provide utilities
Classes
PipeableCallCheckWarning
— Warns when checking verb is called normally or using piping</>MultiImplementationsWarning
— Warns when multiple implementations are found</>PipeableCallCheckError
— Raises when checking verb is called normally or using piping</>TypeHolder
— A holder for a type that indicates the function passed toregister_verb or register_func is a placeholder (typically raising NotImplementedError), not a real implementation. </>
Functions
evaluate_expr
(
expr
,data
,context
)
(any) — Evaluate a mixed expression</>has_expr
(
expr
)
(bool) — Check if expr has any Expression object in it</>is_piping
(
pipeable
,fallback
)
(bool) — Check if the pipeable is called with piping.</>update_user_wrapper
(
x
,name
,qualname
,doc
,module
)
— Update the wrapper with user specified values</>
Provides the context to evaluate f.A and f['A']
By default, 1. in the context of select, both f.A and f['A'] return 'A' 2. in the context of evaluation, f.A returns data.A and f['A'] returns data['A'] 3. when it is pending, you will need to evaluate args and kwargs yourself.
Classes
ContextError
— Any errors related to contexts</>ContextBase
(
)
— The context abstract class, defining howthe Reference objects are evaluated </>ContextSelect
— Context used in a select context</>ContextEval
— Context used in a data-evaluation context</>ContextPending
— Pending context, don't evaluate the expression,awaiting next avaiable context </>Context
— Context to solve f.A and f['A']</>
Provide operators
Classes
OperatorCall
— The operator call</>Operator
— Defines the operators</>
Functions
register_operator
(
opclass
)
— Register a operator class</>
module
pipda.expression
Provides the abstract class Expression
Classes
Expression
(
)
— The abstract Expression class</>
Functions
register_array_ufunc
(
func
)
— Register a function to be used as array_ufunc on Expression</>