I would like to send a file through sftp with python3.6.5. I'm trying with pysftp package which seems to be a reference.
The doc says that latest version 0.2.9 (released in 2016) was checked for Python 3.4, not above (quite logic for that time). I read some comments saying it works for 3.6. I downloaded the package and try to use it, but got this mistake : AttributeError: module 'pysftp' has no attribute 'Connection'
Can't understand why .. Can someone help me out or have an other sftp package ? Thanks a lot !
Here is my code :
import pysftp
with pysftp.Connection(host=hote, username=nom, password=mdp) as sftp:
print("Connection succesfully established ... ")