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
>
-- 
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.
>
> Following the instructions on https://pypi.python.org/pypi/setuptools, it
> says:
> Download ez_setup.py and run it; it will download the appropriate .egg
> file and install it for you. (Currently, the provided .exe installer does
> not support 64-bit versions of Python for Windows, due to a distutils
> installer compatibility issue
>
> Being new to Python, I don't know what it means to "run it".  I am not
> sure what I am looking at when I open it as the first line is "#!python".
>
> Looking down into the content of ez_setup.py, I find:
> 'setuptools-0.6c10-py2.6.egg':
> but there is no entry
> 'setuptools-0.6c10-py2.7.egg':
>
> Searching for it, I found a version at:
> https://pypi.python.org/packages/2.7/s/setuptools/
>
> This appeared to be a linux version, the first line is:
> #!/bin/sh
> and the content seems to be encoded.
>
> There is an exe at https://pypi.python.org/pypi/setuptools, but the
> instructions on the page state the .exe won't work for 64-bit installs.
>
> Ray
>
> --
> http://mail.python.org/mailman/listinfo/python-list
-- 
http://mail.python.org/mailman/listinfo/python-list


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 help.

Best,

Michael

On Thu, Jun 13, 2013 at 12:28 PM,  wrote:
>
> Hi, I'm new to Python. Would someone be able to write me and/or to show me
> how to write a simple program that:
>
> 1-follows a hyperlink from MS Excel to the internet (one of many links
> like this, http://www.zipdatamaps.com/76180, for e.g.) and then,
>
> 2-copies some data (a population number, e.g. 54195) and then,
>
> 3-pastes that data back into the same MS Excel spreadsheet, into the
> adjacent cell.
>
> ... and that’s it... row after row of hyperlinks all in one column...
>
> Please, please help me my wrist is starting to hurt a lot. You would have
> my greatest appreciation for your help!
>
> thank you, Buford
> --
> http://mail.python.org/mailman/listinfo/python-list
-- 
http://mail.python.org/mailman/listinfo/python-list


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:

> Howdy all,
>
> What tools are available to automate deployment of a Python application
> comprising many discrete modules, spread across different code bases in
> different VCS repositories?
>
> My idea is to have a single definition (itself under VCS control) that
> specifies VCS locations and branches, a hierarchy into which all the
> modules fit, and a deployment host.
>
> host foo:
> repo ‘spam-common ’, branch ‘trunk’, at ‘./common/’
> repo ‘beans ’, branch ‘version 6.1’, at ‘./’
> repo ‘sausage ’, branch ‘trunk’, at ‘./third-party/sausage/’
>
> host bar:
> repo ‘spam-common ’, branch ‘maint’, at ‘./common/’
> repo ‘beans ’, branch ‘version 7.0’, at ‘./’
> repo ‘eggs ’, branch ‘master’, at ‘./third-party/eggs/’
> repo ‘toast ’, branch ‘trunk’, at ‘./third-party/eggs/toast/’
> repo ‘sausage ’, branch ‘version 1.4’, at
> ‘./third-party/sausage/’
>
> The deployment tool, when told which host specification to use, then
> gathers the code by exporting it from its disparate branches, fits it
> into the directory hierarchy, and deploys that to the specified host.
>
> The goal is to be able to have multiple host specifications, each of
> which needs a different set of code repositories (and often different
> branches within those repositories) to be built into the deployed
> application.
>
> What frameworks are there to do this for Python code?
>
> --
>  \   “Know what I hate most? Rhetorical questions.” —Henry N. Camp |
>   `\   |
> _o__)  |
> Ben Finney
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


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 abt installing
> the compiler and all that. Any help please?
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-- 
http://mail.python.org/mailman/listinfo/python-list


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:

>
> >
> >
> >
> >
> >> gentlemen:
> >>
> >> i am reading a book about python and now i am blocked, i can't store
> functions in modules: i have a mac and am using version 2.7.3, i have
> created a function and want to save it as a file using "idle", i have saved
>  it with .py , when i try to import the module i get an error:
> traceback(most recent call last) file
> >> "", line 1, in 
> >> import circle
> >> file "circle.py", line 1
> >> syntax error: invalid syntax
> >>
> >> can you kindly help me?
> >> thanks!
> >>
> >> best regards
> >
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-- 
http://mail.python.org/mailman/listinfo/python-list


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 where I should ask since I check my email once a
> > week, though the quick question I had was that I heard lighttable.com
> >  was an innovative IDE, and since I'm preparing
> > for the future, I just wanted to know if light table supports python.
> > Thanks!!
> I remember reading on the Kickstarter page that it will since it raised
> a certain amount of money.
> --
> CPython 3.3.0 | Windows NT 6.2.9200.16461 / FreeBSD 9.1-RELEASE
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-- 
http://mail.python.org/mailman/listinfo/python-list


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 = csv.writer(f)

# write headers
c.writerow(["Currency","Symbol","Bid", "Ask", "Volume"])


for d in data:

c.writerow([str(d["currency"]),str(d["symbol"]),str(d["bid"]),str(d["ask"]),str(d["currency_volume"])])



On Tue, Feb 19, 2013 at 3:48 PM, io  wrote:

> Hi,
>
> i'm new to python and programming with it and so for json format.
> I have my excel 2010 program with vba that does the following :
>
> - read the data flow from http://bitcoincharts.com/t/markets.json
> - elaborate it and puts it in excel 2010 for further calculations
>
> What i'm willing to do is the same using Linux (xubuntu) and libreoffice.
>
> I thought learning python would be a smart idea for dealing with json
> format as it has a json library/module.
>
> How do i manage to read the data source from http://bitcoincharts.com/t/
> markets.json  and then place it in different cell of a new or existing
> xls worksheet?
>
> I'm trying some code with SPE but i can't sort the problem and i'm
> receiving many errors.
>
> I just need currency, symbol, bid, ask, volume
> This is the source code i was trying to use :
>
>
> import json
> import csv
> import urllib
>
> url = "http://bitcoincharts.com/t/markets.json";
> response = urllib.urlopen(url);
> data = json.loads(response.read())
>
> f = csv.writer(open('file.csv', 'wb+'))
> # use encode to convert non-ASCII characters
> for item in data:
> values = [ x.encode('utf8') for x in item['0'].values() ]
> f.writerow([item['currency'], item['high']] + values)
>
>
>
> Thanks for any help :-)
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-- 
http://mail.python.org/mailman/listinfo/python-list


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 any light as
documentation appears to be rather sparse?
>
> https://crate.io/
>
> --
> Cheers.
>
> Mark Lawrence
>
> --
> http://mail.python.org/mailman/listinfo/python-list
-- 
http://mail.python.org/mailman/listinfo/python-list


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 both courses - learning Python
syntax and Python web development

Let me know if you have any questions. Thanks!

On Tue, Feb 19, 2013 at 11:13 PM, io  wrote:

> Hi Michael (name of my son) and thanks for the big help.
>
> I'm starting to love python sintax (did they call it python for the slim
> it is compared to other languages?)
>
> Your code didn't work immediatley as it was givin an indentation error
> that i sorted out quickly fixing the last two lines.
>
> It worked like a charm!  :-)
>
> About your suggestions, i tried datanitro but that it only for excel and
> seems to not work under linux on playonlinux (as no linux support is
> given)
>
> I haven't tried the other solution you suggested, i will give it a try as
> soon as possible.
>
> What i'm trying to do is find a new programming language that can
> integrate with softwares like libre office cal or openoffice cal or excel
> as i had my prg working on windows and vba didn't have any issues, but
> now that i moved and try to do all on linux vba isn't 100 percent working
> and many system calls cannot be done.
>
> Do you know any place where i can start learning seriously python on the
> web?
>
>
> Last question : how can i set a condition in order to exclude from
> importing those rows that have both bid and ask values = none?
> I'll try to figure it out in the meantime but i'm a noob so any help will
> be appreciated.
>
> I actually started using SPE and have winpdb installed on my linux box.
>
> Thanks again for all the help.
>
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-- 
http://mail.python.org/mailman/listinfo/python-list


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 the beginning of my program and i am
> thinking thats the reason why it is slow to start up. Thanks in advance.
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-- 
http://mail.python.org/mailman/listinfo/python-list


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 granularity). I am trying to run program every 20 secs and
> loop forever. I have several of these types of processes, some should run
> every 5 mins, 10 secs, 20 secs, 1 min and so forth. I was wondering what is
> the best way to do this?
>
>
> Also, would Greenlet do something I am asking for?
>
>
>
> --
> --- Get your facts first, then you can distort them as you please.--
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>
-- 
http://mail.python.org/mailman/listinfo/python-list


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:

*import requests*

*# retrive the webpage
r = requests.get("http://www.web2py.com/";)*

*# write the content to test_request.html
with open("test_requests.html", "wb") as code:
*

*code.write(r.content)*


If you want to get up to speed quickly on internet programming, I have a
course I am developing. It's on kickstarter - http://kck.st/VQj8hq. The
first section of the book dives into web fundamentals and internet
programming.


On Thu, Feb 21, 2013 at 4:12 AM,  wrote:

> I only just started Python and given that I know nothing about network
> programming or internet programming of any kind really, I thought it would
> be interesting to try write something that could create an archive of a
> website for myself. With this I started trying to use the urllib library,
> however I am having a problem understanding why certain things wont work
> with the urllib.urlretrieve and urllib.urlopen then reading.
>
> Why is it that when using urllib.urlopen then reading or
> urllib.urlretrieve, does it only give me parts of the sites, loosing the
> formatting, images, etc...? How can I get around this?
>
> Lastly, while its a bit off topic, I lack a good understanding of network
> programming as a whole. From making programs communicate or to simply
> extract data from URL's, I don't know where to even begin, which has lead
> me to learning python to better understand it hopefully then carry it over
> to other languages I know. Can anyone give me some advice on where to begin
> learning this information? Even if its in another language.
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-- 
http://mail.python.org/mailman/listinfo/python-list


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 response, you can simply pass in a timestamp, like this:
>
> >>> client = xmlrpclib.ServerProxy('http://pypi.python.org/pypi')
> >>> import time
> >>> client.changelog(int(time.time() - 600))
> [['vs.bootstrap.plonetheme', '1.0.1', 1361451748, 'update description,
> classifiers'], ['numericalunits', '1.11', 1361451759, 'new release'],
> ['numericalunits', '1.11', 1361451760, 'add source file
> numericalunits-1.11.tar.gz'], ['autobahn_rce', '0.6.0', 1361451798,
> 'remove'], ['vs.bootstrap.plonetheme', '1.0.1', 1361451816, 'update
> description, classifiers'], ['vs.bootstrap.plonetheme', '1.0.1',
> 1361451882, 'update description, classifiers'], ['autobahn_rce',
> '0.5.9', 1361451956, 'new release'], ['autobahn_rce', '0.5.9',
> 1361451971, 'add source file autobahn_rce-0.5.9.tar.gz']]
>
> I don't think there's way to get older chunks of the changelog though.
> What would you need those for?
>
> If you need the entire changelog, just download it once (it's not that
> large, barely 40MB). Here it is, up until 1361452402 (now):
>
> http://phihag.de/2013/pypi-changelog-2013-02-20.json.bz2
>
> What I'd like is a real-time push service of changelog entries, but I'm
> not certain that would be scalable.
>
> Cheers,
>
> Philipp
>
>
> On 02/18/2013 02:16 AM, Gregg Caines wrote:
> > Hey all,
> >
> > I'm trying to write a script that tracks changes on pypi, and I've come
> across the xmlrpc interface, specifically the 'changelog' api.  It's
> definitely what I'm looking for, but I get an absolutely massive xml
> response from it at once and I was hoping there might be either some way to
> "page" through it with mulitple requests, or a different-but-similar API.
> >
> > Thanks in advance,
> > Gregg
>
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>
-- 
http://mail.python.org/mailman/listinfo/python-list


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 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 response, you can simply pass in a timestamp, like this:
>>
>> >>> client = xmlrpclib.ServerProxy('http://pypi.python.org/pypi')
>> >>> import time
>> >>> client.changelog(int(time.time() - 600))
>> [['vs.bootstrap.plonetheme', '1.0.1', 1361451748, 'update description,
>> classifiers'], ['numericalunits', '1.11', 1361451759, 'new release'],
>> ['numericalunits', '1.11', 1361451760, 'add source file
>> numericalunits-1.11.tar.gz'], ['autobahn_rce', '0.6.0', 1361451798,
>> 'remove'], ['vs.bootstrap.plonetheme', '1.0.1', 1361451816, 'update
>> description, classifiers'], ['vs.bootstrap.plonetheme', '1.0.1',
>> 1361451882, 'update description, classifiers'], ['autobahn_rce',
>> '0.5.9', 1361451956, 'new release'], ['autobahn_rce', '0.5.9',
>> 1361451971, 'add source file autobahn_rce-0.5.9.tar.gz']]
>>
>> I don't think there's way to get older chunks of the changelog though.
>> What would you need those for?
>>
>> If you need the entire changelog, just download it once (it's not that
>> large, barely 40MB). Here it is, up until 1361452402 (now):
>>
>> http://phihag.de/2013/pypi-changelog-2013-02-20.json.bz2
>>
>> What I'd like is a real-time push service of changelog entries, but I'm
>> not certain that would be scalable.
>>
>> Cheers,
>>
>> Philipp
>>
>>
>> On 02/18/2013 02:16 AM, Gregg Caines wrote:
>> > Hey all,
>> >
>> > I'm trying to write a script that tracks changes on pypi, and I've come
>> across the xmlrpc interface, specifically the 'changelog' api.  It's
>> definitely what I'm looking for, but I get an absolutely massive xml
>> response from it at once and I was hoping there might be either some way to
>> "page" through it with mulitple requests, or a different-but-similar API.
>> >
>> > Thanks in advance,
>> > Gregg
>>
>>
>>
>> --
>> http://mail.python.org/mailman/listinfo/python-list
>>
>>
>
-- 
http://mail.python.org/mailman/listinfo/python-list


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 something
> up
> > on there to email when the changelog is updated.
> >
> > http://www.changedetection.com/
> They just query the whole page - I could do that myself, easily. But the
> problem is that that would mean lots of load on PyPi (if you query every
> minute or so) and outdated packages (if you query less often than that).
> Keeping a connection that PyPi would push to seems to be much cleaner.
>
> - Philipp
>
>
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: pypi changelog api

2013-02-21 Thread Michael Herman
yeah, i just checked github, i thought a buddy of mine had submitted an
issue

not sure how they get their updates.

this is an interesting project - https://github.com/kencochrane/pypi-mirrors

On Thu, Feb 21, 2013 at 6:04 AM, Philipp Hagemeister wrote:

> Just FYI, PyPi already has an RSS feed:
> https://pypi.python.org/pypi?:action=rss
>
> And instead of mailing the author, you should probably open an issue (or
> better yet, a pull request) at https://github.com/crateio/crate.web/issues
>
> For that matter - how does crate.io update their PyPi mirror?
>
> Cheers,
>
> 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 feed would be easy to setup.
> >
> >
> > On Thu, Feb 21, 2013 at 5:33 AM, Philipp Hagemeister  >wrote:
> >
> >> Hi Gregg,
> >>
> >> to get a smaller response, you can simply pass in a timestamp, like
> this:
> >>
> >>>>> client = xmlrpclib.ServerProxy('http://pypi.python.org/pypi')
> >>>>> import time
> >>>>> client.changelog(int(time.time() - 600))
> >> [['vs.bootstrap.plonetheme', '1.0.1', 1361451748, 'update description,
> >> classifiers'], ['numericalunits', '1.11', 1361451759, 'new release'],
> >> ['numericalunits', '1.11', 1361451760, 'add source file
> >> numericalunits-1.11.tar.gz'], ['autobahn_rce', '0.6.0', 1361451798,
> >> 'remove'], ['vs.bootstrap.plonetheme', '1.0.1', 1361451816, 'update
> >> description, classifiers'], ['vs.bootstrap.plonetheme', '1.0.1',
> >> 1361451882, 'update description, classifiers'], ['autobahn_rce',
> >> '0.5.9', 1361451956, 'new release'], ['autobahn_rce', '0.5.9',
> >> 1361451971, 'add source file autobahn_rce-0.5.9.tar.gz']]
> >>
> >> I don't think there's way to get older chunks of the changelog though.
> >> What would you need those for?
> >>
> >> If you need the entire changelog, just download it once (it's not that
> >> large, barely 40MB). Here it is, up until 1361452402 (now):
> >>
> >> http://phihag.de/2013/pypi-changelog-2013-02-20.json.bz2
> >>
> >> What I'd like is a real-time push service of changelog entries, but I'm
> >> not certain that would be scalable.
> >>
> >> Cheers,
> >>
> >> Philipp
> >>
> >>
> >> On 02/18/2013 02:16 AM, Gregg Caines wrote:
> >>> Hey all,
> >>>
> >>> I'm trying to write a script that tracks changes on pypi, and I've come
> >> across the xmlrpc interface, specifically the 'changelog' api.  It's
> >> definitely what I'm looking for, but I get an absolutely massive xml
> >> response from it at once and I was hoping there might be either some
> way to
> >> "page" through it with mulitple requests, or a different-but-similar
> API.
> >>>
> >>> Thanks in advance,
> >>> Gregg
> >>
> >>
> >>
> >> --
> >> http://mail.python.org/mailman/listinfo/python-list
> >>
> >>
> >
>
>
>
-- 
http://mail.python.org/mailman/listinfo/python-list


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
> unavailable.
>
> Click OK to try again, or enter an alternative path to a folder containing
> the installation package python 2.7.1 msi in the box below.
>
> When I click OK I get:
>
> The path C:\...\downloads\python -2.7.1 msi cannot be found. Verify that
> you have access to this location and try again or try to find the
> installation package python 2.7.1.msi in a folder from which you can
> install the product Python 2.7.1.
>
>
> (what is it with the 2.7.1? rather than 2.7.3 also?)
>
> By very grateful if someone could steer me in the right direction.
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-- 
http://mail.python.org/mailman/listinfo/python-list


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 perfect starting
point. I am a huge Flask fan, but it's a little higher level. I have
tutorials here for Flask -
http://www.youtube.com/playlist?list=PLLjmbh6XPGK5pM1QJ8I1ccdGiCTHa1IC8

Also, check out realpythonfortheweb.com for more tutorials.

Good luck! :)

On Sun, Mar 3, 2013 at 6:18 AM, Sarbjit singh  wrote:
>
> Hello All,
>
> I have been using Python as a scripting language for my office tasks. Now
> I have been thinking of using (and learning as well) for web development.
> For my tasks, I need to perform some tasks and report on the web. Now I have
> no experience of web development with Python. So, I want to conform first
> whether Python is best for web development. Python is my personal choice for
> my automation works and I want to extend it for web development.
>
> REQUIREMENT:
> I need to develop a html form which would take user input and perform some
> operations (generate intermediate files) and report result on web.
>
> >> Some guys in my organization are using Perl for this purpose and thus I
> >> could get the setup for free.But I want to learn and use Python as
> >> substitute for Perl. (PHP could also be an option. I have worked on PHP 
> >> once
> >> for handling the form data.)
>
> So my questions are:-
>
> 1. Can I use Python (I want to use personally :)) over PHP/Perl?
>
> 2. If Yes, I want to know the modules that I should learn for achieving my
> requirement. I searched internet and found Python provides CGI, Django etc.
>
> I don't much about Django/CGI, please suggest which module I should learn
> and use.
>
> Thanks
> Sarbjit
> --
> http://mail.python.org/mailman/listinfo/python-list
-- 
http://mail.python.org/mailman/listinfo/python-list


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 understand what is wrong. 
>> this is the website address of that if you want to give a look:
>>
>> http://www.codecademy.com/courses/python-beginner-P5YtY/1/3?curriculum_id=4f89dab3d78889000396
>
>
> I think the problem is in the codecademy interface (or your use of it) rather 
> than the Python code. You will probably get better help in the codecademy 
> forums or help documentation:
>
>   http://www.codecademy.com/forums/python-beginner-P5YtY/1
>   http://help.codecademy.com/
>
> --
> Robert Kern
>
> "I have come to believe that the whole world is an enigma, a harmless enigma
>  that is made terrible by our own mad attempt to interpret it as though it had
>  an underlying truth."
>   -- Umberto Eco
>
> --
> http://mail.python.org/mailman/listinfo/python-list
-- 
http://mail.python.org/mailman/listinfo/python-list