Daily Dose of Data Science

Share this post

37 Hidden Python Libraries That Are Absolute Gems

www.blog.dailydoseofds.com

37 Hidden Python Libraries That Are Absolute Gems

Avi Chawla
Feb 1, 2023
17
2
Share

I reviewed 1,000+ Python libraries and discovered these hidden gems I never knew even existed.

Here are some of them that will make you fall in love with Python' and its versatility (even more).

Subscribe for free to receive new posts daily.

  1. Mito: Analyze data in Jupyter by simply editing a spreadsheet. Offers reproducibility by generating code.

    • Link: https://github.com/mito-ds/monorepo

  2. Sourcery: Automated tool for code refactoring. Makes your code clearer, concise, and more Pythonic.

    • Link: https://docs.sourcery.ai/Welcome/

  3. Bashplotlib: Draw plots in the terminal. Great tool if you only have shell access.

    • Link: https://pypi.org/project/bashplotlib/

  4. Xonsh: Use IPython and a UNIX shell together without switching back and forth.

    • Link: https://pypi.org/project/xonsh/

  5. Rebound: Fetch Stack Overflow results in case of errors during code runtime.

    • Link: https://github.com/shobrook/rebound

  6. Livepython: Watch your Python code run like a movie. It highlights the line being executed.

    • Link: https://github.com/agermanidis/livepython

  7. Reloading: Modify Python code during run-time.

    • Link: https://pypi.org/project/reloading/

  8. PyQRCode: Convert any text/URL/Image to a QR code in two lines of code.

    • Link: https://pypi.org/project/PyQRCode/

  9. PyWhatKit: Automate sending messages on WhatsApp.

    • Link: https://pypi.org/project/pywhatkit/

  10. Pytube: Download YouTube videos in three lines of code.

    • Link: https://pypi.org/project/pytube/

  11. SymPy: Perform symbolic computations in python to solve/print mathematical equations.

    • Link: https://pypi.org/project/sympy/

  12. Rembg: Remove background from images.

    • Link: https://pypi.org/project/rembg/

  13. Grip: Preview the README file locally as it would appear on GitHub. Prevents any errors in formatting.

    • Link: https://pypi.org/project/grip/

  14. getpass: Hide passwords while typing them in Python scripts.

    • Link: https://docs.python.org/3/library/getpass.html

  15. Git-story: Visualize the commit history of a Git repository with beautiful animations.

    • Link: https://github.com/buren/git-story

  16. returns: Make your functions return something meaningful, typed, and safe!

    • Link: https://pypi.org/project/returns/

  17. faster-than-requests: Speed up the requests module in Python.

    • Link: https://pypi.org/project/faster-than-requests/

  18. Icecream: Never use print() to debug again.

    • Link: https://pypi.org/project/icecream/

  19. Colorama: Print colored text in Python or output colored text in the terminal.

    • Link: https://pypi.org/project/colorama/

  20. Pyfiglet: Create ASCII art in the terminal.

    • Link: https://pypi.org/project/pyfiglet/

  21. Camelot: Extract tables from PDFs. Especially useful for complex tables.

    • Link: https://pypi.org/project/camelot-py/

  22. Ftfy: Get rid of junk characters and other common problems with Unicode.

    • Link: https://pypi.org/project/ftfy/

  23. Black: Automated code formatting.

    • Link: https://pypi.org/project/black/

  24. Numerizer: Convert natural language numbers into integers and floats.

    • Link: https://pypi.org/project/numerizer/

  25. Humanize: Provides numerous humanization utilities like turning a number into words, etc.

    • Link: https://pypi.org/project/humanize/

  26. textstat: Get statistics for your text data such as word count, reading time, etc.

    • Link: https://pypi.org/project/textstat/

  27. CSV-kit: Explore, query and describe CSV files right from the terminal. No need to open Jupyter, use Pandas, etc.

    • Link: https://pypi.org/project/csvkit/

  28. PySnooper: Profile your code for easier debugging. It tracks new variable and their updates.

    • Link: https://pypi.org/project/PySnooper/

  29. isort: Automatically sort imports, and separate them into sections and by type for better readability.

    • Link: https://pypi.org/project/isort/

  30. DotMap: Supercharge python dictionaries with dot notation.

    • Link: https://pypi.org/project/dotmap/

  31. Panel: Create interactive data dashboards and applications.

    • Link: https://pypi.org/project/panel/

  32. numexpr: Speedup NumPy expression up to 20x.

    • Link: https://pypi.org/project/numexpr/

  33. more-itertools: Exteds the itertools module with more methods for operating on iterables.

    • Link: https://pypi.org/project/more-itertools/

  34. prettytable: Print tables in an attractive ASCII table format.

    • Link: https://pypi.org/project/prettytable/

  35. Pendulum: Ease date-time manipulations in Python. Highly intuitive to use.

    • Link: https://pypi.org/project/pendulum/

  36. Styleformer: Convert text into different language styles like formal/casual, active/passive, etc.

    • Link: https://github.com/PrithivirajDamodaran/Styleformer

  37. Manim: Create animated videos for explaining math concepts.

    • Link: https://pypi.org/project/manim/

That’s a wrap!!

What cool Python libraries would you add to this list?

👇 Drop your suggestions in the replies below 👇

Share this post on LinkedIn: Post Link.

Thanks for reading Daily Dose of Data Science! Subscribe for free to receive new posts daily.


Find the code for my tips here: GitHub.

I like to explore, experiment and write about data science concepts and tools. You can read my articles on Medium. Also, you can connect with me on LinkedIn.

17
2
Share
Previous
Next
2 Comments
Meghan
Feb 2

Great list! I can't wait to try a handful of these. The link for Camelot does not appear to be correct. I think it should be: https://pypi.org/project/camelot-py/ (very useful!)

Expand full comment
Reply
1 reply by Avi Chawla
1 more comment…
Top
New
Community

No posts

Ready for more?

© 2023 Avi Chawla
Privacy ∙ Terms ∙ Collection notice
Start WritingGet the app
Substack is the home for great writing