Namespaces

Reference

Examples

List namespaces:

namespaces = gl.namespaces.list()

Search namespaces:

namespaces = gl.namespaces.list(search='foo')

Get a namespace by ID or path:

namespace = gl.namespaces.get("my-namespace")

Get existence of a namespace by path:

namespace = gl.namespaces.exists("new-namespace")

if namespace.exists:
    # get suggestions of namespaces that don't already exist
    print(namespace.suggests)