Package: passerine-client
openapi-clientNo description provided (generated by Openapi Generatorhttps://github.com/openapitools/openapi-generator)Theopenapi_clientpackage is automatically generated by theOpenAPI Generatorproject:API version: 0.1.0Package version: 0.0.5Build package: org.openapitools.codegen.languages.PythonClientCodegenRequirements.Python >=3.6Installation & UsageThis python library package is generated without supporting files like setup.py or requirements filesTo be able to use it, you will need these dependencies in your own package that uses this library:urllib3 >= 1.25.3python-dateutilGetting StartedIn your own code, to use this library to connect and interact with openapi-client,
you can run the following:importtimeimportopenapi_clientfrompprintimportpprintfromopenapi_client.apiimportdefault_apifromopenapi_client.model.conservation_statusimportConservationStatusfromopenapi_client.model.defendantimportDefendantfromopenapi_client.model.defendant_postimportDefendantPostfromopenapi_client.model.http_validation_errorimportHTTPValidationErrorfromopenapi_client.model.judgmentimportJudgmentfromopenapi_client.model.judgment_postimportJudgmentPostfromopenapi_client.model.protection_classimportProtectionClassfromopenapi_client.model.sourceimportSourcefromopenapi_client.model.source_categoryimportSourceCategoryfromopenapi_client.model.source_postimportSourcePostfromopenapi_client.model.speciesimportSpeciesfromopenapi_client.model.species_bulk_patch_resultimportSpeciesBulkPatchResult# Defining the host is optional and defaults to http://localhost:8000# See configuration.py for a list of all supported configuration parameters.configuration=openapi_client.Configuration(host="http://localhost:8000")# Enter a context with an instance of the API clientwithopenapi_client.ApiClient(configuration)asapi_client:# Create an instance of the API classapi_instance=default_api.DefaultApi(api_client)species=[Species(species="species_example",genus="genus_example",family="family_example",order="order_example",_class="_class_example",protection_class=ProtectionClass("I"),conservation_status=ConservationStatus("EX"),),]# [Species] |try:# Bulk Patch Speciesapi_response=api_instance.bulk_patch_species_analytics_species_patch(species)pprint(api_response)exceptopenapi_client.ApiExceptionase:print("Exception when calling DefaultApi->bulk_patch_species_analytics_species_patch:%s\n"%e)Documentation for API EndpointsAll URIs are relative tohttp://localhost:8000ClassMethodHTTP requestDescriptionDefaultApibulk_patch_species_analytics_species_patchPATCH/analytics/speciesBulk Patch SpeciesDefaultApiget_defendant_analytics_judgment_defendant_getGET/analytics/judgment/defendantGet DefendantDefaultApiget_judgment_analytics_judgment_judgment_id_getGET/analytics/judgment/{judgment_id}Get JudgmentDefaultApiget_sources_analytics_judgment_source_getGET/analytics/judgment/sourceGet SourcesDefaultApiget_species_analytics_species_getGET/analytics/speciesGet SpeciesDefaultApipost_defendant_analytics_judgment_defendant_judgment_id_postPOST/analytics/judgment/defendant/{judgment_id}Post DefendantDefaultApipost_judgment_analytics_judgment_postPOST/analytics/judgmentPost JudgmentDefaultApipost_source_analytics_judgment_source_judgment_id_postPOST/analytics/judgment/source/{judgment_id}Post SourceDefaultApiread_root_getGET/Read RootDefaultApisearch_judgments_analytics_judgment_getGET/analytics/judgmentSearch JudgmentsDocumentation For ModelsConservationStatusDefendantDefendantPostHTTPValidationErrorJudgmentJudgmentPostProtectionClassSourceSourceCategorySourcePostSpeciesSpeciesBulkPatchResultSpeciesShortValidationErrorDocumentation For AuthorizationAll endpoints do not require authorization.AuthorNotes for Large OpenAPI documentsIf the OpenAPI document is large, imports in openapi_client.apis and openapi_client.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 openapi_client.api.default_api import DefaultApifrom openapi_client.model.pet import PetSolution 2:
Before importing the package, adjust the maximum recursion limit as shown below:import sys
sys.setrecursionlimit(1500)
import openapi_client
from openapi_client.apis import *
from openapi_client.models import *