Cogniac / cogniac-sdk-py

Python SDK for Cogniac Public API
Apache License 2.0
5 stars 6 forks source link

init python3 support #86

Closed sergii-bond closed 3 years ago

sergii-bond commented 3 years ago

I run this test and got not issues.

import cogniac

cc = cogniac.CogniacConnection(tenant_id="some_tenant")

apps = cc.get_all_applications()

print(apps)

subj = cc.get_subject("some_subject")

m = cc.create_media(filename="some-image.jpg")

subj.associate_media(m)
%python3 ./sdk_p3_test.py
...
%python3 --version
Python 3.8.4

At the same time python 2.7 can run it too.

wskish commented 3 years ago

please also update readme to mention supported version of python 3