10 External Python packages you are going to love

This package is the competitor of Mypy (also on this list).

To be honest, I haven’t yet had the chance to use it, but I definitely plan to.

I currently use mypy as a type checker, but I’ll give this one a try!requests-async — support for async/await syntax for requestsThis is a new package I discovered the other day on GitHub, and it seems pretty promising.

We all know the requests package, that lets us easily handle HTTP requests in our code.

Well, this package implements async and await words for these requests:import requests_async as requests​response = await requests.




text)Pretty cool right?HTTPie — Modern command line cURLThose of you who have used cURL before, must know it’s not that fun.

Having to remember the parameters names, making sure your data is encapsulated… Well, HTTPie aims to make this much easier.

Here’s one of their examples, of submitting form data:http -f POST example.

org hello=Worldpipenv — Better packaging for PythonWhen I start a new project, I always create a new virtualenv and install some basic packages with pip.

I then need to save these packages names in a file, be it setup.

py or requirements.


Those of you who have worked with npm, know it's much simpler there.

All you need to do is write npm —save and the package name is saved in your package.


That's why I first created pypkgfreeze, a simple package to "freeze" the versions of your currently used pip packages into setup.


Anyway, pipenv is an interesting solution that aims to merge the two worlds – They describe it best in their repo page:It automatically creates and manages a virtualenv for your projects, as well as adds/removes packages from your Pipfile as you install/uninstall packages.

It also generates the ever-important Pipfile.

lock, which is used to produce deterministic builds.

You can try it out here.

mypy — Static type checkerAs I said before, this is the package I currently use as my standard static type checker.

It helps me keep my code readable and elegant (I think).

blackI have tried many Python formatters, and black is clearly my favourite.

The syntax looks neat, and the command line runs quick and can either check the files or actually edit them – very useful for CI/CD.

You can even try it here!flaskNot sure if I have anything to write here that hasn’t been written before.

You are probably familiar with this astonishing micro framework, and if you’re not.

you definitely should check it out.

Before you go…Thanks for reading! You can follow my GitHub account for more cool repos.

I tend to star every cool thing that I see :)If you enjoyed this article, please hold down the clap button ????.to help others find it.

The longer you hold it, the more claps you give!And do not hesitate to share your thoughts in the comments below.


. More details

Leave a Reply