{"id":23878,"library":"imagekitio","title":"ImageKit Python SDK","description":"The official Python library for the ImageKit API. Version 5.4.0 supports image and video management, transformations, URL generation, and DAM operations. Requires Python >=3.9.","status":"active","version":"5.4.0","language":"python","source_language":"en","source_url":"https://github.com/imagekit-developer/imagekit-python","tags":["imagekit","image","video","dam","cdn","transformation"],"install":[{"cmd":"pip install imagekitio","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"wrong":"from imagekitio import ImageKitClient","symbol":"Client","correct":"from imagekitio import Client"},{"symbol":"AsyncClient","correct":"from imagekitio import AsyncClient"},{"symbol":"AsyncImageKit","correct":"from imagekitio import AsyncImageKit"}],"quickstart":{"code":"import os\nfrom imagekitio import ImageKitClient\n\nclient = ImageKitClient(\n    private_key=os.environ.get('IMAGEKIT_PRIVATE_KEY', 'your_private_key'),\n    public_key=os.environ.get('IMAGEKIT_PUBLIC_KEY', 'your_public_key'),\n    url_endpoint=os.environ.get('IMAGEKIT_URL_ENDPOINT', 'https://ik.imagekit.io/your_imagekit_id')\n)\n\n# Upload a file\nupload = client.upload_file(\n    file=open('path/to/image.jpg', 'rb'),\n    file_name='example.jpg'\n)\nprint(upload.url)","lang":"python","description":"Initialize the client with your credentials and upload a file."},"warnings":[{"fix":"Update imports to `from imagekitio import ImageKitClient` and adapt to new method signatures (e.g., `upload_file` instead of `upload`).","message":"Version 5.0.0 is a complete rewrite. The old SDK (v4.x) used `ImageKit` class and `imagekitio.ImageKit` import. New SDK uses `ImageKitClient` and different API methods.","severity":"breaking","affected_versions":"<5.0.0"},{"fix":"Replace `from imagekitio import ImageKit` with `from imagekitio import ImageKitClient`.","message":"The `ImageKit` class from v4.x is deprecated and removed in v5. Use `ImageKitClient` instead.","severity":"deprecated","affected_versions":">=4.0.0, <5.0.0"},{"fix":"Upgrade to v4.0.1+ and use URL-encoded strings when generating signed URLs.","message":"Signed URL generation with diacritic characters can produce invalid signatures (fixed in v4.0.1 but still relevant). Ensure URLs are properly encoded if you encounter 401 errors.","severity":"gotcha","affected_versions":"<4.0.1, >0"}],"env_vars":null,"search_vec":"'3.9':27 '5.4.0':13 'api':11 'cdn':32 'dam':23,31 'generat':21 'imag':15,29 'imagekit':1,10,28 'librari':7 'manag':18 'offici':5 'oper':24 'python':2,6,26 'requir':25 'sdk':3 'support':14 'transform':19,33 'url':20 'version':12 'video':17,30","created_at":"2026-05-01T08:10:06.489468+00:00","updated_at":"2026-05-01T08:10:06.489468+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"5.7.0","cli_name":"","cli_version":null,"type":"library","homepage":"https://imagekit.io","github":"https://github.com/imagekit-developer/imagekit-python","docs":null,"changelog":null,"pypi":"https://pypi.org/project/imagekitio/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["communication","aws","gcp","azure"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-08-02","install_tag":null}}