11 Useful Python Libraries recommended

Source: Internet
Author: User
Tags for in range uuid python script

Tag: Data find does not have ISA Ros PNG span code sort

1.delorea

Very cool date/Time library

 from Import  "us/eastern"d = DeLorean (Timezone=est)

2.prettytable

Good output can be built in a browser or terminal

 fromPrettytableImportprettytabletable= 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 |+----------------------+----------+

3.snowballstemmer

Very skinny Language Conversion library, supported in 15 languages

 from Import Englishstemmer, Spanishstemmerenglishstemmer (). Stemword ("Gregory") # Gregori Spanishstemmer (). Stemword ("amarillo")#  Amarill 

4.wget

Python's web crawler Library

Import wgetwget.download ("#100% [ ............................................................................] 280385/280385

5.PyMC

PYMC, a library of functions for Bayesian analysis

 from Import Disaster_model  from Import  = MCMC (disaster_model) m.sample (ITER=10000, burn=1000, thin=10) [ in 1.4 sec

6.sh

Import a shell command as a function into a Python script

 from Import findfind ("/tmp")/tmp/foo/tmp/foo/file1.json/tmp /foo/file2.json/tmp/foo/file3.json/tmp/foo/bar/file3.json

7.fuzzywuzzy

Used for string match rate, token match, etc.

 from Import fuzzfuzz.ratio ("hitme with your best shot""hitsme with your pet shark< /c7>")#  

8.progressbar

As its name, a scroll bar function library

 from Import ProgressBar Import  = ProgressBar (maxval=10) for in range (1, one):    pbar.update (i)    Time.sleep (1) pbar.finish ()#  60% |############################################### #########                                      |

9.colorama

A color library that lets you add rich colors to your text

10.uuid

A library that can produce a unique UUID

Import UUID Print Uuid.uuid4 () # E7bafa3d-274e-4b0a-b9cc-d898957b4b61

11.bashplotlib

A Python Drawing control that allows you to draw histograms, scatter plots, and more.

--file data/texas.txt--pch X

The above is the recommended 11 practical Python library, perhaps some you have not seen, but are some very good Python library, I hope you can enjoy.

Author 丨 raquant

Original address: 1190000008786933

Python Communication Group: 238757010

11 Useful Python Libraries recommended

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.