maptekblastlogic package
A client library for accessing BlastLogic Extend API
- class maptekblastlogic.AuthenticatedClient(base_url, token, prefix='', auth_header_name='API-KEY', *, raise_on_unexpected_status=False, cookies=NOTHING, headers=NOTHING, timeout=None, verify_ssl=True, follow_redirects=False, httpx_args=NOTHING)[source]
Bases:
objectA Client which has been authenticated for use on secured endpoints
The following are accepted as keyword arguments and will be used to construct httpx Clients internally:
base_url: The base URL for the API, all requests are made to a relative path to this URLcookies: A dictionary of cookies to be sent with every requestheaders: A dictionary of headers to be sent with every requesttimeout: The maximum amount of a time a request can take. API functions will raise httpx.TimeoutException if this is exceeded.verify_ssl: Whether or not to verify the SSL certificate of the API server. This should be True in production, but can be set to False for testing purposes.follow_redirects: Whether or not to follow redirects. Default value is False.httpx_args: A dictionary of additional arguments to be passed to thehttpx.Clientandhttpx.AsyncClientconstructor.- Parameters:
- raise_on_unexpected_status
Whether or not to raise an errors.UnexpectedStatus if the API returns a status code that was not documented in the source OpenAPI document. Can also be provided as a keyword argument to the constructor.
- Type:
- with_headers(headers)[source]
Get a new client matching this one with additional headers
- Parameters:
- Return type:
- with_cookies(cookies)[source]
Get a new client matching this one with additional cookies
- Parameters:
- Return type:
- with_timeout(timeout)[source]
Get a new client matching this one with a new timeout (in seconds)
- Parameters:
timeout (Timeout)
- Return type:
- set_httpx_client(client)[source]
Manually the underlying httpx.Client
NOTE: This will override any other settings on the client, including cookies, headers, and timeout.
- Parameters:
client (Client)
- Return type:
- get_httpx_client()[source]
Get the underlying httpx.Client, constructing a new one if not previously set
- Return type:
Client
- class maptekblastlogic.Client(base_url, *, raise_on_unexpected_status=False, cookies=NOTHING, headers=NOTHING, timeout=None, verify_ssl=True, follow_redirects=False, httpx_args=NOTHING)[source]
Bases:
objectA class for keeping track of data related to the API
The following are accepted as keyword arguments and will be used to construct httpx Clients internally:
base_url: The base URL for the API, all requests are made to a relative path to this URLcookies: A dictionary of cookies to be sent with every requestheaders: A dictionary of headers to be sent with every requesttimeout: The maximum amount of a time a request can take. API functions will raise httpx.TimeoutException if this is exceeded.verify_ssl: Whether or not to verify the SSL certificate of the API server. This should be True in production, but can be set to False for testing purposes.follow_redirects: Whether or not to follow redirects. Default value is False.httpx_args: A dictionary of additional arguments to be passed to thehttpx.Clientandhttpx.AsyncClientconstructor.- Parameters:
- raise_on_unexpected_status
Whether or not to raise an errors.UnexpectedStatus if the API returns a status code that was not documented in the source OpenAPI document. Can also be provided as a keyword argument to the constructor.
- Type:
- with_timeout(timeout)[source]
Get a new client matching this one with a new timeout (in seconds)
- Parameters:
timeout (Timeout)
- Return type:
- set_httpx_client(client)[source]
Manually the underlying httpx.Client
NOTE: This will override any other settings on the client, including cookies, headers, and timeout.
- Parameters:
client (Client)
- Return type:
- get_httpx_client()[source]
Get the underlying httpx.Client, constructing a new one if not previously set
- Return type:
Client
Subpackages
- maptekblastlogic.api package
- Subpackages
- maptekblastlogic.api.backfilling_entries package
- Submodules
- maptekblastlogic.api.backfilling_entries.batch_create_backfilling_entries module
- maptekblastlogic.api.backfilling_entries.batch_get_backfilling_entries module
- maptekblastlogic.api.backfilling_entries.batch_update_backfilling_entries module
- maptekblastlogic.api.backfilling_entries.create_backfilling_entry module
- maptekblastlogic.api.backfilling_entries.get_backfilling_entries_by_blast_id module
- maptekblastlogic.api.backfilling_entries.get_backfilling_entries_by_hole_id module
- maptekblastlogic.api.backfilling_entries.get_backfilling_entry_by_id module
- maptekblastlogic.api.backfilling_entries.update_backfilling_entry module
- maptekblastlogic.api.blasts package
- maptekblastlogic.api.charge_plans package
- maptekblastlogic.api.crews package
- maptekblastlogic.api.deck_products package
- maptekblastlogic.api.dipping_entries package
- Submodules
- maptekblastlogic.api.dipping_entries.batch_create_dipping_entries module
- maptekblastlogic.api.dipping_entries.batch_get_dipping_entries module
- maptekblastlogic.api.dipping_entries.batch_update_dipping_entries module
- maptekblastlogic.api.dipping_entries.create_dipping_entry module
- maptekblastlogic.api.dipping_entries.get_dipping_entries_by_blast_id module
- maptekblastlogic.api.dipping_entries.get_dipping_entries_by_hole_id module
- maptekblastlogic.api.dipping_entries.get_dipping_entry_by_id module
- maptekblastlogic.api.dipping_entries.update_dipping_entry module
- maptekblastlogic.api.holes package
- maptekblastlogic.api.loaded_decks package
- Submodules
- maptekblastlogic.api.loaded_decks.batch_create_loaded_decks module
- maptekblastlogic.api.loaded_decks.batch_get_loaded_decks module
- maptekblastlogic.api.loaded_decks.batch_update_loaded_decks module
- maptekblastlogic.api.loaded_decks.create_loaded_deck module
- maptekblastlogic.api.loaded_decks.get_loaded_deck_by_id module
- maptekblastlogic.api.loaded_decks.get_loaded_decks_by_blast_id module
- maptekblastlogic.api.loaded_decks.get_loaded_decks_by_hole_id module
- maptekblastlogic.api.loaded_decks.update_loaded_deck module
- maptekblastlogic.api.loading_trucks package
- maptekblastlogic.api.personnel package
- maptekblastlogic.api.sites package
- maptekblastlogic.api.backfilling_entries package
- Subpackages
- maptekblastlogic.models package
BackfillingEntryActualBackfillingEntryActual.crew_start_timeBackfillingEntryActual.crew_end_timeBackfillingEntryActual.crew_idBackfillingEntryActual.crew_dip_depth_beforeBackfillingEntryActual.crew_water_length_beforeBackfillingEntryActual.crew_wet_sides_length_beforeBackfillingEntryActual.crew_temperature_beforeBackfillingEntryActual.was_backfilledBackfillingEntryActual.crew_dip_depth_afterBackfillingEntryActual.crew_water_length_afterBackfillingEntryActual.crew_wet_sides_length_afterBackfillingEntryActual.crew_commentBackfillingEntryActual.supervisor_idBackfillingEntryActual.supervisor_start_timeBackfillingEntryActual.supervisor_end_timeBackfillingEntryActual.supervisor_dip_depth_afterBackfillingEntryActual.supervisor_water_length_afterBackfillingEntryActual.supervisor_wet_sides_length_afterBackfillingEntryActual.to_dict()BackfillingEntryActual.from_dict()
BackfillingEntryModelBackfillingEntryModel.hole_idBackfillingEntryModel.planBackfillingEntryModel.backfilling_entry_idBackfillingEntryModel.etagBackfillingEntryModel.created_byBackfillingEntryModel.last_modified_byBackfillingEntryModel.last_modified_timeBackfillingEntryModel.created_timeBackfillingEntryModel.cancelled_timeBackfillingEntryModel.actualBackfillingEntryModel.to_dict()BackfillingEntryModel.from_dict()
BackfillingEntryPlanBlastModelBlastStatusChargePlanDeckModelChargePlanModelCrewModelCustomPropertySchemaFloatRangeSettingsCustomPropertySchemaFloatSettingsCustomPropertySchemaModelCustomPropertySchemaModel.custom_property_idCustomPropertySchemaModel.labelCustomPropertySchemaModel.type_CustomPropertySchemaModel.descriptionCustomPropertySchemaModel.is_requiredCustomPropertySchemaModel.string_settingsCustomPropertySchemaModel.float_settingsCustomPropertySchemaModel.float_range_settingsCustomPropertySchemaModel.select_settingsCustomPropertySchemaModel.to_dict()CustomPropertySchemaModel.from_dict()
CustomPropertySchemaSelectOptionCustomPropertySchemaSelectSettingsCustomPropertySchemaStringSettingsCustomPropertyTypeCustomPropertyValueModelCustomPropertyValueModel.custom_property_idCustomPropertyValueModel.entity_idCustomPropertyValueModel.etagCustomPropertyValueModel.boolean_valueCustomPropertyValueModel.string_valueCustomPropertyValueModel.float_valueCustomPropertyValueModel.float_range_lower_valueCustomPropertyValueModel.float_range_upper_valueCustomPropertyValueModel.select_valueCustomPropertyValueModel.multi_select_valuesCustomPropertyValueModel.to_dict()CustomPropertyValueModel.from_dict()
DensityTableRowDippingEntryActualModelDippingEntryActualModel.crew_start_timeDippingEntryActualModel.crew_end_timeDippingEntryActualModel.crew_idDippingEntryActualModel.crew_depthDippingEntryActualModel.crew_water_lengthDippingEntryActualModel.crew_wet_sides_lengthDippingEntryActualModel.crew_temperatureDippingEntryActualModel.crew_commentDippingEntryActualModel.supervisor_idDippingEntryActualModel.supervisor_start_timeDippingEntryActualModel.supervisor_end_timeDippingEntryActualModel.supervisor_depthDippingEntryActualModel.supervisor_water_lengthDippingEntryActualModel.supervisor_wet_sides_lengthDippingEntryActualModel.to_dict()DippingEntryActualModel.from_dict()
DippingEntryModelDippingEntryModel.hole_idDippingEntryModel.planDippingEntryModel.dipping_entry_idDippingEntryModel.etagDippingEntryModel.created_byDippingEntryModel.last_modified_byDippingEntryModel.last_modified_timeDippingEntryModel.created_timeDippingEntryModel.cancelled_timeDippingEntryModel.actualDippingEntryModel.to_dict()DippingEntryModel.from_dict()
DippingEntryPlanModelErrorModelHoleGeometryHoleModelLoadedDeckModelLoadedDeckModel.start_timeLoadedDeckModel.end_timeLoadedDeckModel.product_idLoadedDeckModel.top_depthLoadedDeckModel.bottom_depthLoadedDeckModel.loaded_deck_idLoadedDeckModel.etagLoadedDeckModel.created_byLoadedDeckModel.created_timeLoadedDeckModel.last_modified_byLoadedDeckModel.last_modified_timeLoadedDeckModel.hole_idLoadedDeckModel.is_deletedLoadedDeckModel.shot_firer_idLoadedDeckModel.crew_idLoadedDeckModel.operator_idLoadedDeckModel.loading_truck_idLoadedDeckModel.commentLoadedDeckModel.massLoadedDeckModel.quantityLoadedDeckModel.to_dict()LoadedDeckModel.from_dict()
LoadingTruckModelPersonModelPersonModel.personnel_idPersonModel.etagPersonModel.created_byPersonModel.created_timePersonModel.last_modified_byPersonModel.last_modified_timePersonModel.namePersonModel.is_backfilling_supervisorPersonModel.is_dipping_supervisorPersonModel.is_loading_truck_operatorPersonModel.is_shot_firerPersonModel.to_dict()PersonModel.from_dict()
PointProductModelSiteModel- Submodules
- maptekblastlogic.models.backfilling_entry_actual module
BackfillingEntryActualBackfillingEntryActual.crew_start_timeBackfillingEntryActual.crew_end_timeBackfillingEntryActual.crew_idBackfillingEntryActual.crew_dip_depth_beforeBackfillingEntryActual.crew_water_length_beforeBackfillingEntryActual.crew_wet_sides_length_beforeBackfillingEntryActual.crew_temperature_beforeBackfillingEntryActual.was_backfilledBackfillingEntryActual.crew_dip_depth_afterBackfillingEntryActual.crew_water_length_afterBackfillingEntryActual.crew_wet_sides_length_afterBackfillingEntryActual.crew_commentBackfillingEntryActual.supervisor_idBackfillingEntryActual.supervisor_start_timeBackfillingEntryActual.supervisor_end_timeBackfillingEntryActual.supervisor_dip_depth_afterBackfillingEntryActual.supervisor_water_length_afterBackfillingEntryActual.supervisor_wet_sides_length_afterBackfillingEntryActual.to_dict()BackfillingEntryActual.from_dict()
- maptekblastlogic.models.backfilling_entry_model module
BackfillingEntryModelBackfillingEntryModel.hole_idBackfillingEntryModel.planBackfillingEntryModel.backfilling_entry_idBackfillingEntryModel.etagBackfillingEntryModel.created_byBackfillingEntryModel.last_modified_byBackfillingEntryModel.last_modified_timeBackfillingEntryModel.created_timeBackfillingEntryModel.cancelled_timeBackfillingEntryModel.actualBackfillingEntryModel.to_dict()BackfillingEntryModel.from_dict()
- maptekblastlogic.models.backfilling_entry_plan module
- maptekblastlogic.models.blast_model module
- maptekblastlogic.models.blast_status module
- maptekblastlogic.models.charge_plan_deck_model module
- maptekblastlogic.models.charge_plan_model module
- maptekblastlogic.models.crew_model module
- maptekblastlogic.models.custom_property_schema_float_range_settings module
- maptekblastlogic.models.custom_property_schema_float_settings module
- maptekblastlogic.models.custom_property_schema_model module
CustomPropertySchemaModelCustomPropertySchemaModel.custom_property_idCustomPropertySchemaModel.labelCustomPropertySchemaModel.type_CustomPropertySchemaModel.descriptionCustomPropertySchemaModel.is_requiredCustomPropertySchemaModel.string_settingsCustomPropertySchemaModel.float_settingsCustomPropertySchemaModel.float_range_settingsCustomPropertySchemaModel.select_settingsCustomPropertySchemaModel.to_dict()CustomPropertySchemaModel.from_dict()
- maptekblastlogic.models.custom_property_schema_select_option module
- maptekblastlogic.models.custom_property_schema_select_settings module
- maptekblastlogic.models.custom_property_schema_string_settings module
- maptekblastlogic.models.custom_property_type module
- maptekblastlogic.models.custom_property_value_model module
CustomPropertyValueModelCustomPropertyValueModel.custom_property_idCustomPropertyValueModel.entity_idCustomPropertyValueModel.etagCustomPropertyValueModel.boolean_valueCustomPropertyValueModel.string_valueCustomPropertyValueModel.float_valueCustomPropertyValueModel.float_range_lower_valueCustomPropertyValueModel.float_range_upper_valueCustomPropertyValueModel.select_valueCustomPropertyValueModel.multi_select_valuesCustomPropertyValueModel.to_dict()CustomPropertyValueModel.from_dict()
- maptekblastlogic.models.density_table_row module
- maptekblastlogic.models.dipping_entry_actual_model module
DippingEntryActualModelDippingEntryActualModel.crew_start_timeDippingEntryActualModel.crew_end_timeDippingEntryActualModel.crew_idDippingEntryActualModel.crew_depthDippingEntryActualModel.crew_water_lengthDippingEntryActualModel.crew_wet_sides_lengthDippingEntryActualModel.crew_temperatureDippingEntryActualModel.crew_commentDippingEntryActualModel.supervisor_idDippingEntryActualModel.supervisor_start_timeDippingEntryActualModel.supervisor_end_timeDippingEntryActualModel.supervisor_depthDippingEntryActualModel.supervisor_water_lengthDippingEntryActualModel.supervisor_wet_sides_lengthDippingEntryActualModel.to_dict()DippingEntryActualModel.from_dict()
- maptekblastlogic.models.dipping_entry_model module
DippingEntryModelDippingEntryModel.hole_idDippingEntryModel.planDippingEntryModel.dipping_entry_idDippingEntryModel.etagDippingEntryModel.created_byDippingEntryModel.last_modified_byDippingEntryModel.last_modified_timeDippingEntryModel.created_timeDippingEntryModel.cancelled_timeDippingEntryModel.actualDippingEntryModel.to_dict()DippingEntryModel.from_dict()
- maptekblastlogic.models.dipping_entry_plan_model module
- maptekblastlogic.models.error_model module
- maptekblastlogic.models.hole_geometry module
- maptekblastlogic.models.hole_model module
- maptekblastlogic.models.loaded_deck_model module
LoadedDeckModelLoadedDeckModel.start_timeLoadedDeckModel.end_timeLoadedDeckModel.product_idLoadedDeckModel.top_depthLoadedDeckModel.bottom_depthLoadedDeckModel.loaded_deck_idLoadedDeckModel.etagLoadedDeckModel.created_byLoadedDeckModel.created_timeLoadedDeckModel.last_modified_byLoadedDeckModel.last_modified_timeLoadedDeckModel.hole_idLoadedDeckModel.is_deletedLoadedDeckModel.shot_firer_idLoadedDeckModel.crew_idLoadedDeckModel.operator_idLoadedDeckModel.loading_truck_idLoadedDeckModel.commentLoadedDeckModel.massLoadedDeckModel.quantityLoadedDeckModel.to_dict()LoadedDeckModel.from_dict()
- maptekblastlogic.models.loading_truck_model module
- maptekblastlogic.models.person_model module
PersonModelPersonModel.personnel_idPersonModel.etagPersonModel.created_byPersonModel.created_timePersonModel.last_modified_byPersonModel.last_modified_timePersonModel.namePersonModel.is_backfilling_supervisorPersonModel.is_dipping_supervisorPersonModel.is_loading_truck_operatorPersonModel.is_shot_firerPersonModel.to_dict()PersonModel.from_dict()
- maptekblastlogic.models.point module
- maptekblastlogic.models.product_model module
- maptekblastlogic.models.site_model module
Submodules
maptekblastlogic.client module
- class maptekblastlogic.client.Client(base_url, *, raise_on_unexpected_status=False, cookies=NOTHING, headers=NOTHING, timeout=None, verify_ssl=True, follow_redirects=False, httpx_args=NOTHING)[source]
Bases:
objectA class for keeping track of data related to the API
The following are accepted as keyword arguments and will be used to construct httpx Clients internally:
base_url: The base URL for the API, all requests are made to a relative path to this URLcookies: A dictionary of cookies to be sent with every requestheaders: A dictionary of headers to be sent with every requesttimeout: The maximum amount of a time a request can take. API functions will raise httpx.TimeoutException if this is exceeded.verify_ssl: Whether or not to verify the SSL certificate of the API server. This should be True in production, but can be set to False for testing purposes.follow_redirects: Whether or not to follow redirects. Default value is False.httpx_args: A dictionary of additional arguments to be passed to thehttpx.Clientandhttpx.AsyncClientconstructor.- Parameters:
- raise_on_unexpected_status
Whether or not to raise an errors.UnexpectedStatus if the API returns a status code that was not documented in the source OpenAPI document. Can also be provided as a keyword argument to the constructor.
- Type:
- with_timeout(timeout)[source]
Get a new client matching this one with a new timeout (in seconds)
- Parameters:
timeout (Timeout)
- Return type:
- set_httpx_client(client)[source]
Manually the underlying httpx.Client
NOTE: This will override any other settings on the client, including cookies, headers, and timeout.
- Parameters:
client (Client)
- Return type:
- get_httpx_client()[source]
Get the underlying httpx.Client, constructing a new one if not previously set
- Return type:
Client
- class maptekblastlogic.client.AuthenticatedClient(base_url, token, prefix='', auth_header_name='API-KEY', *, raise_on_unexpected_status=False, cookies=NOTHING, headers=NOTHING, timeout=None, verify_ssl=True, follow_redirects=False, httpx_args=NOTHING)[source]
Bases:
objectA Client which has been authenticated for use on secured endpoints
The following are accepted as keyword arguments and will be used to construct httpx Clients internally:
base_url: The base URL for the API, all requests are made to a relative path to this URLcookies: A dictionary of cookies to be sent with every requestheaders: A dictionary of headers to be sent with every requesttimeout: The maximum amount of a time a request can take. API functions will raise httpx.TimeoutException if this is exceeded.verify_ssl: Whether or not to verify the SSL certificate of the API server. This should be True in production, but can be set to False for testing purposes.follow_redirects: Whether or not to follow redirects. Default value is False.httpx_args: A dictionary of additional arguments to be passed to thehttpx.Clientandhttpx.AsyncClientconstructor.- Parameters:
- raise_on_unexpected_status
Whether or not to raise an errors.UnexpectedStatus if the API returns a status code that was not documented in the source OpenAPI document. Can also be provided as a keyword argument to the constructor.
- Type:
- with_headers(headers)[source]
Get a new client matching this one with additional headers
- Parameters:
- Return type:
- with_cookies(cookies)[source]
Get a new client matching this one with additional cookies
- Parameters:
- Return type:
- with_timeout(timeout)[source]
Get a new client matching this one with a new timeout (in seconds)
- Parameters:
timeout (Timeout)
- Return type:
- set_httpx_client(client)[source]
Manually the underlying httpx.Client
NOTE: This will override any other settings on the client, including cookies, headers, and timeout.
- Parameters:
client (Client)
- Return type:
- get_httpx_client()[source]
Get the underlying httpx.Client, constructing a new one if not previously set
- Return type:
Client
maptekblastlogic.errors module
Contains shared errors types that can be raised from API functions
maptekblastlogic.types module
Contains some shared types for properties
- class maptekblastlogic.types.File(payload, file_name=None, mime_type=None)[source]
Bases:
objectContains information for file uploads
- class maptekblastlogic.types.Response(status_code, content, headers, parsed)[source]
Bases:
Generic[T]A response from an endpoint
- Parameters:
status_code (HTTPStatus)
content (bytes)
headers (MutableMapping[str, str])
parsed (T | None)
- status_code: HTTPStatus
- headers: MutableMapping[str, str]