bookish.avenue package

Submodules

bookish.avenue.avenue module

class bookish.avenue.avenue.AvenueContext(root, **kwargs)

Bases: dict

parent(obj)
class bookish.avenue.avenue.AvenueManager

Bases: object

Simple class that provides caching of compiled Avenue strings.

compile(avestring)
find(ave, root, start, **vars)
exception bookish.avenue.avenue.AvenueParserError

Bases: exceptions.Exception

bookish.avenue.avenue.find(parsed, root, **vars)
bookish.avenue.avenue.get_parent(parents, obj)
bookish.avenue.avenue.make_parents(data)
bookish.avenue.avenue.parse(avestring)

bookish.avenue.patterns module

class bookish.avenue.patterns.Action(source)

Bases: bookish.avenue.patterns.Pattern

matches(ctx, obj)
pull(ctx, obj)
class bookish.avenue.patterns.Ancestor(left, right)

Bases: bookish.avenue.patterns.Pattern

matches(ctx, obj)
pull(ctx, obj)
class bookish.avenue.patterns.App(name, patterns)

Bases: bookish.avenue.patterns.Pattern

matches(ctx, obj)
pull(ctx, obj)
class bookish.avenue.patterns.Child(left, right)

Bases: bookish.avenue.patterns.Pattern

matches(ctx, obj)
pull(ctx, obj)
class bookish.avenue.patterns.Comparison(name, opname, value)

Bases: bookish.avenue.patterns.TestPattern

ops = {'!=': <built-in function ne>, '<': <built-in function lt>, '<=': <built-in function le>, '=': <built-in function eq>, '==': <built-in function eq>, '>': <built-in function gt>, '>=': <built-in function ge>}
class bookish.avenue.patterns.Filter(pattern, test)

Bases: bookish.avenue.patterns.Pattern

matches(ctx, obj)
pull(ctx, obj)
class bookish.avenue.patterns.Lookup(key)

Bases: bookish.avenue.patterns.Pattern

matches(ctx, obj)
pull(ctx, obj)
class bookish.avenue.patterns.Pattern

Bases: object

matches(ctx, obj)
pull(ctx, obj)
class bookish.avenue.patterns.Predicate(source)

Bases: bookish.avenue.patterns.TestPattern

class bookish.avenue.patterns.Root

Bases: bookish.avenue.patterns.Pattern

matches(ctx, obj)
pull(ctx, obj)
class bookish.avenue.patterns.Sequence(patterns)

Bases: bookish.avenue.patterns.Pattern

matches(ctx, obj)
pull(ctx, obj)
class bookish.avenue.patterns.Slice(start, stop=None)

Bases: bookish.avenue.patterns.Pattern

matches(ctx, obj)
pull(ctx, obj)
class bookish.avenue.patterns.Star

Bases: bookish.avenue.patterns.Pattern

matches(ctx, obj)
pull(ctx, obj)
class bookish.avenue.patterns.TestPattern

Bases: bookish.avenue.patterns.Pattern

matches(ctx, obj)
pull(ctx, obj)
class bookish.avenue.patterns.Union(patterns)

Bases: bookish.avenue.patterns.Pattern

matches(ctx, obj)
pull(ctx, obj)
bookish.avenue.patterns.run_code(ctx, obj, code)

Module contents