Tag: PYTHON

3 Python Scraping Tricks I Actually Use
PYTHON

3 Python Scraping Tricks I Actually Use

I’ve scraped websites for data, for price monitoring, for lead generation, and honestly just because I was curious what a page looked like parsed into JSON. Python is still the best language for it, and I’ve settled on a handful of patterns that I reuse everywhere. Here are

davide
Python Context Managers: Stop Writing try/finally for Everything
PYTHON

Python Context Managers: Stop Writing try/finally for Everything

I keep seeing people write try/finally blocks for file handles, database connections, and locks. Every. Single. Time. Python has context managers for this, and they are not complicated ( honestly, they are the cleanest abstraction in the language ). If you have ever used with open('file.txt') as

davide
Building systems that don't fall over
DEVOPS

Building systems that don't fall over

Every production system eventually faces the same uncomfortable truth: things fail. Networks partition, services crash, databases timeout, and disk space runs out at 3 AM. The difference between a system that survives these events and one that doesn't comes down to one word: resilience. Why Resilience Matters Imagine

davide
Data science with Python - what I wish I knew at the start
PYTHON

Data science with Python - what I wish I knew at the start

Meta Description: Discover how to get started with data science using Python. Learn key concepts, essential libraries, practical tips, and real code examples to begin your journey into data-driven insights. Data science is revolutionizing industries by turning raw data into actionable insights. At the heart of this transformation lies Python,

davide
Django vs Flask vs FastAPI - how I actually choose
PYTHON

Django vs Flask vs FastAPI - how I actually choose

When building a web application or API with Python, choosing the right framework is crucial. Django, Flask, and FastAPI are three of the most popular Python frameworks, each offering unique advantages depending on the project’s needs. In this article, we’ll compare these three frameworks based on various factors

davide
FastAPI - why I keep choosing it for new APIs
PYTHON

FastAPI - why I keep choosing it for new APIs

FastAPI is a modern, fast (high-performance) web framework for building APIs with Python. It is designed to be easy to use while providing the power of asynchronous programming and automatic validation. Built with Python type hints, FastAPI enables developers to create robust APIs quickly and efficiently. Why Choose FastAPI? 1.

davide
ESC
// awaiting input_