Fetch API Parametric data
Interface for fetching data related to parametric models and filters.
APIFetchParametric
Bases: APIFetchInternal
Exposes functions for fetching flight data from the server.
Source code in src/rmlab/api/fetch/parametric.py
17 18 19 20 21 22 23 24 25 26 27 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 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 |
|
fetch_customers_choice_model(scen_id, pmodel_id)
async
Fetch a customers choice model from id in scenario
Parameters:
Name | Type | Description | Default |
---|---|---|---|
scen_id | int | Scenario ID | required |
pmodel_id | str | Model ID | required |
Returns:
Type | Description |
---|---|
BaseChoiceModel | The requested customers choice model |
Source code in src/rmlab/api/fetch/parametric.py
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
|
fetch_customers_request_model(scen_id, pmodel_id)
async
Fetch a customers request model from id in scenario
Parameters:
Name | Type | Description | Default |
---|---|---|---|
scen_id | int | Scenario ID | required |
pmodel_id | str | Model ID | required |
Returns:
Type | Description |
---|---|
BaseRequestModel | The requested customers request model |
Source code in src/rmlab/api/fetch/parametric.py
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
|
fetch_parametric_filters(scen_id)
async
Fetch a list of all parametric filters of scenario from server.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
scen_id | int | Scenario ID | required |
Returns:
Type | Description |
---|---|
List[PFilter] | List of parametric filters |
Source code in src/rmlab/api/fetch/parametric.py
20 21 22 23 24 25 26 27 28 29 30 |
|
fetch_parametric_models(scen_id)
async
Fetch a list of all parametric models of scenario from server.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
scen_id | int | Scenario ID | required |
Returns:
Type | Description |
---|---|
List[PModel] | List of parametric models |
Source code in src/rmlab/api/fetch/parametric.py
32 33 34 35 36 37 38 39 40 41 42 |
|
fetch_pricing_behavior_model(scen_id, pmodel_id)
async
Fetch a pricing behavior model from id in scenario
Parameters:
Name | Type | Description | Default |
---|---|---|---|
scen_id | int | Scenario ID | required |
pmodel_id | str | Model ID | required |
Returns:
Type | Description |
---|---|
BaseBehaviorModel | The requested pricing behavior model |
Source code in src/rmlab/api/fetch/parametric.py
99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 |
|
fetch_pricing_optimizer_model(scen_id, pmodel_id)
async
Fetch a pricing optimizer model from id in scenario
Parameters:
Name | Type | Description | Default |
---|---|---|---|
scen_id | int | Scenario ID | required |
pmodel_id | str | Model ID | required |
Returns:
Type | Description |
---|---|
OptimizerModel | The requested pricing optimizer model |
Source code in src/rmlab/api/fetch/parametric.py
117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 |
|
fetch_pricing_range_model(scen_id, pmodel_id)
async
Fetch a pricing range model from id in scenario
Parameters:
Name | Type | Description | Default |
---|---|---|---|
scen_id | int | Scenario ID | required |
pmodel_id | str | Model ID | required |
Returns:
Type | Description |
---|---|
RangeModel | The requested pricing range model |
Source code in src/rmlab/api/fetch/parametric.py
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 |
|