Regardless of how much of a beginner or an expert you are in Python,here is a list of some Python modules/libraries you must have.
1.Requests. The most famous http library written by kenneth reitz. It’s a must have for every python developer.
2.Scrapy. If you are involved in webscraping then this is a must have library for you. After using this library you won’t use any other.
3.wxPython. A gui toolkit for python. I have primarily used it in place of tkinter. You will really love it.
4.Pillow. A friendly fork of PIL (Python Imaging Library). It is more user friendly than PIL and is a must have for anyone who works with images.
5.SQLAlchemy. A database library. Many love it and many hate it. The choice is yours.
6.BeautifulSoup. I know it’s slow but this xml and html parsing library is very useful for beginners.
7.Twisted. The most important tool for any network application developer. It has a very beautiful api and is used by a lot of famous python developers.
8.NumPy. How can we leave this very important library ? It provides some advance math functionalities to python.
9.SciPy. When we talk about NumPy then we have to talk about scipy. It is a library of algorithms and mathematical tools for python and has caused many scientists to switch from ruby to python.
10.matplotlib. A numerical plotting library. It is very useful for any data scientist or any data analyzer.
11.Pygame. Which developer does not like to play games and develop them ? This library will help you achieve your goal of 2d game development.
13.pyQT. A GUI toolkit for python. It is my second choice after wxpython for developing GUI’s for my python scripts.
14.pyGtk. Another python GUI library. It is the same library in which the famous Bittorrent client is created.
15.Scapy. A packet sniffer and analyzer for python made in python.
16.pywin32. A python library which provides some useful methods and classes for interacting with windows.
17.nltk. Natural Language Toolkit – I realize most people won’t be using this one, but it’s generic enough. It is a very useful library if you want to manipulate strings. But it’s capacity is beyond that. Do check it out.
18.nose. A testing framework for python. It is used by millions of python developers. It is a must have if you do test driven development.
19.SymPy. SymPy can do algebraic evaluation, differentiation, expansion, complex numbers, etc. It is contained in a pure Python distribution.
Delorean is a really cool date/time library. Apart from having a sweet name, it’s one of the more natural feeling date/time munging libraries I’ve used in Python. It’s sort of like
There’s a chance you haven’t heard of
prettytable because it’s listed on GoogleCode, which is basically the coding equivalent of Siberia.
Despite being exiled to a cold, snowy and desolate place,
prettytable is great for constructing output that looks good in the terminal or in the browser. So if you’re working on a new plug-in for the IPython Notebook, check out
prettytable for your HTML
from prettytable import PrettyTable table = PrettyTable(["animal", "ferocity"]) table.add_row(["wolverine", 100]) table.add_row(["grizzly", 87]) table.add_row(["Rabbit of Caerbannog", 110]) table.add_row(["cat", -1]) table.add_row(["platypus", 23]) table.add_row(["dolphin", 63]) table.add_row(["albatross", 44]) table.sort_key("ferocity") table.reversesort = True +----------------------+----------+ | animal | ferocity | +----------------------+----------+ | Rabbit of Caerbannog | 110 | | wolverine | 100 | | grizzly | 87 | | dolphin | 63 | | albatross | 44 | | platypus | 23 | | cat | -1 | +----------------------+----------+ 22.wget
Remember every time you wrote that web crawler for some specific purpose? Turns out somebody built it…and it’s called
wget. Recursively download a website? Grab every image from a page? Sidestep cookie traces? Done, done, and done.
23. IPython. I just can’t stress enough how useful this tool is. It is a python prompt on steroids. It has completion, history, shell capabilities, and a lot more. Make sure that you take a look at it.
Don’t agree with this list? Pleas, kindly do add a module you feel i might have missed in the comment box.
Turn On The Creativity.