From stuart at swilliams.ca Wed Oct 13 22:07:52 2010 From: stuart at swilliams.ca (Stuart Williams) Date: Wed, 13 Oct 2010 21:07:52 -0500 Subject: [Python Wpg] September meeting summary, October meeting plans Message-ID: Our September meeting had 7 or 8 in attendance at the U of M. Here's what I recall from the meeting, 3 weeks later. I should have written this then. If you were there and recall more, or differently, please chime in. The meeting was helpful, getting to know each other, learning how we're using Python, and exchanging a bunch of ideas. However, everyone agreed it wouldn't be very interesting to repeat the format. The general feedback on meeting times was that daytime meetings would not work for everyone and generally an evening meeting time is preferred. Most people at that meeting could make evening meetings at U of M or downtown. There was strong interest in hearing presentations on Python techniques or libraries. It was suggested that people look through and edit the list on the wiki page (at http://WinniPUG.ca) to add new ideas, or start a discussion on the mailing list. We'll try to have our October meeting downtown over the lunch hour and the November in the evening. If you're downtown and can host a meeting of 10 or 15 people let me know. Stuart. -------------- next part -------------- An HTML attachment was scrubbed... URL: From kveroneau at gmail.com Thu Oct 14 09:53:56 2010 From: kveroneau at gmail.com (Kevin Veroneau) Date: Thu, 14 Oct 2010 08:53:56 -0500 Subject: [Python Wpg] For anybody using Rackspace cloud files Message-ID: Hello everyone, I thought I'd share a few python files with you today, mainly for those here who take advantage of Rackspace's cloud features. I would highly recommend them, if you do not current use them. Rackspace cloud files is a very cost effective off-site backup, and can be used for many other things. I currently have a python web application which uploads data to the cloud files service and requested downloads are simply linked directly to a public cloud container. With cloud files, you can either have a container marked as private, or public. Private requires API access to do remote downloads, where as public, they provide you with a URI. Attached files: uploader.py - A small and simple Python command-line program to easily upload data into the cloud. cloudclass.py - A small and simple Python class to easily make programs to upload/download to/from the cloud. backup-proj.py - A small and simple Python command-line program to easily tarball and upload a directory structure to the cloud. You will need to edit them and insert your own username and API Key from rackspace cloud. I like the last program, as it really shows how powerful this cloud file system really is. You could put something like this in a cron script for example, or a .profile, or some other start-up file. If you would like to learn more about Rackspace cloud and obtain their Python bindings, visit: http://www.rackspacecloud.com/ They do have very competitive pricing, I use both their Cloud servers and Cloud files services. Enjoy! Kevin Veroneau -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: uploader.py Type: text/x-python Size: 573 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: cloudclass.py Type: text/x-python Size: 1021 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: backup-proj.py Type: text/x-python Size: 296 bytes Desc: not available URL: From jason at peaceworks.ca Thu Oct 14 10:04:46 2010 From: jason at peaceworks.ca (Jason Hildebrand) Date: Thu, 14 Oct 2010 10:04:46 -0400 (EDT) Subject: [Python Wpg] For anybody using Rackspace cloud files In-Reply-To: Message-ID: <19358143.2291287065086579.JavaMail.root@zimbra> Hi Kevin, This looks interesting; thanks for sharing. For large backups, I view rsync or equivalent functionality as a key feature. The idea is that if you already have a full backup on the server, only the differences will be transferred each day, saving substantial bandwidth and time. Do you know if this is possible using Cloud Files? peace, Jason -- Jason Hildebrand PeaceWorks Computer Consulting #1 - 396 Assiniboine Ave, Winnipeg 204 480 0314 --or-- 519 725 7875, ext 6020. ----- "Kevin Veroneau" wrote: > Hello everyone, > > > I thought I'd share a few python files with you today, mainly for > those here who take advantage of Rackspace's cloud features. I would > highly recommend them, if you do not current use them. Rackspace cloud > files is a very cost effective off-site backup, and can be used for > many other things. I currently have a python web application which > uploads data to the cloud files service and requested downloads are > simply linked directly to a public cloud container. With cloud files, > you can either have a container marked as private, or public. Private > requires API access to do remote downloads, where as public, they > provide you with a URI. > > > Attached files: > > > uploader.py - A small and simple Python command-line program to easily > upload data into the cloud. > cloudclass.py - A small and simple Python class to easily make > programs to upload/download to/from the cloud. > backup-proj.py - A small and simple Python command-line program to > easily tarball and upload a directory structure to the cloud. > > > You will need to edit them and insert your own username and API Key > from rackspace cloud. I like the last program, as it really shows how > powerful this cloud file system really is. You could put something > like this in a cron script for example, or a .profile, or some other > start-up file. > > > If you would like to learn more about Rackspace cloud and obtain their > Python bindings, visit: http://www.rackspacecloud.com/ > > > They do have very competitive pricing, I use both their Cloud servers > and Cloud files services. > > > Enjoy! > Kevin Veroneau > _______________________________________________ > Winnipeg Python Users Group mailing list > http://WinniPUG.ca > Winnipeg at python.org > http://mail.python.org/mailman/listinfo/winnipeg From kveroneau at gmail.com Thu Oct 14 11:00:47 2010 From: kveroneau at gmail.com (Kevin Veroneau) Date: Thu, 14 Oct 2010 10:00:47 -0500 Subject: [Python Wpg] For anybody using Rackspace cloud files In-Reply-To: <19358143.2291287065086579.JavaMail.root@zimbra> References: <19358143.2291287065086579.JavaMail.root@zimbra> Message-ID: Hello Jason, Yes, there is a Python program called duplicity, their latest version supports rsync to a cloud files container. Duplicity project: http://duplicity.nongnu.org/ Blog about using Duplicity with Rackspace cloud: http://blog.chmouel.com/2009/09/02/rsync-like-backup-to-rackspace-cloud-file-with-duplicity/ Also, if you look at the second Python program, you can easily use popen in python to open a pipe and pipe in rsync. The documentation in the Python bindings github may have some information on how one would use rsync via a Python program. You will also need the Python module for Rackspace cloud files installed from here. http://github.com/rackspace/python-cloudfiles/tree/master/docs/ Hope this was of help to you, Kevin Veroneau On Thu, Oct 14, 2010 at 9:04 AM, Jason Hildebrand wrote: > Hi Kevin, > > This looks interesting; thanks for sharing. > > For large backups, I view rsync or equivalent functionality as a key > feature. The idea is that if you already have a full backup on the server, > only the differences will be transferred each day, saving substantial > bandwidth and time. Do you know if this is possible using Cloud Files? > > peace, > Jason > > -- > Jason Hildebrand > PeaceWorks Computer Consulting > #1 - 396 Assiniboine Ave, Winnipeg > 204 480 0314 --or-- 519 725 7875, ext 6020. > > ----- "Kevin Veroneau" wrote: > > > Hello everyone, > > > > > > I thought I'd share a few python files with you today, mainly for > > those here who take advantage of Rackspace's cloud features. I would > > highly recommend them, if you do not current use them. Rackspace cloud > > files is a very cost effective off-site backup, and can be used for > > many other things. I currently have a python web application which > > uploads data to the cloud files service and requested downloads are > > simply linked directly to a public cloud container. With cloud files, > > you can either have a container marked as private, or public. Private > > requires API access to do remote downloads, where as public, they > > provide you with a URI. > > > > > > Attached files: > > > > > > uploader.py - A small and simple Python command-line program to easily > > upload data into the cloud. > > cloudclass.py - A small and simple Python class to easily make > > programs to upload/download to/from the cloud. > > backup-proj.py - A small and simple Python command-line program to > > easily tarball and upload a directory structure to the cloud. > > > > > > You will need to edit them and insert your own username and API Key > > from rackspace cloud. I like the last program, as it really shows how > > powerful this cloud file system really is. You could put something > > like this in a cron script for example, or a .profile, or some other > > start-up file. > > > > > > If you would like to learn more about Rackspace cloud and obtain their > > Python bindings, visit: http://www.rackspacecloud.com/ > > > > > > They do have very competitive pricing, I use both their Cloud servers > > and Cloud files services. > > > > > > Enjoy! > > Kevin Veroneau > > _______________________________________________ > > Winnipeg Python Users Group mailing list > > http://WinniPUG.ca > > Winnipeg at python.org > > http://mail.python.org/mailman/listinfo/winnipeg > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kveroneau at gmail.com Thu Oct 14 20:18:56 2010 From: kveroneau at gmail.com (Kevin Veroneau) Date: Thu, 14 Oct 2010 19:18:56 -0500 Subject: [Python Wpg] Has anyone tried gunicorn to host Python WSGI applications? Message-ID: Hello, While going through my Debian repos, I found an interesting package which caught my eye. A server built for HTTP/WSGI natively. I am very much tempted on trying it out and seeing how well it can scale. Project page: http://gunicorn.org/ Also while viewing their project page, it notes an interesting Python package called virtualenv. Is this package like a jail/chroot in a sense for Python. As this would be very beneficial for mass hosting Python applications as a web host. Apache for example does not make it easy to jail a Python application, thus making managing a virtual host for Python applications more difficult to manage than say PHP, or standard CGI. Could I have some input and suggestions for my Python hosting site, which I am in the process of starting? Version 1 website: http://www.zyrixhost.net/home Version 2 website: http://www.zyrixhost.net/v2/ Which site catches your eye more, and what do you think I should change? Kevin Veroneau -------------- next part -------------- An HTML attachment was scrubbed... URL: From kveroneau at gmail.com Fri Oct 22 01:37:17 2010 From: kveroneau at gmail.com (Kevin Veroneau) Date: Fri, 22 Oct 2010 00:37:17 -0500 Subject: [Python Wpg] Has any meeting date been scheduled as of yet? Message-ID: Hello everyone, Just wondering if we are still going to be meeting sometime this month, as the month is nearing it's end. An interesting topic which I would like to bring up for the next meeting would be what types of jobs would be looking for Python programmers, and how would you explain to your I.T. to switch over from some other language to Python and explain why Python would be a better match. Also, at this point, what types of languages could Python possibly replace in ones workplace? Would Python be a good replacement for that ColdFusion web application that needs to be rewritten? A Java application that has gone stale and needs a new one made up? Or perhaps, a .NET application that could be replaced with a Python solution? I know for the most part, Python can definitely replace many shell scripts in a UNIX environment, but how useful is Python to deploy in a Windows environment verse it's competitors? What would be the best way to deploy Python across a Corporate domain? Can Python be deployed via an Active Directory Administrator, or is there more work involved? The reason I ask these, is that I mainly see Python in UNIX/MacOSX environments, but Python does not seem to be as wide spread on the Windows platform. Most Windows SysAdmins seem to prefer SharePoint and .NET applications. I used to see Java used, but a lot less these days. Do many Windows SysAdmins even know about Python and it's abilities to interface with Windows? Could a SysAdmin compile Python source modules into an EXE for easy deployment, or is the full Python interpreter required? What is the main road block preventing Windows SysAdmins from diving into Python(pun intended)? Kevin Veroneau -------------- next part -------------- An HTML attachment was scrubbed... URL: From stuart at swilliams.ca Fri Oct 22 08:42:06 2010 From: stuart at swilliams.ca (Stuart Williams) Date: Fri, 22 Oct 2010 07:42:06 -0500 Subject: [Python Wpg] Has any meeting date been scheduled as of yet? In-Reply-To: References: Message-ID: I've been waiting, hoping someone would offer a lunchtime venue for our meeting, which I solicited in my email 8 days ago. I've been too busy to pester or organize it further myself. October 27th would be our usual meeting date, but that's now only 5 days away so we may need to wait another week or two. Anyone interested in organizing a venue? It doesn't have to be a private room, perhaps a restaurant or a public meeting room at the library (assuming such things exist). Stuart. On Fri, Oct 22, 2010 at 12:37 AM, Kevin Veroneau wrote: > Hello everyone, > > Just wondering if we are still going to be meeting sometime this month, > as the month is nearing it's end. An interesting topic which I would like > to bring up for the next meeting would be what types of jobs would be > looking for Python programmers, and how would you explain to your I.T. to > switch over from some other language to Python and explain why Python would > be a better match. > > Also, at this point, what types of languages could Python possibly > replace in ones workplace? Would Python be a good replacement for that > ColdFusion web application that needs to be rewritten? A Java application > that has gone stale and needs a new one made up? Or perhaps, a .NET > application that could be replaced with a Python solution? > > I know for the most part, Python can definitely replace many shell > scripts in a UNIX environment, but how useful is Python to deploy in a > Windows environment verse it's competitors? What would be the best way to > deploy Python across a Corporate domain? Can Python be deployed via an > Active Directory Administrator, or is there more work involved? > > The reason I ask these, is that I mainly see Python in UNIX/MacOSX > environments, but Python does not seem to be as wide spread on the Windows > platform. Most Windows SysAdmins seem to prefer SharePoint and .NET > applications. I used to see Java used, but a lot less these days. Do many > Windows SysAdmins even know about Python and it's abilities to interface > with Windows? Could a SysAdmin compile Python source modules into an EXE > for easy deployment, or is the full Python interpreter required? What is > the main road block preventing Windows SysAdmins from diving into Python(pun > intended)? > > Kevin Veroneau > > _______________________________________________ > Winnipeg Python Users Group mailing list > http://WinniPUG.ca > Winnipeg at python.org > http://mail.python.org/mailman/listinfo/winnipeg > > -------------- next part -------------- An HTML attachment was scrubbed... URL: