130+ Python Projects With Source Code On GitHub

Python Projects

Python Projects – Wondering how powerful Python programming is? It’s no surprise that Python is a very powerful programming language. Here in this article, we’ve compiled a list of Python applications that demonstrate the language’s versatility. Let’s explore the 130+ useful Python projects with source code on GitHub. Python Project Categories We have put together … Read more

Only Size-1 Arrays Can Be Converted To Python Scalars

Python Tutorials

Welcome to Codingcompiler. In this blog post, we are going to explain why this TypeError: Only Size-1 Arrays Can Be Converted To Python Scalars occur and how to fix Only Size-1 Arrays Can Be Converted To Python Scalars in different ways. Why Only Size-1 Arrays Can Be Converted To Python Scalars Occur? Here we’ll explain … Read more

Secure Shell Connection in Python Tutorial


Secure Shell Connection in Python tells the host to which the connection needs to be established username username required to access the host Parameter Usage hostname This parameter tells the host to which the connection needs to be established username username required to access the host port host port password password for the account ssh … Read more

Python Security And Cryptography Tutorial

Python Tutorials

Python is a popular programming language has great potential in security and cryptography. Learn more about Python Security and Cryptography here. This topic deals with the cryptographic features and implementations in Python from its uses in computer and network security to hashing and encryption/decryption algorithms. Python Security and Cryptography: Secure Password Hashing The PBKDF2 algorithm … Read more

Performance Optimization In Python Tutorial

Performance optimization in Python can be done by following difference methods. Learn more about this aspect of python programming here. Performance optimization in Python: Code profiling First and foremost you should be able to find the bottleneck of your script and note that no optimization can compensate for a poor choice in data structure or … Read more

Python Speed Of Program Tutorial


Python speed of program can be evaluated and tested by various means. This guide tells you how to check speed of deque operations and other programs in python. Deque operations A deque is a double-ended queue. class Deque:def init(self):self.items = []def isEmpty(self):return self.items == []def addFront(self, item):self.items.append(item)def addRear(self, item):self.items.insert(0,item)def removeFront(self):return self.items.pop()def removeRear(self):return self.items.pop(0)def size(self):return len(self.items)Operations … Read more

Profiling in Python Tutorial


Profiling in Python is another important parameter used by different programmers in performing different tasks. Learn more about it here. Profiling in Python: %%timeit and %timeit in IPython Profiling string concatenation: In [1]: import stringIn [2]: %%timeit s=””; long_list=list(string.ascii_letters)50 ….: for substring in long_list: ….: s+=substring ….: 1000 loops, best of 3: 570 us per … Read more

Python Hidden Features Tutorial


Python Hidden Features are a set of different functions which can be performed by manipulating different objects in Python. Learn more here. Python Hidden Features: Operator Overloading Everything in Python is an object. Each object has some special internal methods which it uses to interact with other objects. Generally, these methods follow the action naming … Read more

Creating A Windows Service Using Python Tutorial


There are several ways to create and install a Python application as a Service in Windows. Learn More about Windows service using Python here. Headless processes (with no UI) in Windows are called Services. They can be controlled (started, stopped, etc) using standard Windows controls such as the command console, PowerShell or the Services tab … Read more

Python Writing Extensions Tutorial

Python Writing extensions help in performing different functions with ease. As a programmer, you can learn about these extensions here. Python Writing extensions: Hello World with C Extension The following C source file (which we will call hello.c for demonstration purposes) produces an extension module named hello that contains a single function greet(): include include … Read more

Python Serial Communication (Pyserial) Tutorial


Python Serial Communication (pyserial) enables manipulation of many other functions in Python programming language. Learn more here. parameter detailsport Device name e.g. /dev/ttyUSB0 on GNU/Linux or COM3 on Windows.baudrate baudrate type: int default: 9600 standard values: 50, 75, 110, 134, 150, 200, 300, 600, 1200, 1800, 2400,4800, 9600, 19200, 38400, 57600, 115200 Python Serial Communication … Read more

Neo4j And Cypher Using Py2Neo Tutorial

Neo4j and Cypher using Py2Neo can be done by using python programming language. Learn more about this useful function in this guide. Neo4j and Cypher using Py2Neo: Adding Nodes to Neo4j Graph results = News.objects.todays_news()for r in results:article = graph.merge_one(“NewsArticle”, “news_id”, r)article.properties[“title”] = results[r][‘news_title’]article.properties[“timestamp”] = results[r][‘news_timestamp’]article.push()[…] Adding nodes to the graph is pretty simple,graph.merge_one is … Read more

How To Call Python From C# Program Tutorial

The documentation provides a sample implementation of the inter-process communication between C# and Python scripts. Learn about Call Python from C# here. Call Python from C#: Python script to be called by C# application import sysimport jsonload input arguments from the text file filename = sys.argv[ 1 ]with open( filename ) as data_file: input_args = … Read more

Basic Curses With Python Tutorial

It is important to understand Basic Curses with Python which is another important aspect of python programming. Learn more about it here. Basic Curses with Python: The wrapper() helper function While the basic invocation above is easy enough, the curses package provides the wrapper(func, …) helper function. The example below contains the equivalent of above: … Read more

Python vs JavaScript – Similarities & Differences In Syntax With Meaning

enum in python

Similarities in syntax, Di erences in meaning: Python vs. JavaScript helps in understanding the two programming languages. Learn more about it here. It sometimes happens that two languages put different meanings on the same or similar syntax expression. When the both languages are of interest for a programmer, clarifying these bifurcation points helps to better … Read more