Python - topic()

Creates a new Topic.

from nitric.resources import topic
from nitric.application import Nitric

updates = topic('updates')

Nitric.run()

Parameters

  • Name
    name
    Required
    Required
    Type
    string
    Description

    The name of the topic to create.

Examples

Create a new topic

from nitric.resources import topic
from nitric.application import Nitric

updates = topic('updates')

Nitric.run()

See also