Package: de-interpol
interpolInterpol Red Notices Website APIThis Python package is automatically generated by theOpenAPI Generatorproject:API version: 1.0.0Package version: 0.1.0Build package: org.openapitools.codegen.languages.PythonClientCodegenRequirements.Python >= 3.6Installation & Usagepip installpipinstalldeutschland[interpol]poetry installpoetryadddeutschland-EinterpolSetuptoolsInstall viaSetuptools.pythonsetup.pyinstall--user(orsudo python setup.py installto install the package for all users)UsageImport the package:fromdeutschlandimportinterpolGetting StartedPlease follow theinstallation procedureand then run the following:importtimefromdeutschlandimportinterpolfrompprintimportpprintfromdeutschland.interpol.apiimportdefault_apifromdeutschland.interpol.model.red_notice_detailimportRedNoticeDetailfromdeutschland.interpol.model.red_notice_detail_imagesimportRedNoticeDetailImagesfromdeutschland.interpol.model.red_noticesimportRedNotices# Defining the host is optional and defaults to https://ws-public.interpol.int# See configuration.py for a list of all supported configuration parameters.configuration=interpol.Configuration(host="https://ws-public.interpol.int")# Enter a context with an instance of the API clientwithinterpol.ApiClient(configuration)asapi_client:# Create an instance of the API classapi_instance=default_api.DefaultApi(api_client)forename="DANIELA"# str | First name (optional)name="Klette"# str | Last name (optional)nationality="DE"# str | Two digit country code (optional)age_max=120# int | maximum age (optional)age_min=18# int | minimum age (optional)free_text=""# str | Free text query (optional)sex_id="F"# str | Free text query (optional)arrest_warrant_country_id="DE"# str | Two digit country code (optional)page=1# int | pagination - starts with 1 (optional)result_per_page=200# int | resultPerPage (optional)try:# Get Red Noticesapi_response=api_instance.notices_v1_red_get(forename=forename,name=name,nationality=nationality,age_max=age_max,age_min=age_min,free_text=free_text,sex_id=sex_id,arrest_warrant_country_id=arrest_warrant_country_id,page=page,result_per_page=result_per_page)pprint(api_response)exceptinterpol.ApiExceptionase:print("Exception when calling DefaultApi->notices_v1_red_get:%s\n"%e)Documentation for API EndpointsAll URIs are relative tohttps://ws-public.interpol.intClassMethodHTTP requestDescriptionDefaultApinotices_v1_red_getGET/notices/v1/redGet Red NoticesDefaultApinotices_v1_red_notice_id_getGET/notices/v1/red/{noticeID}Get Red Notice DetailsDefaultApinotices_v1_red_notice_id_images_getGET/notices/v1/red/{noticeID}/imagesGet Red Notice ImagesDocumentation For ModelsRedNoticeDetailRedNoticeDetailArrestWarrantsRedNoticeDetailEmbeddedRedNoticeDetailImagesRedNoticeDetailImagesEmbeddedRedNoticeDetailImagesEmbeddedImagesRedNoticeDetailImagesEmbeddedLinksRedNoticeDetailImagesEmbeddedLinksSelfRedNoticeDetailImagesLinksRedNoticeDetailImagesLinksNoticeRedNoticeDetailImagesLinksSelfRedNoticeDetailImagesLinksThumbnailRedNoticeDetailLinksRedNoticesRedNoticesEmbeddedRedNoticesLinksRedNoticesLinksSelfRedNoticesQueryDocumentation For AuthorizationAll endpoints do not require authorization.Authorkontakt@bund.devNotes for Large OpenAPI documentsIf the OpenAPI document is large, imports in interpol.apis and interpol.models may fail with a
RecursionError indicating the maximum recursion limit has been exceeded. In that case, there are a couple of solutions:Solution 1:
Use specific imports for apis and models like:from deutschland.interpol.api.default_api import DefaultApifrom deutschland.interpol.model.pet import PetSolution 2:
Before importing the package, adjust the maximum recursion limit as shown below:import sys
sys.setrecursionlimit(1500)
from deutschland import interpol
from deutschland.interpol.apis import *
from deutschland.interpol.models import *