Recommended python packages

By Niraj Zade  |  2024 Oct 14  |  0m read


  • Databases
    • aioodbc - access ODBC with asyncio. A solution for executing queries in parallel when using async functions that will be querying in parallel.
  • HTTP requests
    • httpx (built on top of requests. Brings in async support, http2)
  • HTML parsing
    • selectolax - generally 20x faster than beautifulsoup4.
    • beautifulsoup4 - simple to use, but has limited parallelism because its HTTP calls are blocking.
  • Infrastructure
    • python-dotenv - read key-value pairs from .env file and set them as env variables
    • nuikta - python compiler to package the application into a single binary. Useful for avoiding pip while building images, or shipping a single executable to users (eg - desktop apps, binaries to deploy via ansible etc)
  • Testing
    • pytest - Easier to work with. Better testing than unittest (fixtures etc)

Table Of Contents

None

Other Articles