Tag Archive

python

  • In this post, I will build a simple fitness tracker app using Python Reflex. Reflex is a Python library that allows you to create reactive applications using a functional and declarative approach. We will use Reflex to create a simple fitness tracker app that allows you to log the amount of workouts completed per week. This is how it will look: Install Reflex After making a new directory and cd’ing into it, I’ll use uv (anybody not yet using this amazing tool? 💡) to initialize a project and install Reflex: The awesome thing about uv is that you don’t have…


  • What is this pattern about? The Pipeline design pattern (also known as Chain of Command pattern) is a flexible way to handle a sequence of actions, where each handler in the chain processes the input data and passes it to the next handler. This pattern is commonly used in scenarios involving data processing, web scraping, or middleware systems. In this blog post, I’ll walk you through a specific example that leverages Python’s powerful functools.reduce and partial functions, along with the BeautifulSoup library for parsing HTML content. This code showcases the Pipeline pattern applied to HTML table extraction and processing. What…


  • Exact-RAG is a powerful multimodal model designed for Retrieval-Augmented Generation (RAG). It seamlessly integrates text, visual and audio information, allowing for enhanced content understanding and generation. In the rapidly evolving landscape of the Large language model (LLM), the quest for more efficient and versatile models continues unabated. One of the latest advancements in this realm is the emergence of eXact-RAG, a multimodal RAG (Retrieval Augmented Generation) system that leverages state-of-the-art technologies to deliver powerful results. eXact-RAG stands out for its integration of LangChain and Ollama for backend and model serving, FastAPI for REST API service, and its adaptability through the…


  • The repository pattern is a design pattern that helps you separate business logic from data access code. It does so by providing a unified interface for interacting with different data sources, bringing the following advantages to your system: A practical example Let’s use Python and sqlmodel (PyPI) to demonstrate this pattern (code here): Note: In this implementation, we did not add error handling to keep the example relatively small. You should ensure that if something goes wrong (e.g., database connection issues or file access errors), the program can handle the error gracefully and provide useful feedback. The example might be a bit…


  • We are excited to announce that we’ve extended our Newbie Bites from 25 to 50 Python exercises! 🎉 The importance of exercising when learning how to code 💡 We’re passionate about this new batch of exercises because they require active engagement, which is crucial for learning how to code. Passive methods like reading books or watching videos don’t help concepts click or stick. Our exercises involve writing code that is validated with pytest. This immediate feedback helps you understand mistakes and learn more effectively. You’ll encounter errors, re-think your approach, and practice deliberately. Why double the number of Newbie exercises?…


  • OpenStreetMap (OSM) is known for being an open source project that allows people to browse the world map and to plan routes. However it is more than that. Among others it provides a read-only API that allows users to query for very diverse map data: Overpass API Data structure of OSM To understand the structure of the queries, we first need to understand how OSM saves its data. OSM uses basic data structures: node, way, and relation. Each element can have multiple tags, which consist of a key-value pair and they help specify the features of each element. Nodes also…


  • “The most rigorous certification program of its kind … the total end result of which is an absurdly high number of finished, feature-rich, production-ready software applications.” – Josh E Introduction  In the world of Python programming, Pybites stands out with its unique approach to education and certification.  In an era where programming skills are in high demand, we are a game-changer in Python education and certification.  Unlike traditional programs, our Pybites Developer Mindset Program is revolutionizing the way Python skills are learned and validated. With a unique blend of practical, hands-on learning, we are setting a new industry standard.  Our…


  • Salary Negotiation Tips

    ·

    ·

    1 min read

    How to better negotiate your salary? Our new podcast episode offers practical tips! Listen here: Or on YouTube: In this week’s podcast episode we tune into a PDM Mindset Hacking call where Julian offers the group some valuable tips when it comes to negotiating your salary when applying for jobs.  These tips will help you determine what your worth is and better negotiate as a professional developer. Chapters:00:00 Intro00:59 Preparation, do your research03:30 Have your portfolio ready04:13 Know your worth05:58 What do you need?08:20 Good prep instills confidence09:40 Other benefits and perks10:46 Advocate for yourself based on evidence12:45 Understanding the role you’re…


  • This week we talk with Adam Johnson, Python developer / consultant, Django steering counsel member and prolific book author. Listen here: Or check it out on our YouTube channel: We start off with some wins, then we dive into his new Boost your Git DX book. We also discuss:• Adam’s focus on DX or “developer experience” in his books.• State of Python tooling.• Future of Django + Htmx / front-end dev.• Open source projects motivation and tips for (aspiring) contributors.• Tips to diversify one’s skill set and contribute as a Python developer.• Technical blogging.• Book / resource recommendations. Links & Resources:–…