Best of Flask2024

  1. 1
    Article
    Avatar of communityCommunity Picks·2y

    You should stop writing Dockerfiles today — Do this instead

    Learn how to simplify the process of configuring Docker for your project using docker init. Docker init helps generate Dockerfiles, Compose files, and .dockerignore files based on your project's requirements. It supports various programming languages and follows industry best practices.

  2. 2
    Video
    Avatar of TechWithTimTech With Tim·2y

    FastAPI, Flask or Django - Which Should You Use?

    Comparison of Flask, Django, and FastAPI for Python web development. Flask is lightweight and customizable, ideal for small to medium-sized apps. Django is high-level with many built-in features, suitable for complex web applications. FastAPI is a modern, high-performance framework for building self-documenting and fast APIs. Choose the framework based on your use case, ease of learning, performance needs, and project requirements.

  3. 3
    Article
    Avatar of game_developersGame Developers·2y

    Building a Web-Based MMORPG - Looking for others

    A developer is inviting others to join a collaborative project to create a web-based MMORPG using technologies like Flask, Python, JavaScript, Three.js, HTML, and CSS. No game development experience is required, just enthusiasm and curiosity. The environment is relaxed and open to anyone interested in coding, design, or exploration.

  4. 4
    Article
    Avatar of devtoDEV·2y

    Empowering Fitness with Twilio: Your Personal GymBuddy for Seamless Communication and Progress Tracking!

    GymBuddy is a web application designed to assist fitness enthusiasts by tracking their workout performance and nutritional intake. Key features include performance metrics, nutrition tracking, daily motivational quotes, and interactive progress charts. The application utilizes React.js and Chakra UI on the frontend, and Flask on the backend. It integrates Twilio API for communication and Cohere API for AI-driven content. Users can log their workout details via WhatsApp, which updates a dynamic dashboard.

  5. 5
    Article
    Avatar of netguruNetguru·2y

    FastAPI vs Flask: Which Should You Choose?

    Choosing between Flask and FastAPI for Python web development hinges on understanding their respective strengths: Flask's simplicity and long-standing stability versus FastAPI’s performance and modern features. Flask is ideal for small to medium-sized projects and prototypes, offering extensive flexibility and a larger community. FastAPI, on the other hand, excels in speed, concurrency, and automatic documentation, making it suitable for high-performance and real-time applications.

  6. 6
    Article
    Avatar of thedailywtfThe Daily WTF·2y

    An Exceptional Junior

    A junior developer, tasked with implementing error handling in a Python Flask application, created a convoluted function to determine if an object is an exception. The function uses type comparisons and exception handling inappropriately, demonstrating a common mistake of misusing exception handling and misunderstanding proper code reuse strategies. The junior's intent was to reuse a single function as both a request and error handler, leading to unnecessary complexity.

  7. 7
    Article
    Avatar of earthlyEarthly·2y

    Top Python Frameworks for 2024

    This post provides an overview of Python web frameworks, including Django, Flask, and FastAPI. It explains the difference between a library and a framework, highlights the features and use cases of each framework, and offers tips for choosing the right framework for your project.

  8. 8
    Article
    Avatar of hnHacker News·2y

    #!/usr/bin/env -S uv run

    Using the shebang line '#!/usr/bin/env -S uv run' in a Python script allows the script to create its own isolated environment with the correct installed dependencies and Python version when executed. This method works on any machine with the 'uv' binary installed.

  9. 9
    Article
    Avatar of freecodecampfreeCodeCamp·2y

    How to Use JSON Web Tokens for Secure Authentication in Flask Applications

    Learn how to use JSON Web Tokens (JWTs) to authenticate Flask applications. Discover the authentication mechanisms available for securing data, understand how JWTs work, and follow a step-by-step process to implement JWT-based authentication.

  10. 10
    Article
    Avatar of grafanaGrafana Labs·2y

    How to instrument your Python application using OpenTelemetry

    Learn how to instrument your Python application using OpenTelemetry and visualize the data in Grafana Cloud's Application Observability. Follow the steps to create a Python application and configure it for OpenTelemetry.

  11. 11
    Article
    Avatar of javacodegeeksJava Code Geeks·2y

    Explore These 20 Cool Python Scripts for Fun and Productivity!

    Explore 20 cool Python scripts that are both fun and practical. From web scraping with BeautifulSoup and Requests to machine learning model deployment with Flask, Python can make tasks easier and more enjoyable.

  12. 12
    Article
    Avatar of circleCircleCI·2y

    Build and test a LlamaIndex RAG application

    LlamaIndex is a framework for building context-augmented large language model (LLM) applications. This tutorial walks you through creating a question-answering system using LlamaIndex, Python, and Flask, and exposing it as a REST API. It includes steps for setting up the environment, installing dependencies, defining scripts, writing unit tests, and automating the build and test process using CircleCI.

  13. 13
    Video
    Avatar of communityCommunity Picks·2y

    Next.js 14, Python, Docker: Build a fullstack rest API in TypeScript and Python, using Flask

    Learn how to build a fullstack rest API in TypeScript and Python using Flask. Get step-by-step instructions on setting up the required technologies, including Docker containers for the database. No prior knowledge of frontend, backend, APIs, or databases required.

  14. 14
    Article
    Avatar of awscommunityAWS Community·2y

    I'm a lazy developer. Here's how Amazon Q is enabling me

    Improving productivity for lazy developers using Amazon Q

  15. 15
    Article
    Avatar of pointerPointer·2y

    gptscript-ai/gptscript: Develop LLM Apps in Natural Language

    GPTScript is a scripting language that allows developers to automate their interactions with OpenAI's Large Language Model (LLM). It offers a natural language programming experience and supports mixing natural language prompts with traditional scripts. GPTScript can be used for various tasks like planning a vacation, editing files, running SQL queries, and building applications.

  16. 16
    Article
    Avatar of tdsTowards Data Science·2y

    How to Create an LLM-Powered app to Convert Text to Presentation Slides: GenSlide — A Step-by-step Guide

    Learn to create GenSlide, an application that leverages Local Large Language Models (LLMs) to convert textual content into PowerPoint slides. The guide covers setting up the environment, running the LLM service, and building a frontend to facilitate user interaction. The LLM service employs the `gpt4all` package, ensuring data privacy and zero API call costs. It includes detailed steps for creating and running the backend and frontend components, enabling users to input text and generate presentations.

  17. 17
    Video
    Avatar of samwitteveenaiSam Witteveen·2y

    Mesop - Google's New UI Maker

    Mesop is a framework developed by Google to build web UIs quickly with Python. It aims to provide a simple way for engineers without front-end skills to create UIs and get feedback from users.

  18. 18
    Article
    Avatar of kdnuggetsKDnuggets·2y

    Say Goodbye to Print(): Use Logging Module for Effective Debugging

    Improve your debugging skills with Python's built-in logging module. Learn about the benefits of using the logging module instead of print() statements, how to set up the logging module, and how to log user activity in a web application.

  19. 19
    Article
    Avatar of rpythonReal Python·2y

    Model-View-Controller (MVC) in Python Web Apps: Explained With Lego – Real Python

    Learn about the Model-View-Controller (MVC) pattern in web development using a Lego analogy.