What are the standard libraries and third-party libraries common to Python?

Source: Internet
Author: User
Tags soap client selenium python

Reply content:

Just a few of the ones I used to feel strongly recommended

===================== Standard Library
* / http docs.python.org/library /argparse.html
Write command line script must, unfortunately, is 2.7 to add, depends on the specific environment ...

* / http docs.python.org/library /htmlparser.html
Parse the HTML DOM tree and occasionally engage in command line automatic form submission. It doesn't feel good, but it's the official vault.

===================== third-party libraries

* / http pypi.python.org/pypi/sh
is a system management artifact, who knows with whom

* / http Pypi.python.org/pypi/su DS
A lightweight SOAP client, which is almost necessary if you have a SOAP interface inside your factory

* / http Pypi.python.org/pypi/re Quests
This http lib is named Python http for Human. Who used Urllib, URLLIB2, Httplib, you know.

* / http Pypi.python.org/pypi/pe Lican
* / http Pypi.python.org/pypi/ma Rkdoc
The former is a static blog generator (write markdown text, and then automatically converted to HTML static file), the latter is the document generator (used to do this wiki)

* / http Pypi.python.org/pypi/pe P8
Check if the Python script conforms to the PEP8 style guide

* / http pypi.python.org/pypi/py gments
Syntax highlighting Lib, many Ruby projects use this Python lib to do syntax highlighting

I want to add a few more.
Standard LIBS:
  • Itertools http/docs.python.org/2/library/itertools.html
  • Functools http/docs.python.org/2/library/functools.html It is necessary to master the above two libraries to learn python,
  • Re Regular
  • Subprocess http/docs.python.org/2/library/subprocess.html The artifact that invokes the shell command
  • PDB debugging
  • Traceback Commissioning
  • Pprint Beautiful Output
  • Logging Log
  • Threading and multiprocessing Multithreading
  • Urllib/urllib2/httplib HTTP Library, httplib the bottom, recommend a third-party library requests
  • Os/sys Systems, environment-related
  • Queue queues
  • Pickle/cpickle Serialization Tool
  • Hashlib MD5, SHA and other hash algorithms
  • Cvs
  • Json/simplejson Python JSON library, as discussed on so and Benchmark,simplejson performance is higher than JSON
  • Timeit Calculate the time the code runs and so on
  • CProfile Python Performance measurement module
  • Glob similar to listfile that can be used to find files
  • Atexit has a registration function that can be used to execute some code just before the script exits run
  • Dis python disassembly, when a statement does not understand the principle, you can use the Dis.dis function to see the code corresponding to the Python interpreter directive and so on.

3th Libs:
  • Paramiko https://github.com/paramiko/paramiko ssh python library
  • Selenium https://pypi.python.org/pypi/selenium Browser Automation test tool Selenium Python interface
  • lxml http//lxml.de/ python parsing html,xml artifact
  • Mechanize https://pypi.python.org/pypi/mechanize/ Stateful Programmatic web browsing
  • Pycurl https://pypi.python.org/pypi/pyCurl Curl Library Module for Python
  • Fabric /HTTP/docs.fabfile.org/en/1.8/ fabric is a Python (2.5 or higher) Library and command-line tool for streamlining the use of SSH for application deployment or systems administration tasks.
  • Xmltodict https://github.com/martinblech/xmltodict xml Turn dict, really useful
  • URLLIB3 and requests: Of course requests is enough requests:http for humans
  • Flask http//Flask.pocoo.org/python Web Micro-frame
  • Ipdb debug artifact, also recommended ipython! Combined with Ipython
  • Redis Redis Python interface
  • Pymongo Mongodbpython Interface
  • PIL http://www. pythonware.com/products /pil/ python image processing
  • Mako http://www. makotemplates.org/ python template engine
  • NumPy, SCIPY scientific calculation
  • Matplotlib Drawing
  • Scrapy crawler
  • Django/tornado/web.py/web2py/uliweb/flask/twisted/bottle/cherrypy. Python Web framework/server
  • SH 1.08-sh v1.08 documentation Excellent choice for running shell modules


For the time being remember so many, but are my own common library:). Welcome to Supplement

UPDATE:
A curated list of awesome Python frameworks, libraries and software.

Vinta/awesome-python GitHub

Almost all of the great Python libraries, and frameworks are in this list.

Other Awesome list:
Bayandin/awesome-awesomeness GitHub Native:
Subprocess of system calls
Multi-threaded multiprocessing

Third party:
System management recommended fabric and salt
Web framework recommends flask and tornado
ORM Recommended Sqlalchemypython Resources Daquan Go to this place to see, Python common modules are basically included, and there are a lot of school information functional type are picking to say something useful?

Tornado: The architecture of the other Python frameworks is very different, the request is handled in a comfortable way, especially for rest, who knows

Mako: I think it's the best template, simple performance.

SQLAlchemy: Fast Unified orm.

Quixote: Actually, it's good to use.

Pyquery: Using jquery's syntax to write reptiles slightly cool

Gevent ..... Two x BeautifulSoup and IMage recommended
Python libraries You can ' t live without

by Yasoob
WordPress.com July 30, 2013

Hi there fellas. Today I am going to list Python libraries which has been a part of my toolbelt and should is a part of the yours as well. So here they is:

1.requests. The most famous HTTP library written by Kenneth Reitz. It's a must has a for every Python developer.

2.scrapy. If you were involved in webscraping then this is a must has the library for you. The after using the library you won ' t use any other.

3.WxPython. A GUI toolkit for Python. I have primarily used it in place of Tkinter. You'll really love it.

4.Pillow. A Friendly Fork of PIL (Python Imaging Library). It is more user friendly than PIL and is a must has 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 the this XML and HTML parsing library are very useful for beginners.

7.Twisted. The most important tool for any network application developer. It has a very beautiful API and are 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 had to talk about scipy. It is a library of algorithms and mathematical tools for Python and have caused many scientists to switch from Ruby to Pyth On.

Ten.matplotlib. A numerical plotting library. It is very useful for any data scientist or any Data analyzer.

One by one. Pygame. Which developer does not like to the play games and develop them? This library would help you achieve your goal of 2d game development.

pyglet. A 3d animation and game creation engine. This is the engine in which the famous Python port of Minecraft was made

PyQT. A GUI Toolkit for Python. It is my second choice after wxpython for developing GUI's for my Python scripts.

pyGtk. Another Python GUI library. It is the same library in which the famous Bittorrent client is created.

scapy. A Packet sniffer and analyzer for Python made in Python.

pywin32. A Python library which provides some useful methods and classes for interacting with Windows.

nltk. Natural Language Toolkit–i realize most people won ' t being using this one, but it's generic enough. It is a very useful the library if you want to manipulate strings. But it's capacity is beyond that. Do check it out.

nose. A testing Framework for Python. It is used by millions of Python developers. It is a must has the if you do test driven development.

sympy. SymPy can do algebraic evaluation, differentiation, expansion, complex numbers, etc. It's contained in a pure Python distribution.

IPython. I just can ' t stress enough how useful this tool is. It's a python prompt on steroids. It has completion, the history, the shell capabilities, and a lot more. Make sure, that's a look at it.

https:// freepythontips.wordpress.com /2013/07/30/20-python-libraries-you-cant-live-without/ Requests easy to make people want to cry a memo: https:// github.com/fengsp/easy- python
or directly: / http easy-python.readthedocs.org / I also say two:
Operating system-related OS libraries
The SYS library associated with the Python program itself
Configparser Library for profile resolution
Redis python client Pyredis
Besides, itertool,subprocess and so on.

Web framework: web.py flask Django
  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.