Here you find easy copy-paste examples of my favourite Python libraries.
| package | description |
|---|---|
| itertools | working with lists and generators |
| math | mathematical functions |
| os | working with files and directories |
| random | generating random numbers |
| re | pattern matching in text |
| sys | settings of the Python interpreter |
| time | working with dates and times |
| package | description |
|---|---|
| json | read/write JSON files |
| pydocx | read Word documents |
| pypdf2 | merge PDF documents |
| xml | parse XML files |
| zipfile | read and write .zip files |
| librosa (external) | process and analyze sound and music |
| package | description |
|---|---|
| numpy | fast numerical calculations |
| pandas | analyze tabular data |
| scipy | scientific calculations |
| scikit-learn | Machine Learning |
| RPy2 | Use R functions from within Python |
| PuLP | linear equation solver |
| fuzzywuzzy | fuzzy text search |
| vader | sentiment analysis |
| statsmodels (external) | Hypothesis tests and statistical models |
| package | description |
|---|---|
| folium | drawing maps |
| matplotlib | plotting diagrams |
| NetworkX | analyze and plot graphs |
| wordcloud | plot word clouds |
| seaborn (external) | a more powerful interface for matplotlib |
| altair (external) | plotting library with JSON backend |
| geopandas (external) | plot DataFrames on maps |
| panel (external) | create interactive plots |
| package | description |
|---|---|
| pillow - image manipulation | |
| ipythonblocks | drawing blocks in notebooks |
| pytesseract | extract text from images (OCR) |
| scikit-image | Advanced image processing |
| CV2 (external) | processing camera images and movies |
| package | description |
|---|---|
| pymongo | adapter for the MongoDB NoSQL database |
| sqlite3 | a simple SQL database |
| package | description |
|---|---|
| BeautifulSoup4 | parse HTML pages |
| send emails | |
| flask | a simple web server |
| requests | retrieve web pages |
| OAUTH - authentication | authentication |
| scrapy (external) | collect data from entire websites |
| package | description |
|---|---|
| curses | interactive terminal interface |
| tkinter | graphical user interfaces |
| tqdm | draw progress bars |
- Awesome Python is a curated list of Python libraries and tools.
github.com/krother/Python3_Package_Examples
Thanks to Emely Henninger for finding a nasty bug in networkx!
© 2026 Dr. Kristian Rother ([email protected])
The code is distributed under the conditions of the MIT License. See :::file LICENSE.TXT for details.