Category

Snippets

Page 5 of posts in Snippets.

Develop remotely on Raspberry Pi using VSCode Remote SSH

How to connect and develop remotely on Raspberry PI by SSHing in using VSCode

Received & return a file from in-memory buffer using FastAPI

How to receive a file to the in-memory buffer and then return the file from buffer using FastAPI without saving it to disk.

Set the default command in Python Typer CLI

A short guide to setting a default command using callback when making multiple commands in Python Typer

Disable the default completion options in Python Typer CLI

A short guide to disable the default options such as install-completion and show-completion in Python Typer CLI, a popular CLI building tool

Get username, hostname and home directory using Python

A quick guide to fetching the username, hostname and home directory using Python on both Windows & Linux