plugins_controller
plugins.plugins_controller.get_zipcode_from_plugins(zipcode)
async
Async call to all plugins at decame time The first task that returns successfully returns and cancels the others.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
zipcode |
PositiveInt
|
zipcode needed to search address on api's |
required |
Returns:
Name | Type | Description |
---|---|---|
DictResponse |
DictResponse
|
'data' key has all addresses (db model) based on filter or empty list; 'provider' key has the service provider plugin |
Todo
Create all tasks based on config Add logs
Source code in plugins/plugins_controller.py
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
|