JsonPath

class dasha.web.extensions.ipc_backends.rejson.JsonPath(path='.')[source]

Bases: rejson.path.Path

This extends Path with various helpers.

Make a new path based on the string representation in path

Attributes Summary

name

parent

root

sep

Methods Summary

is_absolute(self)

is_empty(self)

is_root(self)

joinpath(self, other)

Join this path with other.

relative_to(self, other)

Compute a version of this path relative to other.

Attributes Documentation

name
parent
root = '.'
sep = '.'

Methods Documentation

is_absolute(self)[source]
is_empty(self)[source]
is_root(self)[source]
joinpath(self, other)[source]

Join this path with other.

ValueError is raised if other is absolute.

relative_to(self, other)[source]

Compute a version of this path relative to other.