MapRoute
Creates a router out of a :class:dict.
Attributes
| Attribute | Type | Description |
|---|---|---|
| map | dict | A dictionary mapping exact string keys to their corresponding route configurations. |
| patterns | [OrderedDict](../../utils/collections/ordereddict.md?sid=celery_utils_collections_ordereddict) | An ordered collection of compiled regular expressions or pattern objects used to match route names that do not have an exact match in the map. |
Constructor
Signature
def MapRoute(
map: Union[Mapping, Iterable]
) - > null
Parameters
| Name | Type | Description |
|---|---|---|
| map | Union[Mapping, Iterable] | A mapping object or an iterable of key-value pairs representing route definitions. |
Signature
def MapRoute(
map: Union[Mapping, Iterable]
) - > null
Parameters
| Name | Type | Description |
|---|---|---|
| map | Union[Mapping, Iterable] | A dictionary or iterable of pairs mapping task names or glob patterns to their respective routing configurations. |