Build rich command lines using rich

Image for post
Image for post
https://www.pexels.com/photo/blur-bright-business-codes-207580/

Objective

Support

Installation

pip install rich

Introducing rich

Getting started


Use Dataclasses in Python to store attributes

Image for post
Image for post
Photo by Franki Chamaki on Unsplash

Introduction

How namedtuples can be used to store attibutes like classes


Bored of traditional CLIs? Develop interactive command lines with PyInquirer

Image for post
Image for post
Photo by Sigmund on Unsplash

Introduction:

Motivation:

  1. Are you bored of the traditional cli’s?
  2. Are you bored of documenting the commands for every single feature in the cli?


Understand the nuances of deep and shallow copy

Image for post
Image for post
Photo by Florian Olivo on Unsplash

Introduction:

Why is copy needed?


Bored of packaging your Python apps using pyinstaller? Here’s an alternative

Image for post
Image for post
Photo by mostafa mahmoudi on Unsplash

Introduction:

Briefcase:


Remove duplicates from a linked list in Python

Image for post
Image for post
Photo by Markus Spiske on Unsplash

Problem Statement:


Generate pre-signed URLs for S3 objects in Python

Image for post
Image for post

Introduction:

Pre-signed URLs:


And how not to concatenate strings

Image for post
Image for post
Photo by Lance Grandahl on Unsplash

A simple concatenation:

x =  "hello"
y = "world"
print(x + y)
Output:
helloworld


Master the basics of Big O notation

Image for post
Image for post
Photo by Aron Visuals on Unsplash

What is Big O?

  1. Time-complexity
  2. space-complexity


Understanding namedtuples and their uses in Python

Image for post
Image for post
Photo by Markus Spiske on Unsplash

What are Named Tuples in python?

Revisiting tuples:

Dinesh Kumar K B

Python Developer, AWS certified solutions architect associate | CSM | Django | Flask | www.linkedin.com/in/dineshkumarkb

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store