Best of PythonDecember 2024

  1. 1
    Article
    Avatar of lonely_programmerLonely Programmer·1y

    Language Stats

  2. 2
    Article
    Avatar of pyimagesearchPyImageSearch·1y

    PNG Image to STL Converter in Python

    Learn how to convert a PNG image to an STL file using TripoSR in Python. This guide walks through setting up the environment, importing necessary libraries, processing the image to create a 3D model, and converting the model from OBJ to STL format. Ideal for designers, engineers, or hobbyists aiming to create 3D printable objects from 2D images.

  3. 3
    Article
    Avatar of medium_jsMedium·1y

    Deep Dive into Multithreading, Multiprocessing, and Asyncio

    Python provides three main approaches for handling multiple tasks simultaneously: multithreading, multiprocessing, and asyncio. Each model has its strengths and weaknesses, depending on whether tasks are I/O-bound or CPU-bound. Multithreading is limited by Python's Global Interpreter Lock (GIL) but is effective for I/O-bound tasks. Multiprocessing bypasses the GIL and is suitable for CPU-bound tasks by running processes in parallel. Asyncio uses a single thread to manage tasks and is ideal for many small I/O-bound tasks by utilizing cooperative multitasking.

  4. 4
    Article
    Avatar of lpythonLearn Python·1y

    Something simple ig ? Part- idk

  5. 5
    Article
    Avatar of devgeniusDev Genius·1y

    Building a Python-Based Data Lake

    Data lakes are vital for modern data ecosystems, allowing organizations to store and analyze large volumes of varied data without requiring a predefined schema. This guide details setting up a Python-based data lake using MinIO, PyIceberg, PyArrow, and Postgres, ideal for small to medium setups due to its simplicity. The step-by-step instructions cover installation of libraries, configuring SQL catalogs, data transformation using Pandas and PyArrow, and querying data. Advanced operations using DuckDB are also explored, showcasing robust data handling with flexibility and scalability.

  6. 6
    Article
    Avatar of communityCommunity Picks·1y

    Welcome to Langflow

    Langflow is an open-source, Python-powered framework designed for building multi-agent and Retrieval Augmented Generation (RAG) applications. It features an intuitive visual flow builder that allows developers to create complex AI workflows with ease. Suitable for both seasoned AI developers and beginners, Langflow supports a wide range of applications like intelligent chatbots, document analysis systems, and content generation. Join the community to share projects and seek support.

  7. 7
    Article
    Avatar of freecodecampfreeCodeCamp·1y

    Learn Elasticsearch with a Comprehensive Beginner-Friendly Course

    Master search functionality in modern applications by learning Elasticsearch. This beginner-friendly course on freeCodeCamp.org's YouTube channel covers Elasticsearch fundamentals such as index management, document storage, text analysis, and search API. You'll also dive into advanced topics like semantic search and pipelines. Apply your skills in a real-world project by building a search engine for NASA's Astronomy Picture of the Day dataset. The 5-hour course is practical, accessible, and ideal for developers, data scientists, and tech enthusiasts.

  8. 8
    Article
    Avatar of communityCommunity Picks·1y

    How to scrape Google Maps data using Python

    Learn how to build a Google Maps scraper using Crawlee and Python to extract hotel data including names, ratings, reviews, prices, and amenities. The guide covers setting up the environment, connecting to Google Maps, handling dynamic content, and managing infinite scrolling. It also explains how to use proxies for large-scale scraping and create an interactive analysis dashboard with the exported data.

  9. 9
    Article
    Avatar of swirlaiSwirlAI·1y

    Building AI Agents from scratch - Part 1: Tool use

    Learn how to build AI agents from scratch, focusing on implementing tool usage capabilities without any orchestration frameworks. The guide covers creating Python functions as tools, constructing effective system prompts, and developing an Agent class to plan and execute actions using provided tools. The tutorial includes detailed code examples and explanations for wrapping functions as tools, formatting prompts, and executing tasks effectively.

  10. 10
    Article
    Avatar of lpythonLearn Python·1y

    Idk why this exists 🫠

  11. 11
    Article
    Avatar of lpythonLearn Python·1y

    List thingy!!!

  12. 12
    Article
    Avatar of lpythonLearn Python·1y

    Something for beginners 😄

  13. 13
    Video
    Avatar of indentlyIndently·1y

    5 Bad Ideas In Python

    Python is known for its ease of use, but certain practices can lead to problems in your code. Modifying a list while iterating through it can cause unintended behavior. Proper exception handling is crucial for identifying specific issues during development. Avoid nested if-else checks by using guard clauses to improve code readability. Recursion, while powerful, should be used cautiously as it can significantly slow down your program. Finally, never use mutable default arguments in functions to prevent unintended shared states across function calls.

  14. 14
    Video
    Avatar of christitustechChris Titus Tech·1y

    150 Days of Programming

    After five months of diving into software development, the author shares their experiences and accomplishments across various projects. They utilized multiple programming languages, including Python, Rust, PowerShell, and C#. The post covers the techniques, tools, and methodologies used, along with the challenges and successes faced. The author highlights the importance of selecting the right language for each project and evaluating their performance and syntax, ultimately expressing a preference for C# and .NET for Windows applications.

  15. 15
    Article
    Avatar of mlmMachine Learning Mastery·1y

    5 Tools for Visualizing Machine Learning Models

    Machine learning models require specialized tools to visualize their structure, performance, and behavior. Five useful tools for this purpose include TensorBoard for neural network models, SHAP for model prediction explanations, Yellowbrick for Python-based model diagnostics, Netron for deep learning model architecture visualization, and LIME for intuitive model explanations. These tools cater to various model types and use cases, helping users understand complex ML models better.

  16. 16
    Video
    Avatar of TechWithTimTech With Tim·1y

    ADVANCED Python AI Agent Tutorial - Using RAG, Langflow & Multi-Agents

    Learn how to build a multi-AI agent application using Langflow to handle complex tasks like customer support. This tutorial demonstrates step-by-step integration, including implementing retrieval augmented generation (RAG) for responsive data lookup from a database and combining multiple AI agents to solve real-world business cases effectively. The guide shows how to set up a front end with Streamlit and offers ways to extend and scale the system for practical use.

  17. 17
    Article
    Avatar of medium_jsMedium·1y

    Beyond If/Else: Advanced Python Control Flow

    Explore advanced methods for control flow in Python without using traditional if/else statements. Learn how to build a dynamic calculator using modules like operator, eval(), and the new match statement from Python 3.10, along with other techniques such as dictionary dispatch and lambda functions.

  18. 18
    Article
    Avatar of hnHacker News·1y

    lmnr-ai/flow: A lightweight task engine for building AI agents that prioritizes simplicity and flexibility.

    Flow is a lightweight, flexible task engine designed for building AI agents. It uses a dynamic task queue system that supports concurrent execution, dynamic scheduling, and smart dependencies, making complex workflows simple. Results are stored in a thread-safe context, and tasks can modify workflows, run conditionally, and manage state dynamically. Flow requires no external dependencies and includes features like auto-instrumentation for tracing, parallel execution, state management, and more. It's easy to integrate with minimal code and suitable for various AI and machine learning applications.

  19. 19
    Article
    Avatar of devblogsDevBlogs·1y

    Python in Visual Studio Code

    The December 2024 release of Python, Pylance, and Jupyter extensions in Visual Studio Code introduces docstring generation features using Pylance and Copilot, a new Python Environments extension in preview, and a comprehensive 'full' language server mode in Pylance. Key improvements include enhanced documentation automation, easier management of Python environments, and more capabilities in Python analysis with Pylance.

  20. 20
    Article
    Avatar of freecodecampfreeCodeCamp·1y

    Building a Simple Web Application Security Scanner with Python: A Beginner's Guide

    Learn how to build a basic Python-based web application security scanner to detect common vulnerabilities like XSS, SQL injection, and sensitive information exposure. This guide covers setting up your development environment, writing the core scanning class, implementing a web crawler, and performing security checks. The tutorial also highlights how to extend the scanner with additional features.

  21. 21
    Article
    Avatar of dailydoseofdsDaily Dose of Data Science | Avi Chawla | Substack·1y

    [Hands-on] Building a Llama-OCR app

    Learn how to build a Llama-OCR app using the Llama-3.2-vision model and Ollama for local serving. The app converts uploaded images into structured markdown. The post provides a step-by-step guide on downloading necessary tools and prompting the model. Code for the full app is available on GitHub.

  22. 22
    Article
    Avatar of watercoolerWatercooler·1y

    Imposter ඞ

  23. 23
    Article
    Avatar of dailydoseofdsDaily Dose of Data Science | Avi Chawla | Substack·1y

    [Hands-on] Tool calling in LLMs

    Tool calling allows language models to perform specific tasks by invoking external tools or APIs. The process involves recognizing when an external tool is needed, invoking the tool, and integrating its output into the model's response. This enhances the flexibility and capability of LLMs. A demo is provided to build a stock price retrieval assistant using the yfinance library.

  24. 24
    Article
    Avatar of communityCommunity Picks·1y

    Best 5 Frameworks To Build Multi-Agent AI Applications

    The post discusses the top five frameworks for building multi-agent AI applications, detailing how these frameworks help in creating AI agents equipped with memory, knowledge, tools, and reasoning abilities. It covers the basic structure of AI agents and showcases step-by-step guides to build and deploy them using frameworks such as Phidata, OpenAI Swarm, CrewAI, Autogen, and LangGraph. The advantages, key features, and limitations of these frameworks are highlighted along with specific examples of enterprise use cases and practical coding instructions.

  25. 25
    Article
    Avatar of cerbosCerbos·1y

    How to build an authorization system for your RAG applications with LangChain, Chroma DB and Cerbos

    The post explains how to build an authorization system for Retrieval Augmented Generation (RAG) applications using LangChain, Chroma DB, and Cerbos. It provides a step-by-step guide on implementing a RAG system and securing it with robust authorization mechanisms. The discussed techniques include Role-Based Access Control (RBAC) and Attribute-Based Access Control (ABAC), highlighting the importance of access control to prevent unauthorized data access, data poisoning, and other security issues. The guide also demonstrates the use of the Cerbos authorization layer to enforce these controls.