You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any reason why any importation trigger a web requests to Microsoft API?
A simple: import deep_translator will trigger requests.get(microsoft_languages_api_url) located in constants.py
(commit: 8d368b7)
I would suggest to make this web request when MicrosoftTranslator is imported instead by moving the code in the MicrosoftTranslator class init.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Is there any reason why any importation trigger a web requests to Microsoft API?
A simple:
import deep_translatorwill triggerrequests.get(microsoft_languages_api_url)located in constants.py(commit: 8d368b7)
I would suggest to make this web request when
MicrosoftTranslatoris imported instead by moving the code in theMicrosoftTranslatorclass init.Awesome job otherwise with the project.
Beta Was this translation helpful? Give feedback.
All reactions