Skip to main content

Whats the point of __init__.py on Vercel

5 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

The imports working perfectly fine locally, but failed after deploying on Vercel. The error I've experiencing is common when deploying Python applications with a specific file structure. My local environment likely handles imports differently than Vercel's serverless environment(because of the folder structure), which can cause import errors. The solution is to ensure that my project structure is recognized as a Python package

Transform emojis back into text in Python Guide

5 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

To transform emojis back into text in Python, you can use the emoji module, which is a powerful third-party library for handling emojis. Specifically, the demojize() function converts Unicode emoji characters into their human-readable shortcode text (e.g., 馃憤 becomes :thumbs_up:) [2].

小onvert text to emoji in Python guide

5 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

To convert text to emoji in Python, you can use the emoji module. This third-party library provides functions to replace specific text patterns, known as "shortcodes" or "aliases," with their corresponding Unicode emoji characters. This is the most straightforward and recommended way to add emojis to your text [1, 3].

Error Solved - pyenv python command not found

5 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

The pyenv: python: command not found error occurs when pyenv is not properly configured to manage your Python versions. The solution is to ensure your shell's configuration files are correctly updated to point to pyenv's shims, which are small executable files that intercept commands like python and pip and redirect them to the correct Python version [4, 5].

Cloning a list in Python

7 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

Cloning a list in Python is essential to avoid unintended side effects, as simply assigning one list to another with the equals sign (=) creates a reference, not a new copy [1]. This means both variables point to the same list object in memory, and modifying one will modify the other. To properly clone a list, you need to understand the difference between a shallow copy and a deep copy.

Choosing the right Python environment and package management tool in 2025

7 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

Choosing the right Python environment and package management tool in 2025 depends on your project's complexity and your team's workflow. The tools available can be categorized into two main groups: those that manage Python versions (pyenv, asdf) and those that manage project dependencies (venv, virtualenv, Poetry). Combining these tools is often the most effective approach.

Install pyenv on MacOs

6 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

Homebrew is the recommended and easiest way to install pyenv on macOS, but you can install it without Homebrew by cloning the repository from GitHub. This method requires a few extra steps, including manually configuring your shell and installing dependencies.

Vercel migrations

5 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

Vercel doesn't have a single, built-in migration system but instead relies on standard, database-specific tools. For relational databases like Vercel Postgres, you use traditional ORMs or migration libraries. For key-value stores like Vercel KV, migration is typically a manual process of data transformation.

Looking for more content?
Hrekov Blog contains 165 articles. Browse the blog archive or Explore the full timeline.