Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Filter by Categories
About Article
Analyze Data
Archive
Best Practices
Better Outputs
Blog
Code Optimization
Code Quality
Command Line
Course
Daily tips
Dashboard
Data Analysis & Manipulation
Data Engineer
Data Visualization
DataFrame
Delta Lake
DevOps
DuckDB
Environment Management
Feature Engineer
Git
Jupyter Notebook
LLM
LLM Tools
Machine Learning
Machine Learning & AI
Machine Learning Tools
Manage Data
MLOps
Natural Language Processing
Newsletter Archive
NumPy
Pandas
Polars
PySpark
Python Helpers
Python Tips
Python Utilities
Scrape Data
SQL
Testing
Time Series
Tools
Visualization
Visualization & Reporting
Workflow & Automation
Workflow Automation

Newsletter #267: Build Professional Python Packages with UV –package

Code example: Build Professional Python Packages with UV --package

Newsletter #267: Build Professional Python Packages with UV –package


🔄 Worth Revisiting

Build Professional Python Packages with UV –package

Code example: Build Professional Python Packages with UV --package

Problem

Python packages turn your code into reusable modules you can share across projects.

But building them requires complex setup with setuptools, managing build systems, and understanding distribution mechanics.

Solution

UV, a fast Python package installer and resolver, reduces the entire process to 2 simple commands:

  • uv init –package sets up your package structure instantly
  • uv build and uv publish to create and distribute to PyPI

Generate Time-Sortable IDs with Python 3.14’s UUID v7

Code example: Generate Time-Sortable IDs with Python 3.14's UUID v7

Problem

UUID4 generates purely random identifiers that lack chronological ordering.

Without embedded timestamps, you need separate timestamp fields and custom sorting logic to organize records by creation time.

Solution

Python 3.14 introduces UUID version 7 with built-in timestamp ordering.

Key features:

  • Determine creation order by comparing two UUIDs directly
  • Retrieve exact creation time by extracting the embedded timestamp

☕️ Weekly Finds

smolagents [LLM] – A barebones library for agents that think in code

rembg [ML] – A tool to remove images background

Scrapegraph-ai [LLM] – Python scraper based on AI

Looking for a specific tool? Explore 70+ Python tools →

📚 Latest Deep Dives

Visualize Machine Learning Results with Yellowbrick – Learn to visualize ML model performance with Yellowbrick. Create confusion matrices, ROC curves, and feature importance plots in scikit-learn pipelines.


Stay Current with CodeCut

Actionable Python tips, curated for busy data pros. Skim in under 2 minutes, three times a week.

Leave a Comment

Your email address will not be published. Required fields are marked *

0
    0
    Your Cart
    Your cart is empty
    Scroll to Top

    Work with Khuyen Tran

    Work with Khuyen Tran