Best of Planet Python โ€” April 2024

  1. 1
    Article
    Avatar of planetpythonPlanet Pythonยท2y

    On FastAPI

    FastAPI is a Python web framework that builds on the strengths of Django and Flask while feeling more modern and adhering to certain opinionated principles. It has excellent documentation, includes Swagger UI and Redoc out-of-the-box, and heavily depends on Pydantic for data schemas and validation.

  2. 2
    Article
    Avatar of planetpythonPlanet Pythonยท2y

    Python Big O: the time complexities of different data structures in Python

    This post discusses the time complexities of different Python data structures and algorithms. It provides a cheat sheet for time complexity and explains how it affects code performance. The post covers the time complexities of list operations, deque operations, dictionary operations, set operations, Counter operations, heapq operations, and bisect operations. It also provides tips on optimizing code by considering time complexity and thinking in orders of magnitude.

  3. 3
    Article
    Avatar of planetpythonPlanet Pythonยท2y

    [April 2024] Python Monthly Newsletter ๐Ÿ’ป๐Ÿ

    The April 2024 Python Monthly Newsletter provides curated articles, news, resources, podcasts, and videos for Python developers. It discusses the importance of staying up-to-date in the constantly evolving Python ecosystem and highlights a new Python web framework, security best practices, a fast Python linter and formatter, and the Meta Horizons OS for AR/VR.

  4. 4
    Article
    Avatar of planetpythonPlanet Pythonยท2y

    Multiline comments in Python

    Learn how to comment out code blocks in Python using single-line comments and triple quotes. Understand the difference between multi-line comments and docstrings.

  5. 5
    Article
    Avatar of planetpythonPlanet Pythonยท2y

    4 Ways to Use ChatGPT API in Python

    Learn how to use the ChatGPT API in Python with examples. Access the API by signing up on the OpenAI Platform, generating a secret API key, and calling the API using the provided code. Customize the ChatGPT model, provide system instructions, and make it remember prior conversations. Build a GUI application using tkinter to interact with ChatGPT.