MicroPyramidBlog

Explore a blog dedicated to a wide spectrum of topics including Django, Python, Machine Learning, Salesforce, Angular, React, Flutter, Svelte, LINUX, and Amazon Web Services.

Introduction to Object Oriented Programming with Python 3

Introduction to Object Oriented Programming with Python

Sending Emails Using Sendgrid on Heroku for a Django App

Integrate Sendgrid API to your Heroku app to deliver simplified emails like any notification emails, user signups etc.

Python using Yield and Generators

Generators are memory efficient. They allow us to code with minimum intermediate arguments, less data structures. Generators are of two types, generator expressions and generator functions. Generators are helpful for reading large files, streaming.

How to Implement Case Insensitive CSV DictReader in Python

In general use cases we upload the CSV files to the system to store huge amount of data by uploading single file. For example in e-commerce sites we just write thousands of products details in a CSV file and just upload it.

In python we can read the data of a CSV file in 2 ways. One by using normal csv.reader and the other by using csv.DictReader.

Set Up Travis CI For Django Project

Travis CI is a continuous integration service used to build and test applications hosted at GitHub. Here are simple steps to add CI to you django project.

Integrate Twitter Social API into Django App

Integrating Twitter sign in (OAuth) in Django App, which includes
1. Capturing username via Twitter Login
2. Updating authenticated user current status on twitter(tweets).

Create Excel File, Insert Image, Draw Bar Graphs in Excel Files in Python Using Xlsxwriter

Xlsxwriter is a python module through which we can write data to Excel 2007+ XLSX file format. In this blog post we learn to write data, insert images and draw graphs in the excel file.

Get Count, Average, Min, Max Values from Model Field using Django Aggregate

To retrieve maximum, minimum or average values from group of rows we can use django Aggregation. For example to retrieve max price or avg price of product from catalogue.

Building Documentation with Readthedocs

In this blog, I'm going to explain you how to write the Sphinx docs using reStructuredText to host in the Read the Docs.

Installing Sphinx
$ pip install Sphinx

And we have script called sphinx-quickstart in Sphinx that sets up a source directory and creates a default conf.py with the most useful configuration values from a few questions it asks you. Just run the following command-
$ sphinx-quickstart

Improving Page Speed Score in Google Page Score test- PART1

Google's Page Speed Insights measures the performance of a page for mobile devices and desktop devices. It fetches the url twice, once with a mobile user-agent, and once with a desktop-user agent.

The Page Speed Score ranges from 0 to 100 points. A higher score is better and a score of 85 or above indicates that the page is performing well.