cc-py-commons 0.5.3__tar.gz → 0.5.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/PKG-INFO +1 -1
- cc_py_commons-0.5.5/cc_py_commons/utils/geocode_location.py +26 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons.egg-info/PKG-INFO +1 -1
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons.egg-info/SOURCES.txt +1 -2
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/setup.py +1 -1
- cc_py_commons-0.5.3/cc_py_commons/rfp/lane_price_result_fields.py +0 -62
- cc_py_commons-0.5.3/cc_py_commons/rfp/price_lane_file_input_fields.py +0 -48
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/README.md +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/__init__.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/bids/__init__.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/bids/bid.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/bids/bid_history.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/bids/bid_history_schema.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/bids/bid_schema.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/carriers/__init__.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/carriers/account_carrier_map.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/carriers/account_carrier_map_schema.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/carriers/carrier.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/carriers/carrier_schema.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/carriers/contact.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/carriers/contact_schema.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/config/__init__.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/config/env.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/config/mcleod_load_fields.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/config/pc_miler_config.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/db/__init__.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/db/connection.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/geolocate.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/lanes/__init__.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/lanes/carrier_lane.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/lanes/carrier_lane_schema.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/lanes/lane.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/lanes/lane_schema.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/loads/__init__.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/loads/equipment.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/loads/equipment_schema.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/loads/equipment_types.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/loads/freighthub_contact.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/loads/freighthub_contact_schema.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/loads/load.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/loads/load_schema.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/loads/load_status.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/loads/location.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/loads/location_schema.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/loads/map_load_response.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/quotes/__init__.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/quotes/quote.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/quotes/quote_schema.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/quotes/quote_status.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/rfp/__init__.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/rfp/create_table.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/rfp/rfp_status.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/schemas/__init__.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/schemas/camel_case_schema.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/__init__.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/booking_agent/__init__.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/booking_agent/accept_bid.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/booking_agent/cancel_bid.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/booking_agent/constants.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/booking_agent/counter_bid.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/booking_agent/decline_bid.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/booking_agent/get_bid_by_amazon_order_id.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/booking_agent/get_quote.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/booking_agent/update_bid.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/c4/__init__.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/c4/amazon_session_token.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/c4/constants.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/c4/get_account.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/c4/get_account_settings.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/c4/get_integration.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/c4/get_users_for_account.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/c4/refresh_amazon_token.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/carrier_hub/__init__.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/carrier_hub/get_carrier.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/carrier_hub/list_carriers.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/carrier_hub/list_contacts.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/carrier_hub/update_contact.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/freight_hub/__init__.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/freight_hub/post_freight_hub_load.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/mercury/__init__.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/mercury/create_account_folder.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/mercury/db/__init__.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/mercury/db/delete_table.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/mercury/get_client.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/mercury/get_green_screens_lane_price.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/mercury/get_import_stat.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/mercury/get_lane_price.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/mercury/get_lane_price_for_bulk.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/mercury/list_clients.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/mercury/post_import_stat.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/mercury/update_import_stat.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/slack/__init__.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/slack/send_slack_message.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/sns/__init__.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/sns/book_load_notification.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/sns/booking_agent/__init__.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/sns/booking_agent/bid_counter_failure_notification.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/sns/booking_agent/constants.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/sns/booking_agent/send_sns_notification.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/sns/booking_assistant_flow_notification.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/sns/import_movements_notification.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/sns/parsed_carrier_notification.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/sns/sns_service.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/sqs/__init__.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/sqs/booking_assistant_flow_event.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/sqs/sqs_service.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/tests/__init__.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/tests/test_case_conversion.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/tests/test_lambda_utils.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/tests/test_map_transaction.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/tests/test_temperature_utils.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/transactions/__init__.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/transactions/equipment_clas_schema.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/transactions/equipment_class.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/transactions/equipment_mapping.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/transactions/equipment_mapping_schema.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/transactions/map_transaction.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/transactions/transaction.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/transactions/transaction_schema.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/utils/__init__.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/utils/case_conversion.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/utils/datadog_logger.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/utils/datetimes.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/utils/dimension_utils.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/utils/get_delivery_date.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/utils/json_logger.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/utils/lambda_utils.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/utils/local_file.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/utils/logger.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/utils/logger_v2.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/utils/pc_miler_utils.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/utils/price_utils.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/utils/redis.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/utils/s3_file.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/utils/temperature_utils.py +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons.egg-info/dependency_links.txt +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons.egg-info/requires.txt +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons.egg-info/top_level.txt +0 -0
- {cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/setup.cfg +0 -0
@@ -0,0 +1,26 @@
|
|
1
|
+
import os
|
2
|
+
import requests
|
3
|
+
|
4
|
+
from cc_py_commons.utils.logger_v2 import logger
|
5
|
+
|
6
|
+
GEOCODE_API_URL = os.environ.get('GEOCODE_API_URL')
|
7
|
+
GEOCODE_API_TOKEN = os.environ.get('GEOCODE_API_TOKEN')
|
8
|
+
|
9
|
+
|
10
|
+
def execute(city, state, zipcode):
|
11
|
+
url = f'{GEOCODE_API_URL}?city={city}&state={state}'
|
12
|
+
if zipcode:
|
13
|
+
url = f'{url}&zip={zipcode}'
|
14
|
+
token = f"Bearer {GEOCODE_API_TOKEN}"
|
15
|
+
headers = {
|
16
|
+
"Authorization": token
|
17
|
+
}
|
18
|
+
logger.debug(f"Geocoding location: URL: {url}, Headers: {headers}")
|
19
|
+
|
20
|
+
response = requests.get(url, headers=headers)
|
21
|
+
|
22
|
+
if response.status_code != 200:
|
23
|
+
logger.warning(f"Request to geocode location failed with status code: {response.status_code}")
|
24
|
+
return None
|
25
|
+
|
26
|
+
return response.json()
|
@@ -48,8 +48,6 @@ cc_py_commons/quotes/quote_schema.py
|
|
48
48
|
cc_py_commons/quotes/quote_status.py
|
49
49
|
cc_py_commons/rfp/__init__.py
|
50
50
|
cc_py_commons/rfp/create_table.py
|
51
|
-
cc_py_commons/rfp/lane_price_result_fields.py
|
52
|
-
cc_py_commons/rfp/price_lane_file_input_fields.py
|
53
51
|
cc_py_commons/rfp/rfp_status.py
|
54
52
|
cc_py_commons/schemas/__init__.py
|
55
53
|
cc_py_commons/schemas/camel_case_schema.py
|
@@ -123,6 +121,7 @@ cc_py_commons/utils/case_conversion.py
|
|
123
121
|
cc_py_commons/utils/datadog_logger.py
|
124
122
|
cc_py_commons/utils/datetimes.py
|
125
123
|
cc_py_commons/utils/dimension_utils.py
|
124
|
+
cc_py_commons/utils/geocode_location.py
|
126
125
|
cc_py_commons/utils/get_delivery_date.py
|
127
126
|
cc_py_commons/utils/json_logger.py
|
128
127
|
cc_py_commons/utils/lambda_utils.py
|
@@ -3,7 +3,7 @@ from setuptools import setup, find_packages
|
|
3
3
|
setup(
|
4
4
|
name='cc_py_commons',
|
5
5
|
description='Common code for microservices',
|
6
|
-
version='0.5.
|
6
|
+
version='0.5.5',
|
7
7
|
url='https://github.com/Cargo-Chief/py-commons',
|
8
8
|
author='CargoChief',
|
9
9
|
author_email='engineering@cargochief.com',
|
@@ -1,62 +0,0 @@
|
|
1
|
-
from cc_py_commons.rfp.price_lane_file_input_fields import PriceLaneFileFieldConstants
|
2
|
-
|
3
|
-
|
4
|
-
class LaneResultFieldConstants:
|
5
|
-
EQUIPMENT = "equipment"
|
6
|
-
ORIGIN_CITY = "origin_city"
|
7
|
-
ORIGIN_STATE = "origin_state"
|
8
|
-
ORIGIN_POSTCODE = "origin_postcode"
|
9
|
-
ORIGIN_LATITUDE = "origin_latitude"
|
10
|
-
ORIGIN_LONGITUDE = "origin_longitude"
|
11
|
-
DEST_CITY = "destination_city"
|
12
|
-
DEST_STATE = "destination_state"
|
13
|
-
DEST_POSTCODE = "destination_postcode"
|
14
|
-
DEST_LATITUDE = "destination_latitude"
|
15
|
-
DEST_LONGITUDE = "destination_longitude"
|
16
|
-
MODEL_NAME = "model_name"
|
17
|
-
RSQUARED = "rsquared"
|
18
|
-
ROWS_USED = "rows_used"
|
19
|
-
LANE_PRICE_SEARCH_ID = "lane_price_search_id"
|
20
|
-
PREDICTION = 'prediction'
|
21
|
-
LOWER_BOUND = 'lower_bound'
|
22
|
-
UPPER_BOUND = 'upper_bound'
|
23
|
-
FUEL_COST_DATE = 'fuel_price_date'
|
24
|
-
FUEL_PRICE_GALLON = 'fuel_price_per_gallon'
|
25
|
-
FUEL_COST = 'fuel_cost'
|
26
|
-
TRIP_MILES = 'trip_miles'
|
27
|
-
SEARCH_RADIUS = "search_radius"
|
28
|
-
CONFIDENCE_SCORE = 'confidence_score'
|
29
|
-
KITCHEN_SINK_WEIGHT = 'kitchen_sink_weight'
|
30
|
-
|
31
|
-
|
32
|
-
class ResultFieldConstants:
|
33
|
-
ALL_IN_COST = "allInCost"
|
34
|
-
ALL_IN_COST_LOW = "allInCostLow"
|
35
|
-
ALL_IN_COST_HIGH = "allInCostHigh"
|
36
|
-
LINE_HAUL_COST = "lineHaulCost"
|
37
|
-
LINE_HAUL_COST_LOW = "lineHaulCostLow"
|
38
|
-
LINE_HAUL_COST_HIGH = "lineHaulCostHigh"
|
39
|
-
FUEL_PRICE_DATE = "fuelPriceDate"
|
40
|
-
FUEL_COST = "fuelCost"
|
41
|
-
FUEL_COST_PER_MILE = "fuelCostPerMile"
|
42
|
-
LANE_MILES = "laneMiles"
|
43
|
-
LANE_PRICE_SEARCH_ID = "lanePriceSearchId"
|
44
|
-
LOADS_USED = "loadsUsed"
|
45
|
-
SEARCH_RADIUS = "searchRadius"
|
46
|
-
FUEL_COST_BY_MILES = "fuelCostByMiles"
|
47
|
-
FLAT_RATE = "flatRate"
|
48
|
-
CONFIDENCE_SCORE = 'confidenceScore'
|
49
|
-
|
50
|
-
|
51
|
-
class PriceLaneFileResultFields(PriceLaneFileFieldConstants):
|
52
|
-
TRAILER_TYPE = 'trailer_type'
|
53
|
-
ALL_IN = "all_in"
|
54
|
-
ALL_IN_HIGH = "all_in_high"
|
55
|
-
ALL_IN_LOW = "all_in_low"
|
56
|
-
PER_MILE = "per_mile"
|
57
|
-
DISTANCE = "distance"
|
58
|
-
LOADS_USED = "loads_used"
|
59
|
-
SEARCH_RADIUS = "search_radius"
|
60
|
-
CARRIER_COUNT = "carrier_count"
|
61
|
-
MAX_RATE = "max_rate"
|
62
|
-
MIN_RATE = "min_rate"
|
@@ -1,48 +0,0 @@
|
|
1
|
-
class PriceLaneFileFieldConstants:
|
2
|
-
PICKUP_DATE = "pickup_date"
|
3
|
-
DELIVERY_DATE = "delivery_date"
|
4
|
-
EQUIPMENT = "equipment"
|
5
|
-
ORIGIN_CITY = "origin_city"
|
6
|
-
ORIGIN_STATE = "origin_state"
|
7
|
-
ORIGIN_POSTCODE = "origin_postcode"
|
8
|
-
ORIGIN_LATITUDE = "origin_latitude"
|
9
|
-
ORIGIN_LONGITUDE = "origin_longitude"
|
10
|
-
DEST_CITY = "destination_city"
|
11
|
-
DEST_STATE = "destination_state"
|
12
|
-
DEST_POSTCODE = "destination_postcode"
|
13
|
-
DEST_LATITUDE = "destination_latitude"
|
14
|
-
DEST_LONGITUDE = "destination_longitude"
|
15
|
-
ACCOUNT_ID = "account_id"
|
16
|
-
CLIENT_ID = "client_id"
|
17
|
-
LOG_SQL = 'log_sql'
|
18
|
-
SAVE_SEARCH = 'save_search'
|
19
|
-
WEIGHT = 'weight'
|
20
|
-
MODE = 'mode'
|
21
|
-
TRAILER_TYPE = 'trailer_type'
|
22
|
-
|
23
|
-
class PriceLaneFileInputFields:
|
24
|
-
|
25
|
-
required_file_parser = [
|
26
|
-
PriceLaneFileFieldConstants.PICKUP_DATE,
|
27
|
-
PriceLaneFileFieldConstants.DELIVERY_DATE,
|
28
|
-
PriceLaneFileFieldConstants.TRAILER_TYPE,
|
29
|
-
PriceLaneFileFieldConstants.ORIGIN_CITY,
|
30
|
-
PriceLaneFileFieldConstants.ORIGIN_STATE,
|
31
|
-
PriceLaneFileFieldConstants.DEST_CITY,
|
32
|
-
PriceLaneFileFieldConstants.DEST_STATE
|
33
|
-
]
|
34
|
-
|
35
|
-
optional = [
|
36
|
-
PriceLaneFileFieldConstants.ORIGIN_LATITUDE,
|
37
|
-
PriceLaneFileFieldConstants.ORIGIN_LONGITUDE,
|
38
|
-
PriceLaneFileFieldConstants.ORIGIN_POSTCODE,
|
39
|
-
PriceLaneFileFieldConstants.DEST_LATITUDE,
|
40
|
-
PriceLaneFileFieldConstants.DEST_LONGITUDE,
|
41
|
-
PriceLaneFileFieldConstants.DEST_POSTCODE,
|
42
|
-
PriceLaneFileFieldConstants.LOG_SQL,
|
43
|
-
PriceLaneFileFieldConstants.SAVE_SEARCH,
|
44
|
-
PriceLaneFileFieldConstants.WEIGHT,
|
45
|
-
PriceLaneFileFieldConstants.MODE
|
46
|
-
]
|
47
|
-
|
48
|
-
price_lane_file_input_fields = PriceLaneFileInputFields
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/carriers/account_carrier_map_schema.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/loads/freighthub_contact_schema.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/booking_agent/__init__.py
RENAMED
File without changes
|
{cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/booking_agent/accept_bid.py
RENAMED
File without changes
|
{cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/booking_agent/cancel_bid.py
RENAMED
File without changes
|
{cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/booking_agent/constants.py
RENAMED
File without changes
|
{cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/booking_agent/counter_bid.py
RENAMED
File without changes
|
{cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/booking_agent/decline_bid.py
RENAMED
File without changes
|
File without changes
|
{cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/booking_agent/get_quote.py
RENAMED
File without changes
|
{cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/booking_agent/update_bid.py
RENAMED
File without changes
|
File without changes
|
{cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/c4/amazon_session_token.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/c4/get_account_settings.py
RENAMED
File without changes
|
File without changes
|
{cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/c4/get_users_for_account.py
RENAMED
File without changes
|
{cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/c4/refresh_amazon_token.py
RENAMED
File without changes
|
File without changes
|
{cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/carrier_hub/get_carrier.py
RENAMED
File without changes
|
{cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/carrier_hub/list_carriers.py
RENAMED
File without changes
|
{cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/carrier_hub/list_contacts.py
RENAMED
File without changes
|
{cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/carrier_hub/update_contact.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/mercury/create_account_folder.py
RENAMED
File without changes
|
File without changes
|
{cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/mercury/db/delete_table.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/mercury/get_import_stat.py
RENAMED
File without changes
|
{cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/mercury/get_lane_price.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/mercury/post_import_stat.py
RENAMED
File without changes
|
{cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/mercury/update_import_stat.py
RENAMED
File without changes
|
File without changes
|
{cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/services/slack/send_slack_message.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/sns/booking_agent/send_sns_notification.py
RENAMED
File without changes
|
{cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/sns/booking_assistant_flow_notification.py
RENAMED
File without changes
|
{cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/sns/import_movements_notification.py
RENAMED
File without changes
|
{cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/sns/parsed_carrier_notification.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/sqs/booking_assistant_flow_event.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/transactions/equipment_clas_schema.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/transactions/equipment_mapping_schema.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{cc_py_commons-0.5.3 → cc_py_commons-0.5.5}/cc_py_commons/transactions/transaction_schema.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|