Ovyerus / deeppyer

Image deepfryer written in Python.
MIT License
43 stars 5 forks source link

fix: remove async/await API #8

Closed wale closed 6 months ago

wale commented 1 year ago

This PR removes the async/await API that was introduced when deeppyer used Microsoft's image API.

The programmatic API is now reduced to:

from PIL import Image
import deeppyer, asyncio

def main():
    img = Image.open('./foo.jpg')
    img = deeppyer.deepfry(img)
    img.save('./bar.jpg')

if __name__ == "__main__":
    main()

Closes #6