Skip to main content
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder
View all authors

Covert msgspec object to dict

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

To convert a msgspec object to a dict, you can use the msgspec.structs.asdict() function. This function recursively converts a msgspec.Struct instance into a dictionary, including any nested Struct objects.

Supabase Django integration

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

Supabase Integration with Django

Here's a guide to integrating Supabase with a Django application. We will use the requests library to make API calls to Supabase, as there is no official Django-specific Supabase ORM.

Supabase FastAPI integration

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

Supabase Integration with FastAPI

Here's a guide to integrating Supabase with a FastAPI application. We'll cover environment setup, connecting to Supabase, and performing basic CRUD operations.

Supabase Flask integration

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

Here's a simple example of how to integrate Supabase with a Flask application. This guide will cover how to set up the environment, connect to your Supabase project, and perform basic CRUD (Create, Read, Update, Delete) operations.

Fix - you have divergent branches in Git

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

How to Fix "You have divergent branches" Error

The "You have divergent branches" error is a Git warning, not a hard error that stops your operation. It appears when your local branch and the corresponding remote branch have both moved forward, creating a divergent history. Git is telling you that a simple fast-forward merge is not possible and you need to choose a strategy to reconcile the differences before your next git pull.

The error message itself provides the three main solutions: merge, rebase, or fast-forward only.

OpenAPI $ref reusable parameter

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

Using $ref to reference a reusable parameter in an OpenAPI specification is a key practice for keeping your API definitions clean, consistent, and maintainable. This method centralizes common parameters, like Authorization headers or a userId path parameter, in a single location and allows you to reference them from any endpoint.

Create OpenAPI mock server

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

Creating a mock server from a Swagger/OpenAPI file is a powerful way to decouple front-end and back-end development. It allows front-end developers to start building and testing their applications against a realistic API without waiting for the back-end to be completed.

Here's a step-by-step guide on how to set up a simple mock server using your OpenAPI specification file.

required in OpenAPI (or Swagger)

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

The meaning of required in OpenAPI (or Swagger) is consistent across all major versions: it specifies that a property must be present in the data payload. However, how you use and apply the keyword has evolved between versions.