Featured Post

How to Build CI/CD Pipeline: GitHub to AWS

Image
 Creating a CI/CD pipeline to deploy a project from GitHub to AWS can be done using various AWS services like AWS CodePipeline, AWS CodeBuild, and optionally AWS CodeDeploy or Amazon ECS for application deployment. Below is a high-level guide on how to set up a basic GitHub to AWS pipeline: Prerequisites AWS Account : Ensure access to the AWS account with the necessary permissions. GitHub Repository : Have your application code hosted on GitHub. IAM Roles : Create necessary IAM roles with permissions to interact with AWS services (e.g., CodePipeline, CodeBuild, S3, ECS, etc.). AWS CLI : Install and configure the AWS CLI for easier management of services. Step 1: Create an S3 Bucket for Artifacts AWS CodePipeline requires an S3 bucket to store artifacts (builds, deployments, etc.). Go to the S3 service in the AWS Management Console. Create a new bucket, ensuring it has a unique name. Note the bucket name for later use. Step 2: Set Up AWS CodeBuild CodeBuild will handle the build proces

4 Top Python Oops Concepts Simplify Your Coding

Oops concepts in Python explained in this post. Python supports Encapsulation, Inheritance, Abstraction, Polymorphism and Dynamic binding. These simplify your coding effort. I have given examples on Python Oops ( Object oriented) concepts.

python oops concepts

Python Oops (Object oriented) Concepts

  1. Encapsulation
  2. Data hiding and abstraction
  3. Inheritance
  4. Polymorphism (overloading/overriding)
The fifth Python special property is Dynamic binding.

#1 Python Oops Encapsulation

Wrapping of data and functions in a single unit is called Encapsulation.

Encapsulation

#2 Python Oops Data Hiding and abstraction

User program refers to methods from an object is called abstraction. Keeping all the methods under one object called data hiding.

Abstraction

#3 Python Oops Inheritance

Inhering properties means, referring property of an object of a class from an Object of the other Class.

Inheritance

#4 Python Oops Polymorphism

Poly means many. The definition of one function can use for many. 

The best example is the "+" operator. You can use it for the addition of numbers, and concatenate of String. 

Polymorphism

#5 Dynamic Binding

Dynamically you can call one procedure during the execution of the main program is called Dynamic binding. 

Dynamic Binding

Comments

Popular posts from this blog

How to Fix datetime Import Error in Python Quickly

How to Check Kafka Available Brokers

SQL Query: 3 Methods for Calculating Cumulative SUM