I'm Paul Bissex, and e-scribe.com is my consulting business. I build web applications using open source software, especially Django. In the '90s I did graphic design for newspapers and magazines. Then I wrote technology commentary and reviews for Wired, Salon.com, Chicago Tribune, and lots of little places you've never heard of. Feel free to email me.
I'm co-author of "Python Web Development with Django", an excellent guide to my favorite web framework. Published by Addison-Wesley, it is available from Amazon and your favorite technical bookstore as well.
Built using Django, served by Apache and mod_wsgi. The database is SQLite. The operating system is FreeBSD, on a VPS hosted at Johncompanies.com. Comment-spam protection by Akismet. Vintage topo imagery from the Maptech archive. The markup engine is Markdown.
Akismet, bitbucket, del.icio.us, Django, Emacs, FreeBSD, Git, jQuery, LaunchBar, Markdown, Mercurial, OS X, Postfix, Python, Review Board, S3, SQLite, TextMate, Ubuntu Linux
At least 96060 pieces of comment spam killed since January 2008, mostly via Akismet.
Is there a more sophisticated equivalent of urlparse.urlparse()
somewhere that knows enough to break out username and password components? Ideally it would return a dict, with keys like 'scheme' and 'host' and 'user', instead of a tuple. Something like PHP's parse_url().
Now that I've seen that thread, the solution seems pretty well hashed out. That little [`netlocparse()`][1] snippet does a lot of what I was looking for. Seems like Guido's just waiting for somebody to submit a patch. Since the function is called "urlparse" and not "uriparse" I wouldn't let utter completeness stand in the way of a decent fix.
[1]: http://minkirri.apana.org.au/~abo/projects/osVFS/netlocparse.py
Thanks for reading! Please note: Your comment will not appear until approved, which may take a few hours or more. Spammers will be torpedoed.
Booktools
2 comments
A different kind of URL shortener
4 comments
The syncbox
2 comments
Branching and merging in real life
8 comments
Summer Spam
1 comment
malpaso
Understanding tuples vs. lists in Python
13 days ago
vj100
Understanding tuples vs. lists in Python
13 days ago
scott
Bicycle Repair Man bundle for TextMate
19 days ago
Jasmine
Trying to send eBay a message?
56 days ago
Smok Cigs
Let's play a game: BASIC vs. Ruby vs. Python vs. PHP
93 days ago
Copyright 2012
by Paul Bissex
and E-Scribe New Media
I wrote http://mail.python.org/pipermail/python-dev/2005-November/058301.html about urlparse being broken not too long ago, though I have yet to present my replacement. What kind of API do you think a better urlparse() should have? Keep in mind a good solution should deal with not only http://user:password@host:port/path?query#fragment, but also tel:1-234-567-8910 and news:newsgroup and news:msgid@newsgroup. I suspect the problem with a dict instead of a tuple is standardization of keys. Or maybe that's fine. I'd be interested in your opinion.