demian-wolf / pyreverso

Reverso API wrapper for Python
https://reverso.net/
MIT License
49 stars 14 forks source link

Issue in context.py example #4

Closed Jaleel-VS closed 3 years ago

Jaleel-VS commented 3 years ago

I think reverso_api import ReversoContextAPI should be reverso_api.context import ReversoContextAPI

demian-wolf commented 3 years ago

Before I have reorganized the package structure a few days ago, reverso_api.context was the only way to import ReversoContextAPI.

Actually, it still is in the v0.0.1b3 release (the latest one, at the moment of writing this). It looks like you are asking this question because you got ImportError while trying to run the already changed example with that release :)

With the latest commits, I have added another, now preferred, way for importing stuff from reverso_api: from reverso_api import .... That said, from reverso_api.context import ... will continue to work with future releases for backward compatibility.