Skip to main content

17 posts tagged with "developer-tools"

developer-tools tag description

View All Tags

Pyproject.toml: The Definitive Guide to Modern Python Packaging

路 5 min read
Serhii Hrekov
Senior Software Engineer & System Architect specializing in Python, Web Systems, Cloud Infrastructure & Automation

For years, the Python packaging world was a Wild West of setup.py, setup.cfg, and requirements.txt. It was messy, often insecure, and required executing arbitrary Python code just to install a library.

In modern Python development, pyproject.toml is the undisputed king. It is a single, human-readable configuration file that tells Python exactly how to build, install, and manage your project.

Quick Reference

pyproject.toml (PEP 517/518/621) replaces setup.py, setup.cfg, and requirements.txt with a single declarative configuration. Key sections:

  • [build-system]: Declares the packaging engine (setuptools, hatchling, flit_core, or poetry-core).
  • [project]: Standard metadata (name, version, dependencies, license).
  • [project.scripts]: CLI entry point executables.

The `__main__.py` File: The Front Door to Your Python Package

路 5 min read
Serhii Hrekov
Senior Software Engineer & System Architect specializing in Python, Web Systems, Cloud Infrastructure & Automation

If __init__.py is the receptionist that organizes your package, then __main__.py is the front door. It's the specific file Python looks for when you try to execute a directory as if it were a single script.

As Python applications become more modular, __main__.py has become the standard way to provide a clean Command Line Interface (CLI) for your tools.

How to Use `__init__.py` in Python Packages: Role, Patterns, and Best Practices

路 6 min read
Serhii Hrekov
Senior Software Engineer & System Architect specializing in Python, Web Systems, Cloud Infrastructure & Automation

While the existence of __init__.py makes a directory a package, how you fill that file separates a messy script from a professional library. In 2026, the goal of a well-crafted __init__.py is to provide a "Clean Facade"-hiding the messy internal plumbing of your project while offering a polished interface to the user.

Here are the industry-standard best practices for utilizing this file effectively.

Resolving Pylance(reportMissingImports) in VS Code

路 7 min read
Serhii Hrekov
Senior Software Engineer & System Architect specializing in Python, Web Systems, Cloud Infrastructure & Automation

The Pylance(reportMissingImports) error is one of the most common issues Python developers encounter in Visual Studio Code (VS Code). Pylance is a language server that provides intelligent code completion and type checking. This specific error means Pylance cannot find the installed package in the Python environment it is currently configured to inspect.

This issue is almost never a code problem; it is an environment configuration problem within VS Code.

Check History of a Specific Line in VS Code

路 5 min read
Serhii Hrekov
Senior Software Engineer & System Architect specializing in Python, Web Systems, Cloud Infrastructure & Automation

You can check the history of a specific line in VS Code using the built-in Git Blame feature or the Timeline view. For a much more powerful experience, the free GitLens extension is highly recommended.

Quick Answer

To view who changed a line and when in VS Code:

  • Built-in: Open Command Palette (Cmd+Shift+P / Ctrl+Shift+P) and run Git: Toggle File Blame.
  • File History: Open the Timeline panel in the Explorer sidebar to view chronological commit diffs.
  • Inline Blame: Install the GitLens extension for subtle, real-time annotations on your active cursor line.

N8n, Make, or Zapier: Complete Comparison Guide, Features, and Pricing

路 7 min read
Serhii Hrekov
Senior Software Engineer & System Architect specializing in Python, Web Systems, Cloud Infrastructure & Automation

Choosing the right workflow automation platform is a critical business decision that impacts everything from efficiency and cost to data security and technical control. There is no single "best" platform; the final verdict depends entirely on your specific use case, technical skills, and budget [1, 2].

N8n vs. Make (formerly Integromat)

路 8 min read
Serhii Hrekov
Senior Software Engineer & System Architect specializing in Python, Web Systems, Cloud Infrastructure & Automation

n8n and Make (formerly Integromat) are two of the most powerful workflow automation platforms available, but they have fundamentally different approaches. While both allow you to build complex automations with a visual interface, they cater to different users and use cases. Choosing between them comes down to a trade-off between accessibility and raw technical power [1].

VS Code Regex Search and Replace Guide

路 6 min read
Serhii Hrekov
Senior Software Engineer & System Architect specializing in Python, Web Systems, Cloud Infrastructure & Automation

Visual Studio Code (VS Code) provides a powerful, built-in regex engine for its Find and Search functions. This feature allows you to perform highly specific and complex searches and replacements across a single file or an entire project.

Quick Answer

Press Ctrl + F (Windows/Linux) or Cmd + F (macOS) to open Find, then press Alt + R (or Option + Cmd + R on macOS) or click the .* icon to toggle Regex mode. In the Replace field, use $1, $2, etc. to reference captured groups.

VIM Commands Cheatsheet

路 3 min read
Serhii Hrekov
Senior Software Engineer & System Architect specializing in Python, Web Systems, Cloud Infrastructure & Automation

VIM Commands Cheatsheet no water, just straight to the point, such as - how to save and exit vim editor?!

A Guide to Preserving YAML Formatting with PyYAML

路 6 min read
Serhii Hrekov
Senior Software Engineer & System Architect specializing in Python, Web Systems, Cloud Infrastructure & Automation

Python's PyYAML library is a powerful tool for working with YAML, but it has one common limitation: when you load a YAML file and dump it back, it doesn't preserve the original formatting. This can be a problem if you have multi-line strings formatted as literal blocks (|) and want to keep them that way for readability.

Fortunately, there's a straightforward and effective way to solve this by creating a custom representer for PyYAML. This guide will walk you through the process, using the code you provided, to ensure your multi-line strings are always dumped as literal blocks.