😂11 Fun Python libraries to make your day better☀️

Marine - Nov 20 '23 - - Dev Community

TL;DR

In this article, I will present 11 libraries that I had fun playing with and thought I would share them with you.

Introduction GIF


1. Taipy

Taipy is an open-source library designed for easy development for both front-end (GUI) and your ML/Data pipeline(s).
No other knowledge is required (no CSS, no JS, no nothing!). It's a simple Python app builder.
Create the application of your dreams thanks to:

  • complete customization & interactivity
  • multipage & multi-user
  • pipeline graphical editor
  • ... and so much more.

You can even use all the following libraries with Taipy and make it even more fun.
Your imagination is the limit!

Taipy description


QueenB stars

Star ⭐ the Taipy repository

We're almost at 1000 stars and couldn't do this without you🙏


2.Asciimatics

Asciimatics is a library that allows you to create full-screen text UIs. This library was crafted from nostalgia for the 80s.

Here are some of their main functions:

  • Coloured/styled text
  • Cursor positioning
  • Keyboard input (without blocking or echoing)

Asciimatics description


3.Arcade

How can fun even make sense without any games? As the library name suggests, it allows to create 2D video games. Yes, that does seem hard, but Arcade makes it easy. So pip install arcade and get gaming or draw inspiration with some existing games!

Arcade description


4.Rich

The Rich library is here to put some color in your life! Rich writes rich text (color + style) in your terminals, so they can finally reflect who you are.

Rich includes:

  • Different styles
  • Markdown
  • Progress bars
  • Asian language support
  • ... and more!

Rich description


5.PyEphem

PyEphem is a great tool to get lost in the sky. This library allows for astronomy calculations; here are some interesting use cases:

  • Find where a planet is in the sky
  • Determine the dates of equinoxes and solstices
  • Compute the dates of the Moon phases
  • ... and many more!

This library will definitely get in touch with your sense of wonder.

PyEphem description


6.tqdm

Just the name of this library is already interesting. Tqdm means two things:

  • is the abbreviation for “I love you so much” in Spanish (te quiero demasiado)
  • derives from an Arabic word, ‘taqaddum (تقدّم)’ meaning progress, and that’s actually a good introduction to what this library does.

Tqdm is a wrapper to any loop that will track the advancement with a progress bar. You can customize it, making waiting for your task completion less boring!

tqdm description


7.Pygame

Pygame makes writing video games easy. This library will give you access to several multimedia elements like:

  • Graphics
  • Sound
  • Input device

Now, get your creative juices going and create your own 2D interactive game or explore some of the available games.

Pygame description


8.turtle

This library is different because it is part of the Python language and so pip install is not needed. Turtle was created for educational purposes, helping new programmers to code in Python through design graphics on a canvas. A fun way to get into Python or have a little creative fun.

turtle description


9.MoviePy

MoviePy, is a convenient tool to edit videos in Python. The functionalities include:

  • Cutting
  • Concatenating
  • Filtering
  • And transforming.

You can read a lot of different formats, including GIFs.

MoviePy description


10.Emoji

Use emojis in your Python programs with this library. It simply converts unicode emojis to emoji names with the emojize() function. Other functions include joining emojis, counting them, etc…

Emoji description


11.Pyjokes

With pyjokes you are one pip install away from on-demand laughs. This library will give you one-liner jokes; you can even choose the language and the category.

Have fun!

Pyjokes description


Hope you enjoyed this article!

I’m a rookie writer and would welcome any suggestions for improvement!

Rookie gif

Feel free to reach out if you have any questions.

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .