Best Flask open-source libraries and packages

Python toy project

Just a simple toy project to experiment with Python
Updated 2 years ago

Python toy project: a weather API

Build Status

Python logo Django logo Flask logo aiohttp logo

Not that I'm especially interested in weather :-), but the goal was to play with the following concepts in Python:

  • Dependencies management via Pipenv
  • Unit tests with pytest
  • Parallel operations via asyncio and aiohttp
  • "Domain" and "Web API" logic handled separately, in a DDD way
  • Dependency injection, via scute, a Python clone of PHP's Pimple
  • Minimalist JSON API with Flask
    (could be interesting to start with something even more minimalistic like Roll, as I don't need Jinja for a JSON API)
  • "Closer to real world" JSON API with Django
    The more I work with Django, the more I realise that Symfony basically copied lots of Django features: templating system, Forms, etc :-)

Even if it's a dummy and very small project I have been able to apply most of the best practices I use for my usual domain of expertise (Symfony): DDD-like development, dependency injection, Makefile, Docker Compose...

I really enjoy Python! Clear syntax, rich stdlib, functions named arguments, type hinting, coroutines... Great stuff! :-)

Tags pytest