Fun Python Packages
These definitely have to be checked out.
ge. It basically gives you a programmable browser. It takes care of https, cookies and all the forms. It gives you immense power to Mechanize is an awesome packado a lot of things.
Imagine you have a browser that fills all the forms for you, submits them and process the response. Imagine doing it 1000 times or hey, a million times only limited by the processing power you have. Imagine spamming comments using this, I am not saying that you should, I am only saying you can. But most comments have captcha and limit on comment flooding anyway.
But this package can helps you do some managing if desired. It helps you access resources required, have custom filtering, provide custom services etc. Things you can probably do is make a separate archive of your emails, email contacts, alerts based on constraints etc. The most freakingly awesome thing you can do is write your own web crawler. Crawl through the web, index info, handle loops and maybe finally start your own search engine that kicks Google’s ass.
BeautifulSoup is one weird name for a python package but it is an amazing package in python to navigate, search, modifying parse trees in html and xml files. BeautifulSoup is a very powerful tool to navigate the DOM structure of an website and perform the required function.
Have you ever tried to guess how if you post a link to Facebook, it tries to find a picture in that website to post along with your link. That is done by something like BeautifulSoup that navigates that link’s html or DOM structure to find the images required. BeautifulSoup wraps around python packages lxml and html5lib and give a very powerful parsing tool I am just starting to explore.
Antigravity was a fun package developed based on this xkcd comic. I have already shown this comic in my previous post. It is really amazing that engineers develop packages based on likes and whims. But ain’t all packages a result of something like that.
Antigravity is a package that simply opens up a link to the comic in your default browser and also performs geohashing as given in this comic. Who knows? maybe you will meet your other half while geo hashing with antigravity.
Pycountry is a very useful package that contains the entire world’s ISO country names, ISO numbers, subdivisions, languages, currencies, script definitions and their translations. If you are writing a global application and want to keep track of your user’s global addresses and languages in a standardised format that is easy for later processing like analytics or customize servicing then PyCountry is your best bet. At least in python.It is very easy to use like any python package with upto date ISO codes. Thinking of scaling your webapp across countries, think of Pycountry. #cliche
I’ll try to find more cool python packages and keep this list updated as and when I find them. Currently I am looking into pyWebkit and GTK modules.