Python Argparse: Parser for command-line options, arguments and sub-commands
Reading Time: 4 minutes In this blog, I am going to show you how you can parse the command line arguments to your python script using python argparse module.
Reading Time: 4 minutes In this blog, I am going to show you how you can parse the command line arguments to your python script using python argparse module.
Reading Time: 3 minutes Introduction to Mako Have you ever worked on a project in Python and thought to yourself, “Gee, it would be nice if I could dynamically generate web pages and/or text and have them directly interact with my program.” Well, you’re in luck because enter Mako templates. Mako is a template library and a Python Sever Page language, allowing content such as HTML, XML, and text Continue Reading
Reading Time: 2 minutes Introduction Marshmallow, stylized as “marshmallow”, is an object-relational mapping library which is used to convert objects to and from Python data types. It is often used alongside SQLAlchemy, an ORM that maps database schemas to Python objects. Marshmallow is often used to deserialize Python dicts to SQLAlchemy models and vice versa. Let’s focus on how to use Marshmallow. Creating Schemas First, we need to create Continue Reading
Reading Time: 4 minutes GitPython is a python library used to interact with git repositories. It is a module in python used to access our git repositories. It provides abstractions of git objects for easy access of repository data, and additionally allows you to access the git repository more directly using pure python implementation. Requirements for GitPython Python3 Git GitPython module pip and virtualenv, which come packaged with Python Continue Reading
Reading Time: 3 minutes In this blog, we are going to run the sample dynamic DAG using docker. Before that, let’s get a quick idea about the airflow and some of its terms. What is Airflow? Airflow is a workflow engine which is responsible for managing and scheduling running jobs and data pipelines. It ensures that the jobs are ordered correctly based on dependencies and also manages the allocation Continue Reading
Reading Time: 3 minutes This blog is all about the predefined data structures in python. This includes these data structures: Lists, Tuples, Sets, and Dictionary.
Reading Time: 4 minutes NumPy’s built-in methods and concepts like vectorization, broadcasting and indexing allows you to focus on answering questions from your data and not about how to code those solutions. NumPy handles most of that for you.
Reading Time: 5 minutes Numpy draws it’s powers from two major concepts – vectorization and broadcasting, These concepts help Numpy to say good bye to loops and hello to concise coding.
Reading Time: 3 minutes In our previous blog Introduction to Django, we discussed the Django’s features and architecture. In this blog, we will create a web application in Django. For starting a new project, go to the folder where you want your project to be and run the command: django-admin startproject django_proj django-admin Django’s command-line utility for administrative tasks.manage.py is automatically created in each Django project. manage.py does the Continue Reading
Reading Time: 5 minutes Machine learning is an application of artificial intelligence (AI) that provides systems the ability to automatically learn and improve from experience without being explicitly programmed. Machine learning focuses on the development of computer programs that can access data and use it to learn for themselves. Type of machine learning Supervised learning Unsupervised Learning Reinforcement Learning In Supervised Learning, algorithms learn from labeled data. After understanding Continue Reading
Reading Time: 4 minutes In this blog, we are going to discuss the list data structure of python. The list is a collection which is: • Ordered : [1,2] is not equal to [2,1] • Allows duplicate members: [1, 1] is allowed. • Mutable: allows modification of elements of the list after its creation. • Dynamic: allows addition, modification or deletion of elements. The differentiating feature between arrays from Continue Reading
Reading Time: 3 minutes In this blog, we are going to talk about Django. Before that let’s understand what is web framework and why do we need it? A web framework is a software tool that helps us develop application faster and smarter. It eliminates the need to write a lot of repetitive code and saves time. What is Django? Django is a free open source high-level web framework Continue Reading
Reading Time: 3 minutes In this blog, we are going to discuss the tuple data structure of python. A tuple is a collection which is immutable, we cannot change the elements of a tuple once it is assigned. It allows duplicate members i.e. (1, 1) is allowed. Any set mutiple comma-separated symbols written default to tuples. >>> x, y = 1, 2 Dictionaries have a method called items that Continue Reading