Python - topic()
This is reference documentation for the Nitric Python SDK. To learn about Topics and Pub/Sub in Nitric start with the Async Messaging docs.
Creates a new Topic.
from nitric.resources import topicfrom nitric.application import Nitricupdates = 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 topicfrom nitric.application import Nitricupdates = topic('updates')Nitric.run()
See also
Last updated on Apr 16, 2025