default import send web requests to Microsoft API #128
imaginetonic
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there any reason why any importation trigger a web requests to Microsoft API?
A simple:
import deep_translator
will triggerrequests.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 theMicrosoftTranslator
class init.Awesome job otherwise with the project.
Beta Was this translation helpful? Give feedback.
All reactions