Python
123 posts
Handling Deprecation: Gracefully Retiring Features
Learn to deprecate Python library features gracefully with warnings, clear communication, and migration paths that minimize disruption to your users.
McCabe Complexity: The Python Metric You Should Care About
Learn about McCabe Complexity, a key metric for code complexity. Understand, measure with tools like Ruff, and manage complexity in Python projects.
Python Logging Best Practices for Library Developers
A comprehensive guide to implementing logging in Python libraries - from basic setup to advanced patterns and common pitfalls to avoid
Introducing 'stargazers': A Tool to Understand Your GitHub Audience
Announcing 'stargazers': A CLI tool to fetch, analyze & summarize GitHub stargazers/forkers for any public repo. Inspired by Cockroach Labs' analysis.
HashingEncoder: Tackling Extreme Cardinality with the Hashing Trick
Explore HashingEncoder: learn how it handles extreme cardinality, its mechanism, ideal use cases, and implementation with the category_encoders library.
BinaryEncoder: The Space-Efficient Alternative to One-Hot Encoding
Explore the BinaryEncoder from category_encoders: a space-efficient alternative to one-hot encoding. Learn how it works, when to use it, and see implementation.
OrdinalEncoder: When Order Matters in Categorical Data
Explore OrdinalEncoder for categorical data where order matters. Learn how it works, its benefits, and implementation using the category_encoders library.
Makefiles: The Unsung Hero of Python Development
Explore why Makefiles, though old-school, are invaluable for Python projects. Learn how they provide consistent, simple shortcuts for common dev tasks.
Modern Python Package Publishing: PyGeoHash's New CI/CD Pipeline
PyGeoHash uses GitHub Actions, cibuildwheel, and PyPI's Trusted Publisher for automated, secure multi-platform Python package builds and publishing.
PyGeoHash Gets Type Hints: A Journey into Modern Python
Enhance PyGeoHash with comprehensive type hints and a new types module, improving developer experience and code quality for modern Python.