imagekit-developer / imagekit-python

ImageKit.io Python SDK
https://imagekit.io
MIT License
53 stars 18 forks source link

Imports not working #54

Closed jobyid closed 1 year ago

jobyid commented 1 year ago

I have the SDK installed and am trying to follow the code example in the readme and docs.

from imagekitio.models.RenameFileRequestOptions import RenameFileRequestOptions

options = RenameFileRequestOptions(file_path='/file_path.jpg',
                                   new_file_name='new_file_name.jpg',
                                   purge_cache=True)
result = imagekit.rename_file(options=options)

# Final Result
print(result)

# Raw Response
print(result.response_metadata.raw)

# print the purge request id
print(result.purge_request_id)

however the import is not correct, it can't find models or RenameFileRequestOptions. Are the dice just wrong?

jobyid commented 1 year ago

old version