Re: learning python

2013-05-06 Thread Michael Herman
realpython.com - just launched On Sun, May 5, 2013 at 9:08 AM, leonardo selmi wrote: > hi guys > > i need to find a good book to learn python with exercises and solutions, any > suggestions? > > thanks! > > best regards > > leonardo > > -- > http://mail.python.org/mailman/listinfo/python-list > -

Re: How to: Setuptools

2013-05-28 Thread Michael Herman
I have a great video on how to setup Easy_Install via setuptools as well as pip - http://www.youtube.com/watch?v=MIHYflJwyLk On Mon, May 27, 2013 at 6:32 PM, ray wrote: > > I would like to use easy_install, but can't figure out how to install it. > > I have 64-bit Python 2.7.5 on Windows 7. > > F

Re: Creating a Super Simple WWW Link, Copy, & Paste into Spreadsheet Program

2013-06-14 Thread Michael Herman
Hi there - Yes, as others have said, this is not an easy project. That said, it can be down. I'd use a combination of DataNitro, to connect with Excel, and Scrapy, to easily scrap and crawl the sites. I'm adept at both and would be happy to help you with this. Email me at mich...@mherman.org for h

Python Weekend Challenge - $$

2013-08-30 Thread Michael Herman
https://gist.github.com/mjhea0/6390724 Check it out!:) Have a great labor day weekend. -- http://mail.python.org/mailman/listinfo/python-list

Re: Automate deployment of Python application from multiple VCS repositories

2015-04-08 Thread Michael Herman
Hi Ben, I would start with Fabric. -> http://www.fabfile.org/. It's "low-level", but super straightforward. Here's a blog post on how to setup deployment -> https://realpython.com/blog/python/kickstarting-flask-on-ubuntu-setup-and-deployment/ On Tue, Apr 7, 2015 at 7:24 PM, Ben Finney wrote: >

Re: python on windows

2013-02-16 Thread Michael Herman
http://www.youtube.com/watch?v=dFnuK9dlWdk On Sat, Feb 16, 2013 at 1:40 PM, babatunde akerele wrote: > hello, i'm having problem coding and running python on my pc...i just > started learning python last month in codeacademy.com but i've not > been able to code offline 'cos i don't knw how to go

Re: request of information

2013-02-17 Thread Michael Herman
There's a syntax error at line 1 of circle.py. Try running circle.py, you'll get more information about the error - http://docs.python.org/2/tutorial/errors.html If you can't figure it out, post your code for circle.py. On Sun, Feb 17, 2013 at 10:47 AM, leonardo selmi wrote: > > > > > > > > > >

Re: Quick IDE Question

2013-02-17 Thread Michael Herman
Yup - check out this post - http://www.chris-granger.com/2012/05/21/the-future-is-specific/ There's a Flask example On Sun, Feb 17, 2013 at 4:56 PM, Andrew Berg wrote: > On 2013.02.17 18:38, Claira wrote: > > Ok, thanks brilliant people! I can't really keep up with the > > conversation about whe

Re: Import Json web data source to xls or csv

2013-02-19 Thread Michael Herman
First - you can use Python in Excel. http://www.python-excel.org/ or https://www.datanitro.com/ Updated code: import json import urllib import csv url = "http://bitcoincharts.com/t/markets.json"; response = urllib.urlopen(url); data = json.loads(response.read()) f = open("bitcoin.csv","wb") c =

Re: Crate is a new kind of Python package index

2013-02-20 Thread Michael Herman
It's really just a supplement to PyPI. I use it quite a bit. I wish they would collaborate with PyPi or have an open API. http://www.saltycrane.com/blog/2012/10/how-use-pip-crateio/ On Wed, Feb 20, 2013 at 6:12 AM, Mark Lawrence wrote: > > Today was the first I've heard about it, can anyone shed

Re: Import Json web data source to xls or csv

2013-02-20 Thread Michael Herman
Looks like you got it figured out. The indentation error probably occurred from the copy and paste job into the email. If you're interested in getting up to speed quickly on Python and Python Web Development, I have a kickstarter going - http://kck.st/VQj8hq The $25 pledge will give you access to

Re: Import Question

2013-02-20 Thread Michael Herman
you can check each import as it varies in loading time: time python -c "import [name of module]" example: time python -c "import flask" On Wed, Feb 20, 2013 at 12:53 PM, eli m wrote: > How long does it take for the program to import something? I am asking > this because i have like 7 imports at

Re: Python scheduler

2013-02-20 Thread Michael Herman
You could simply put a time delay in your program at the end of the loop before it starts again- import time # sleep for 1 minute time.sleep(60) On Wed, Feb 20, 2013 at 8:04 PM, Rita wrote: > Hello, > > > Here is what I am trying to do. (Currently, I am doing this in cron but i > need much more

Re: Urllib's urlopen and urlretrieve

2013-02-21 Thread Michael Herman
Are you just trying to get the html? If so, you can use this code- *import urllib* * * *# fetch the and download a webpage, nameing it test.html* *urllib.urlretrieve("http://www.web2py.com/";, filename="test.html")* I recommend using the requests library, as it's easier to use and more powerful:

Re: pypi changelog api

2013-02-21 Thread Michael Herman
I'd love to see https://crate.io/ set up an API or at the very least an RSS feed for tracking changes. I've emailed the author about this. I think if enough people do, an RSS feed would be easy to setup. On Thu, Feb 21, 2013 at 5:33 AM, Philipp Hagemeister wrote: > Hi Gregg, > > to get a smaller

Re: pypi changelog api

2013-02-21 Thread Michael Herman
Oh - and I haven't tried this site, but you may be able to set something up on there to email when the changelog is updated. http://www.changedetection.com/ On Thu, Feb 21, 2013 at 5:52 AM, Michael Herman wrote: > I'd love to see https://crate.io/ set up an API or at the very l

Re: pypi changelog api

2013-02-21 Thread Michael Herman
totally agree. if you just had a listener setup you could just have a simple trigger-action setup. On Thu, Feb 21, 2013 at 6:07 AM, Philipp Hagemeister wrote: > On 02/21/2013 02:58 PM, Michael Herman wrote: > > Oh - and I haven't tried this site, but you may be able to set somethi

Re: pypi changelog api

2013-02-21 Thread Michael Herman
rs, > > Philipp > > > On 02/21/2013 02:52 PM, Michael Herman wrote: > > I'd love to see https://crate.io/ set up an API or at the very least an > RSS > > feed for tracking changes. I've emailed the author about this. I think if > > enough people do, an RSS

Re: What am I doing wrong installing Python 2.7.3?

2013-02-21 Thread Michael Herman
I assume you have admin privileges on your computer, correct? On Thu, Feb 21, 2013 at 6:39 AM, Etherus wrote: > I have downloaded the windows installer for a 32 bit installation of > python 2.7.3 but it tells me that: > > The feature you are trying to use is on a network resource that is > unava

Re: Python in web development

2013-03-03 Thread Michael Herman
If Python is your personal choice, then it's the *best* for you. If you are literally just going to be processing an HTML form, then CGI is your best bet. However, if you think this functionally will grow, then it's worth learning a web framework. I would go with a micro framework. bottle.py is a

Re: help..

2013-05-02 Thread Michael Herman
the problem is in your code: http://screencast.com/t/haF1NY5RvpMv On Thu, May 2, 2013 at 7:30 AM, Robert Kern wrote: > > On 2013-05-02 15:20, leonardo wrote: >> >> on codecademy there is an interactive box where you type your code, it is a >> kind of exercise program to practice. but i don't u