Skip to main content

MilanPetstoreSdk Python SDK 1.0.0

A Python SDK for MilanPetstoreSdk.

  • API version: 1.0.0
  • SDK version: 1.0.0

Table of Contents

Installation

pip install milan-petstore-sdk

Services

A list of all SDK services. Click on the service name to access its corresponding service methods.

Service
PetsService

PetsService

A list of all methods in the PetsService service. Click on the method name to view detailed information about that method.

Methods Description
list_pets
create_pets
show_pet_by_id

list_pets

  • HTTP Method: GET
  • Endpoint: /pets

Parameters

Name Type Required Description
limit int ❌ list_pets

Return Type

List[Pet]

Example Usage Code Snippet

from milan_petstore_sdk import MilanPetstoreSdk, Environment

sdk = MilanPetstoreSdk(
    base_url=Environment.DEFAULT.value
)

result = sdk.pets.list_pets(limit=85)

print(result)

create_pets

  • HTTP Method: POST
  • Endpoint: /pets

Parameters

Name Type Required Description
request_body Pet ✅ The request body.

Example Usage Code Snippet

from milan_petstore_sdk import MilanPetstoreSdk, Environment
from milan_petstore_sdk.models import Pet

sdk = MilanPetstoreSdk(
    base_url=Environment.DEFAULT.value
)

request_body = Pet(**{
    "id_": 8,
    "name": "name",
    "tag": "tag"
})

result = sdk.pets.create_pets(request_body=request_body)

print(result)

show_pet_by_id

  • HTTP Method: GET
  • Endpoint: /pets/{petId}

Parameters

Name Type Required Description
petId str ✅ show_pet_by_id

Return Type

Pet

Example Usage Code Snippet

from milan_petstore_sdk import MilanPetstoreSdk, Environment

sdk = MilanPetstoreSdk(
    base_url=Environment.DEFAULT.value
)

result = sdk.pets.show_pet_by_id(pet_id="petId")

print(result)

Release files for milan-petstore-sdk 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for milan-petstore-sdk 1.0.0
File Size Uploaded
milan-petstore-sdk-1.0.0.tar.gz 15.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for milan-petstore-sdk 1.0.0
File Interpreter ABI Platform
milan_petstore_sdk-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 39.3 kB

Release files / milan-petstore-sdk-1.0.0.tar.gz

Download URL milan-petstore-sdk-1.0.0.tar.gz
Size 15.6 kB
Tags Source
SHA-256 checksum
How to use checksums
179f716a31d741dd9db1f922e143ef56363b8125d331e05cf021bead1cadd1ba
BLAKE2b-256 checksum
How to use checksums
44879cd82329ea4043a38d151f7233a78c0ffbe62b8342dbeb8e950aa97546f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.19

Release files / milan_petstore_sdk-1.0.0-py3-none-any.whl

Download URL milan_petstore_sdk-1.0.0-py3-none-any.whl
Size 23.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c065df625dd0e6dab5f9ed029998e483deb52512ca67cd9911b88c333827cfc9
BLAKE2b-256 checksum
How to use checksums
a3ae5c7fab0463ab1028c503c489ff0e6b62d53fe37bf53cf8a8afe8c0744579
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.19

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page