Package: acme-python-sdk
acme-python-sdk@1.0.0This is a sample server Petstore server. For this sample, you can use the api keyspecial-keyto test the authorization filters.RequirementsPython >=3.7Installingpipinstallacme-python-sdk==1.0.0Getting Startedfrompprintimportpprintfromacme_clientimportAcme,ApiExceptionacme=Acme(# Defining the host is optional and defaults to http://petstore.swagger.io/v2# See configuration.py for a list of all supported configuration parameters.host="http://petstore.swagger.io/v2",)try:# Pagination sandboxpaginate_response=acme.miscellaneous.paginate(first=1,# optionalafter="string_example",# optional)pprint(paginate_response.body)pprint(paginate_response.body["edges"])pprint(paginate_response.body["page_info"])pprint(paginate_response.headers)pprint(paginate_response.status)pprint(paginate_response.round_trip_time)exceptApiExceptionase:print("Exception when calling MiscellaneousApi.paginate:%s\n"%e)pprint(e.body)pprint(e.headers)pprint(e.status)pprint(e.reason)pprint(e.round_trip_time)Asyncasyncsupport is available by prependingato any method.importasynciofrompprintimportpprintfromacme_clientimportAcme,ApiExceptionacme=Acme(# Defining the host is optional and defaults to http://petstore.swagger.io/v2# See configuration.py for a list of all supported configuration parameters.host="http://petstore.swagger.io/v2",)asyncdefmain():try:# Pagination sandboxpaginate_response=awaitacme.miscellaneous.apaginate(first=1,# optionalafter="string_example",# optional)pprint(paginate_response.body)pprint(paginate_response.body["edges"])pprint(paginate_response.body["page_info"])pprint(paginate_response.headers)pprint(paginate_response.status)pprint(paginate_response.round_trip_time)exceptApiExceptionase:print("Exception when calling MiscellaneousApi.paginate:%s\n"%e)pprint(e.body)pprint(e.headers)pprint(e.status)pprint(e.reason)pprint(e.round_trip_time)asyncio.run(main())Documentation for API EndpointsAll URIs are relative tohttp://petstore.swagger.io/v2ClassMethodHTTP requestDescriptionMiscellaneousApipaginateget/paginationPagination sandboxPetApiaddpost/petAdd a new pet to the storePetApideletedelete/pet/{petId}Deletes a petPetApifind_by_statusget/pet/findByStatusFinds Pets by statusPetApifind_by_tagsget/pet/findByTagsFinds Pets by tagsPetApiget_by_idget/pet/{petId}Find pet by IDPetApiupdateput/petUpdate an existing petPetApiupdate_with_formpost/pet/{petId}Updates a pet in the store with form dataPetApiupload_imagepost/pet/{petId}/uploadImageuploads an imageStoreApidelete_orderdelete/store/order/{orderId}Delete purchase order by IDStoreApiget_inventoryget/store/inventoryReturns pet inventories by statusStoreApiget_order_by_idget/store/order/{orderId}Find purchase order by IDStoreApiplace_orderpost/store/orderPlace an order for a petUserApicreatepost/userCreate userUserApicreate_with_arraypost/user/createWithArrayCreates list of users with given input arrayUserApicreate_with_listpost/user/createWithListCreates list of users with given input arrayUserApideletedelete/user/{username}Delete userUserApiget_by_nameget/user/{username}Get user by user nameUserApiloginget/user/loginLogs user into the systemUserApilogoutget/user/logoutLogs out current logged in user sessionUserApiupdateput/user/{username}Updated userDocumentation For ModelsApiResponseCategoryCreateWithArrayRequestFindByStatus200ResponseFindByStatusResponseFindByTags200ResponseFindByTagsResponseGetInventoryResponseLogin200ResponseLoginResponseOrderPaginateRequestPaginateResponsePetTagUpdateWithFormRequestUploadImageRequestUserUserCreateRequestAuthorThis Python package is automatically generated byKonfig