Ask HN: Good Python projects to read for modern Python?

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Stream - Scalable APIs for Chat, Feeds, Moderation, & Video.
Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.
getstream.io
featured
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
  1. rich

    Rich is a Python library for rich text and beautiful formatting in the terminal.

    at the end of module files? Never seen that, why is it used? I understand that it's a guard that only runs when the module is executed directly, but what is the code put there? For developers to quickly visually test stuff by running the module?

    Here, for example https://github.com/willmcgugan/rich/blob/master/rich/color.p...

  2. Stream

    Stream - Scalable APIs for Chat, Feeds, Moderation, & Video. Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.

    Stream logo
  3. pydantic

    Data validation using Python type hints

  4. Sentry

    Developer-first error tracking and performance monitoring

  5. geospatial-data-lake

    Discontinued Central storage, management and access for important geospatial datasets

    I'd recommend a project from work, Geostore[1]. Highlights:

    - 100% test coverage (with some typical exceptions like `if __name__ == "__main__":` blocks)

    - Randomises test sequence and inputs reproducibly

    - Passes Pylint with max McCabe complexity of 6

    - Passes `mypy --strict`

    - Formatted using Black and isort

    [1] https://github.com/linz/geostore

  6. gpiozero

    A simple interface to GPIO devices with Raspberry Pi

  7. pytudes

    Python programs, usually short, of considerable difficulty, to perfect particular skills.

    Norvig's approach of converting thoughts into a program is what you need to focus on. It is trivial to convert a list comprehension into a loop.

    In "When is Cheryl's birthday?" [1], the way he converts the problem into functional units is insane. A couple of list comprehensions shouldn't scare you. Look above and beyond the details.

    [1] https://github.com/norvig/pytudes/blob/main/ipynb/Cheryl.ipy...

  8. Installation

    The premier source of truth powering network automation. Open source under Apache 2. Try NetBox Cloud free: https://netboxlabs.com/products/free-netbox-cloud/

    NetBox[0] is a large project that does this.

    https://github.com/netbox-community/netbox

  9. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  10. fastapi-azure-auth

    Easy and secure implementation of Azure Entra ID (previously AD) for your FastAPI APIs 🔒 B2C, single- and multi-tenant support.

    I think, in general, most FastAPI and Pydantic related libraries are heavily typed, use poetry, GitHub pipelines, black, isort, flake8 etc. so if you want to look at the ecosystem around a package I’ll recommend a few here, that has a smaller scope than the huge libraries Pydantic/FastAPI are. All packages listed below has all these things.

    FastAPI-Azure-Auth [0] is a library to do authentication and authorization through Azure AD using tokens.

    ASGI—Correlation-ID[1] is a package that utilizes contextvars to store information through the asyncio stack, in order to attach correlation/request ID to every log message from a request. Available for Django in [2].

    Pydantic-factories [3] is an awesome library to mock data for your pydantic models.

    [0] https://github.com/Intility/fastapi-azure-auth

  11. asgi-correlation-id

    Request ID propagation for ASGI apps

  12. django-guid

    Inject an ID into every log message from a Django request. ASGI compatible, integrates with Sentry, and works with Celery

  13. pydantic-factories

    Discontinued Simple and powerful mock data generation using pydantic or dataclasses

  14. PDM

    A modern Python package and dependency manager supporting the latest PEP standards

    Here's a few that haven't been mentioned yet:

    - PDM: A modern Python package manager with PEP 582 support[1]

    - Spleeter: Deezer source separation library including pretrained models[2]

    ---

    [0]: https://github.com/pdm-project/pdm

    [1]: https://github.com/deezer/spleeter

  15. spleeter

    Deezer source separation library including pretrained models.

    Here's a few that haven't been mentioned yet:

    - PDM: A modern Python package manager with PEP 582 support[1]

    - Spleeter: Deezer source separation library including pretrained models[2]

    ---

    [0]: https://github.com/pdm-project/pdm

    [1]: https://github.com/deezer/spleeter

  16. Bottle

    bottle.py is a fast and simple micro-framework for python web-applications.

  17. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Open Source Django Projects for Study

    9 projects | /r/django | 17 Jan 2023
  • Is there a public repo that shows production-level code of django models?

    9 projects | /r/django | 8 May 2021
  • Most Effective Approaches for Debugging Applications

    15 projects | dev.to | 27 Apr 2025
  • Picologging: High Performance Python Logging

    1 project | news.ycombinator.com | 26 Apr 2025
  • Plain – a web framework for building products with Python

    10 projects | news.ycombinator.com | 28 Mar 2025