From nabbygirl at gmail.com Fri Jan 6 09:25:53 2017 From: nabbygirl at gmail.com (Jessica Upani) Date: Fri, 6 Jan 2017 16:25:53 +0200 Subject: [Python-africa] HELP Message-ID: Dear everyone I have a friend who needs help with something. Is anyone able to help her out? "I'm supposed to write a config app that reads from an sftp server. It's supposed to drop and fetch files from it. Any idea on how to go about it?" Any kind of help will be much appreciated. Thanks a lot for your help in advance. Regards Jessica -------------- next part -------------- An HTML attachment was scrubbed... URL: From absicsz at gmail.com Sat Jan 7 09:19:03 2017 From: absicsz at gmail.com (Sicelo) Date: Sat, 7 Jan 2017 16:19:03 +0200 Subject: [Python-africa] HELP In-Reply-To: References: Message-ID: <20170107141902.GA15594@fremantle> On Fri, Jan 06, 2017 at 04:25:53PM +0200, Jessica Upani wrote: > "I'm supposed to write a config app that reads from an sftp server. It's > supposed to drop and fetch files from it. Any idea on how to go about it?" > > Any kind of help will be much appreciated. Thanks a lot for your help in > advance. I am still very new to Python, so I cannot really help with code so much. However, to solve the problem, it is important to understand what an sftp server is - it is simply an SSH server. So, all that is needed is to use a Python SSH module (seems paramiko is considered the best). Alternatively, there is also pysftp. With this background info, I hope your friend can do it. Regards Sicelo A. Mhlongo From nabbygirl at gmail.com Sun Jan 15 17:48:33 2017 From: nabbygirl at gmail.com (Jessica Upani) Date: Mon, 16 Jan 2017 00:48:33 +0200 Subject: [Python-africa] Python-africa Digest, Vol 12, Issue 1 In-Reply-To: References: Message-ID: Thank you very much Sicelo A. Mhlongo. On Sat, Jan 7, 2017 at 7:00 PM, wrote: > Send Python-africa mailing list submissions to > python-africa at python.org > > To subscribe or unsubscribe via the World Wide Web, visit > https://mail.python.org/mailman/listinfo/python-africa > or, via email, send a message with subject or body 'help' to > python-africa-request at python.org > > You can reach the person managing the list at > python-africa-owner at python.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Python-africa digest..." > > > Today's Topics: > > 1. HELP (Jessica Upani) > 2. Re: HELP (Sicelo) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Fri, 6 Jan 2017 16:25:53 +0200 > From: Jessica Upani > To: python-africa at python.org, oumagano > Subject: [Python-africa] HELP > Message-ID: > gmail.com> > Content-Type: text/plain; charset="utf-8" > > Dear everyone > > I have a friend who needs help with something. Is anyone able to help her > out? > > "I'm supposed to write a config app that reads from an sftp server. It's > supposed to drop and fetch files from it. Any idea on how to go about it?" > > Any kind of help will be much appreciated. Thanks a lot for your help in > advance. > > Regards > Jessica > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: attachments/20170106/095605f8/attachment-0001.html> > > ------------------------------ > > Message: 2 > Date: Sat, 7 Jan 2017 16:19:03 +0200 > From: Sicelo > To: python-africa at python.org > Subject: Re: [Python-africa] HELP > Message-ID: <20170107141902.GA15594 at fremantle> > Content-Type: text/plain; charset=us-ascii > > On Fri, Jan 06, 2017 at 04:25:53PM +0200, Jessica Upani wrote: > > "I'm supposed to write a config app that reads from an sftp server. It's > > supposed to drop and fetch files from it. Any idea on how to go about > it?" > > > > Any kind of help will be much appreciated. Thanks a lot for your help in > > advance. > > I am still very new to Python, so I cannot really help with code so > much. However, to solve the problem, it is important to understand what > an sftp server is - it is simply an SSH server. > > So, all that is needed is to use a Python SSH module (seems paramiko is > considered the best). Alternatively, there is also pysftp. > > With this background info, I hope your friend can do it. > > Regards > Sicelo A. Mhlongo > > > ------------------------------ > > Subject: Digest Footer > > _______________________________________________ > Python-africa mailing list > Python-africa at python.org > https://mail.python.org/mailman/listinfo/python-africa > > > ------------------------------ > > End of Python-africa Digest, Vol 12, Issue 1 > ******************************************** > -- **@_Jessy-Babe_#** +26481 32 86 519 -------------- next part -------------- An HTML attachment was scrubbed... URL: From nabbygirl at gmail.com Mon Jan 16 05:53:45 2017 From: nabbygirl at gmail.com (Jessica Upani) Date: Mon, 16 Jan 2017 12:53:45 +0200 Subject: [Python-africa] Fwd: HELP In-Reply-To: References: <39ac0baf-3530-4e08-be5c-de8f8baa7d22@googlegroups.com> Message-ID: ---------- Forwarded message ---------- From: Omagano Uushona Date: Mon, Jan 16, 2017 at 12:37 PM Subject: Re: HELP To: Jessica Upani Thank You so Much. I've used pysftp module and it worked wonders. I can list everything on the server just have to work on how to put on something and retreave something. Being file or folder. Thank you so much guys. Below is the code i've used. Incase anyone has an idea on how I can go about dropping and fetching, I'll appreciate it so much. #code is down here import pysftp srv = pysftp.Connection(host="10.42.8.161", username="omagano",password="omagano") local_path = "C:/Users/Omagano Boom/Downloads/God is reason.jpg" remote_path = "Omagano" srv.put(local_path, remote_path) srv.get(remote_path) # Get the directory and file listing data = srv.listdir() # Closes the connection srv.close() # Prints out the directories and files, line by line for i in data: print i Regards. On Mon, Jan 16, 2017 at 12:50 AM, Jessica Upani wrote: > > ---------- Forwarded message ---------- > From: frantic.naturalist > Date: Sat, Jan 7, 2017 at 1:53 PM > Subject: Re: HELP > To: Python Namibia > > > Hi Jessica, > > There is a python library for doing that kind of thing. I don't know much > about sftp, but it's just ftp like functionality with ssh. > > The library is within pypi (so you can install it with pip). > > https://bitbucket.org/dundeemt/pysftp > > From there, it should be really easy to set up the functionality. I don't > have any experience with it, but happy to help figure things out if needed. > > Regards, > Vernon > > > On Friday, 6 January 2017 16:31:12 UTC+2, Jess wrote: >> >> Dear everyone >> >> I have a friend who needs help with something. Is anyone able to help her >> out? >> >> "I'm supposed to write a config app that reads from an sftp server. It's >> supposed to drop and fetch files from it. Any idea on how to go about it?" >> >> Any kind of help will be much appreciated. Thanks a lot for your help in >> advance. >> >> Regards >> Jessica >> > -- > You received this message because you are subscribed to the Google Groups > "Python Namibia" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to pynam-society+unsubscribe at googlegroups.com. > To post to this group, send email to pynam-society at googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/ms > gid/pynam-society/39ac0baf-3530-4e08-be5c-de8f8baa7d22%40googlegroups.com > > . > For more options, visit https://groups.google.com/d/optout. > > > > -- > **@_Jessy-Babe_#** > +26481 32 86 519 > -- Omagano Uushona (student) Namibia University of Science and Technology +264818231395 <+264%2081%20823%201395> -- **@_Jessy-Babe_#** +26481 32 86 519 -------------- next part -------------- An HTML attachment was scrubbed... URL: From absicsz at gmail.com Mon Jan 16 06:52:04 2017 From: absicsz at gmail.com (Sicelo) Date: Mon, 16 Jan 2017 13:52:04 +0200 Subject: [Python-africa] Fwd: HELP In-Reply-To: References: <39ac0baf-3530-4e08-be5c-de8f8baa7d22@googlegroups.com> Message-ID: <20170116115202.GA472@fremantle> That is so good to hear! Best wishes Regards On Mon, Jan 16, 2017 at 12:53:45PM +0200, Jessica Upani wrote: > ---------- Forwarded message ---------- > From: Omagano Uushona > Date: Mon, Jan 16, 2017 at 12:37 PM > Subject: Re: HELP > To: Jessica Upani > > > Thank You so Much. > > I've used pysftp module and it worked wonders. I can list everything on the > server just have to work on how to put on something and retreave something. > Being file or folder. Thank you so much guys. Below is the code i've used. > Incase anyone has an idea on how I can go about dropping and fetching, I'll > appreciate it so much. > > #code is down here > > import pysftp > > srv = pysftp.Connection(host="10.42.8.161", > username="omagano",password="omagano") > local_path = "C:/Users/Omagano Boom/Downloads/God is reason.jpg" > remote_path = "Omagano" > > srv.put(local_path, remote_path) > srv.get(remote_path) > > > # Get the directory and file listing > data = srv.listdir() > > # Closes the connection > srv.close() > > # Prints out the directories and files, line by line > for i in data: > print i > > > Regards. > > On Mon, Jan 16, 2017 at 12:50 AM, Jessica Upani wrote: > > > > > ---------- Forwarded message ---------- > > From: frantic.naturalist > > Date: Sat, Jan 7, 2017 at 1:53 PM > > Subject: Re: HELP > > To: Python Namibia > > > > > > Hi Jessica, > > > > There is a python library for doing that kind of thing. I don't know much > > about sftp, but it's just ftp like functionality with ssh. > > > > The library is within pypi (so you can install it with pip). > > > > https://bitbucket.org/dundeemt/pysftp > > > > From there, it should be really easy to set up the functionality. I don't > > have any experience with it, but happy to help figure things out if needed. > > > > Regards, > > Vernon > > > > > > On Friday, 6 January 2017 16:31:12 UTC+2, Jess wrote: > >> > >> Dear everyone > >> > >> I have a friend who needs help with something. Is anyone able to help her > >> out? > >> > >> "I'm supposed to write a config app that reads from an sftp server. It's > >> supposed to drop and fetch files from it. Any idea on how to go about it?" > >> > >> Any kind of help will be much appreciated. Thanks a lot for your help in > >> advance. > >> > >> Regards > >> Jessica > >> > > -- > > You received this message because you are subscribed to the Google Groups > > "Python Namibia" group. > > To unsubscribe from this group and stop receiving emails from it, send an > > email to pynam-society+unsubscribe at googlegroups.com. > > To post to this group, send email to pynam-society at googlegroups.com. > > To view this discussion on the web visit https://groups.google.com/d/ms > > gid/pynam-society/39ac0baf-3530-4e08-be5c-de8f8baa7d22%40googlegroups.com > > > > . > > For more options, visit https://groups.google.com/d/optout. > > > > > > > > -- > > **@_Jessy-Babe_#** > > +26481 32 86 519 > > > > > > -- > Omagano Uushona (student) > Namibia University of Science and Technology > +264818231395 <+264%2081%20823%201395> > > > > -- > **@_Jessy-Babe_#** > +26481 32 86 519 > _______________________________________________ > Python-africa mailing list > Python-africa at python.org > https://mail.python.org/mailman/listinfo/python-africa From iwan at reahl.org Mon Jan 16 08:45:34 2017 From: iwan at reahl.org (Iwan Vosloo) Date: Mon, 16 Jan 2017 15:45:34 +0200 Subject: [Python-africa] Fwd: HELP In-Reply-To: References: <39ac0baf-3530-4e08-be5c-de8f8baa7d22@googlegroups.com> Message-ID: On 16/01/2017 12:53, Jessica Upani wrote: > Incase anyone has an idea on how I can go about dropping and fetching, > I'll appreciate it so much Hi Oumagano, I see there's a nice example of how to do that at the start of: https://pysftp.readthedocs.io/en/release_0.2.9/ Regards - Iwan -- Reahl, the Python only web framework / www.reahl.org From nabbygirl at gmail.com Sat Jan 28 14:45:08 2017 From: nabbygirl at gmail.com (Jessica Upani) Date: Sat, 28 Jan 2017 21:45:08 +0200 Subject: [Python-africa] Dear Pythonistas Message-ID: You are all invited to PyConNA 2017. Please see the attached invitation. Jessica -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Invitation to PyConNA 1017.pdf Type: application/pdf Size: 271917 bytes Desc: not available URL: