Embargo | Python SDK
The Pangea Embargo API lets developers quickly check IPs and country codes against known sanction and trade embargo lists.
Initializes a new Pangea service client.
Embargo(token, config, logger_name)download-file
Embargo.download_file()Check IP
Embargo.ip_check(ip)Check an IP against known sanction and trade embargo lists.
response = embargo.ip_check("190.6.64.94")
ISO Code Check
Embargo.iso_check(iso_code)Check this country against known sanction and trade embargo lists.
response = embargo.iso_check("CU")
Poll result
Embargo.poll_result(exception)Returns request's result that has been accepted by the server
response = service.poll_result(exception)