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.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.dipping_entries package
- Submodules
- 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.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.site_setup 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.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.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()
BackfillingEntryPlanBackfillingEntryPlan.target_depthBackfillingEntryPlan.crew_check_requiredBackfillingEntryPlan.supervisor_check_requiredBackfillingEntryPlan.target_depthBackfillingEntryPlan.crew_check_requiredBackfillingEntryPlan.supervisor_check_requiredBackfillingEntryPlan.to_dict()BackfillingEntryPlan.from_dict()
BlastModelBlastStatusChargePlanDeckModelChargePlanDeckModel.product_idChargePlanDeckModel.orderChargePlanDeckModel.lengthChargePlanDeckModel.massChargePlanDeckModel.quantityChargePlanDeckModel.product_idChargePlanDeckModel.orderChargePlanDeckModel.lengthChargePlanDeckModel.massChargePlanDeckModel.quantityChargePlanDeckModel.to_dict()ChargePlanDeckModel.from_dict()
ChargePlanModelCrewModelCrewModel.crew_idCrewModel.etagCrewModel.created_byCrewModel.created_timeCrewModel.last_modified_byCrewModel.last_modified_timeCrewModel.nameCrewModel.is_activeCrewModel.is_dipping_crewCrewModel.is_backfillingCrewModel.is_charging_crewCrewModel.crew_idCrewModel.etagCrewModel.created_byCrewModel.created_timeCrewModel.last_modified_byCrewModel.last_modified_timeCrewModel.nameCrewModel.is_activeCrewModel.is_dipping_crewCrewModel.is_backfillingCrewModel.is_charging_crewCrewModel.to_dict()CrewModel.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.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.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()
DippingEntryPlanModelErrorModelHoleGeometryHoleModelHoleModel.hole_idHoleModel.blast_idHoleModel.hole_nameHoleModel.rowHoleModel.echelonHoleModel.statusHoleModel.designHoleModel.last_knownHoleModel.hole_idHoleModel.blast_idHoleModel.hole_nameHoleModel.rowHoleModel.echelonHoleModel.statusHoleModel.designHoleModel.last_knownHoleModel.to_dict()HoleModel.from_dict()
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()
LoadingTruckModelLoadingTruckModel.loading_truck_idLoadingTruckModel.etagLoadingTruckModel.created_byLoadingTruckModel.created_timeLoadingTruckModel.last_modified_byLoadingTruckModel.last_modified_timeLoadingTruckModel.nameLoadingTruckModel.activeLoadingTruckModel.loading_truck_idLoadingTruckModel.etagLoadingTruckModel.created_byLoadingTruckModel.created_timeLoadingTruckModel.last_modified_byLoadingTruckModel.last_modified_timeLoadingTruckModel.nameLoadingTruckModel.activeLoadingTruckModel.to_dict()LoadingTruckModel.from_dict()
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.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()
PointProductModelProductModel.product_idProductModel.nameProductModel.descriptionProductModel.integration_idProductModel.typeProductModel.open_cup_densityProductModel.energy_densityProductModel.density_tableProductModel.product_idProductModel.nameProductModel.descriptionProductModel.integration_idProductModel.typeProductModel.open_cup_densityProductModel.energy_densityProductModel.density_tableProductModel.to_dict()ProductModel.from_dict()
SiteModel- 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.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.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
BackfillingEntryPlanBackfillingEntryPlan.target_depthBackfillingEntryPlan.crew_check_requiredBackfillingEntryPlan.supervisor_check_requiredBackfillingEntryPlan.target_depthBackfillingEntryPlan.crew_check_requiredBackfillingEntryPlan.supervisor_check_requiredBackfillingEntryPlan.to_dict()BackfillingEntryPlan.from_dict()
- maptekblastlogic.models.blast_model module
- maptekblastlogic.models.blast_status module
- maptekblastlogic.models.charge_plan_deck_model module
ChargePlanDeckModelChargePlanDeckModel.product_idChargePlanDeckModel.orderChargePlanDeckModel.lengthChargePlanDeckModel.massChargePlanDeckModel.quantityChargePlanDeckModel.product_idChargePlanDeckModel.orderChargePlanDeckModel.lengthChargePlanDeckModel.massChargePlanDeckModel.quantityChargePlanDeckModel.to_dict()ChargePlanDeckModel.from_dict()
- maptekblastlogic.models.charge_plan_model module
- maptekblastlogic.models.crew_model module
CrewModelCrewModel.crew_idCrewModel.etagCrewModel.created_byCrewModel.created_timeCrewModel.last_modified_byCrewModel.last_modified_timeCrewModel.nameCrewModel.is_activeCrewModel.is_dipping_crewCrewModel.is_backfillingCrewModel.is_charging_crewCrewModel.crew_idCrewModel.etagCrewModel.created_byCrewModel.created_timeCrewModel.last_modified_byCrewModel.last_modified_timeCrewModel.nameCrewModel.is_activeCrewModel.is_dipping_crewCrewModel.is_backfillingCrewModel.is_charging_crewCrewModel.to_dict()CrewModel.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.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.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
HoleModelHoleModel.hole_idHoleModel.blast_idHoleModel.hole_nameHoleModel.rowHoleModel.echelonHoleModel.statusHoleModel.designHoleModel.last_knownHoleModel.hole_idHoleModel.blast_idHoleModel.hole_nameHoleModel.rowHoleModel.echelonHoleModel.statusHoleModel.designHoleModel.last_knownHoleModel.to_dict()HoleModel.from_dict()
- 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
LoadingTruckModelLoadingTruckModel.loading_truck_idLoadingTruckModel.etagLoadingTruckModel.created_byLoadingTruckModel.created_timeLoadingTruckModel.last_modified_byLoadingTruckModel.last_modified_timeLoadingTruckModel.nameLoadingTruckModel.activeLoadingTruckModel.loading_truck_idLoadingTruckModel.etagLoadingTruckModel.created_byLoadingTruckModel.created_timeLoadingTruckModel.last_modified_byLoadingTruckModel.last_modified_timeLoadingTruckModel.nameLoadingTruckModel.activeLoadingTruckModel.to_dict()LoadingTruckModel.from_dict()
- 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.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
ProductModelProductModel.product_idProductModel.nameProductModel.descriptionProductModel.integration_idProductModel.typeProductModel.open_cup_densityProductModel.energy_densityProductModel.density_tableProductModel.product_idProductModel.nameProductModel.descriptionProductModel.integration_idProductModel.typeProductModel.open_cup_densityProductModel.energy_densityProductModel.density_tableProductModel.to_dict()ProductModel.from_dict()
- 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]