-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support version 3 of translator API #3
Conversation
Any idea why the test is failing? |
Hi! yes, but first let me tell something. I've been taking a closer look at the code to implement V3. I can see that in this change both V1 and V2 are coexisting in parallel structures About tests, they fail for two reasons:
You can run the tests in your local machine and see this
I don't know if we can get a test CLIENT_ID and CLIENT_SECRET for tests to run on travis, since these are linked to a billing account in Azure. AFAIK there are no "free only, never charge" accounts. Conclusion: This version works for V2. I'm currently working on V3 and will remove much code and leave it much more simple. We can wait until I finish that and merge it directly. Tests will not work for reason #1 but I can confirm that they work in my local machine. Thoughts? |
Hey @sharoonthomas ! Reflecting changes in the API, here are some changes in the way the library works:
So
What I didn't do is test it in python 3. Maybe tomorrow but also it would be nice that you test it in your local machine and confirm that tests work for you too. Ok, looking forward to your review! |
Now I tested in python 2 and python 3 and should be ready to merge |
Merging this. Can you also DM me a key that we can set on travis for automatic builds? |
No, because keys are tied to billing methods 😅
I already requested microsoft if they can give a key that will just stop
working (instead of charging) if it goes beyond the monthly free 2M chars, but they
said it's not possible.
|
After you merge this you can close this PR #2 which is included in this one Also it would be awesome if you guys could make a pip release |
hey! wondering whats the status on this one! |
hi @sharoonthomas I would love to see this merged so this library becomes useful again. Anything blocking the merge? If you guys dont want to maintain this anymore I can also take that role because my company uses this library |
You can now close this issue #1 |
Support for version 3 of microsoft translator API
Update to using Azure cognitive services auth token
Fix tests (note: tests fail in travis because an azure token is needed)
NOTE: this PR started for version 2 of the API and then for version 3