Posts for: #Python

Connecting LibSQL database with Python

Introduction

LibSQL is an Open Contribution fork of SQLite. Open Contribution means that it allows suggestions and contributions from the community as opposed to SQLite which is open source but doesn’t accept community contributions.

Installation of LibSQL Client(s)

There are two libraries for LibSQL to interact with Python, the libsql-client and the libsql-experimental-python. The former is the recommended client as it is stable, whereas the latter is in development and has the latest features from the libsql database engine, however, it is compatible with the sqlite module.

[]

Creating a Chat Application with Django and HTMX

Django + HTMX Chat application

Introduction

In this article, we will be creating a Django project, which will be a chat-room kind of application. The user needs to authenticate to the app and then and there he/she can create or join rooms, every room will have some name and URL associated with it. So, the user simply needs to enter the name of the room, which will be unique. The user can then simply enter the messages in the chat room. This is a core chat application that uses web sockets.

[]

PGCLI: Postgres from the terminal

Introduction

Have you ever used the Postgres database and did you know you don’t have to launch PGAdmin every time you want to write SQL queries, you can write down those queries even inside a terminal with a python package. It’s PGCLI, that can act as an editor window for writing SQL queries for Postgres Databases. We can simply execute SQL queries in a PSQL-like shell with additional features like autocompletion, text-editing modes, file input/output options, etc.

[]