Category: Miscellenous

  • GUIs

    n this chapter, you will learn about some popular Python IDEs (Integrated Development Environment), and how to use IDE for program development. To use the scripted mode of Python, you need to save the sequence of Python instructions in a text file and save it with .py extension. You can use any text editor available on the operating…

  • Tools Utilities

    The standard library comes with a number of modules that can be used both as modules and as command-line utilities. The dis Module The dis module is the Python disassembler. It converts byte codes to a format that is slightly more appropriate for human consumption. You can run the disassembler from the command line. It compiles the given script…

  • Further Extensions

    Any code that you write using any compiled language like C, C++, or Java can be integrated or imported into another Python script. This code is considered as an “extension.” A Python extension module is nothing more than a normal C library. On Unix machines, these libraries usually end in .so (for shared object). On Windows machines,…

  • Sending Email

    Sending Email in Python You can send email in Python by using several libraries, but the most common ones are smtplib and email.  The “smtplib” module in Python defines an SMTP client session object that can be used to send mail to any Internet machine with an SMTP or ESMTP listener daemon. The email “package” is a library…

  •  JSON

    JSON in Python JSON in Python is a popular data format used for data exchange between systems. The json module provides functions to work with JSON data, allowing you to serialize Python objects into JSON strings and deserialize JSON strings back into Python objects. JSON (JavaScript Object Notation) is a lightweight data interchange format that is easy…

  • Docstrings

    Docstrings in Python In Python, docstrings are a way of documenting modules, classes, functions, and methods. They are written within triple quotes (“”” “””) and can span multiple lines. Docstrings serve as convenient way of associating documentation with Python code. They are accessible through the __doc__ attribute of the respective Python objects they document. Below are the different ways…

  • Command Line Arguments

    Python Command Line Arguments Python Command Line Arguments provides a convenient way to accept some information at the command line while running the program. We usually pass these values along with the name of the Python script. To run a Python program, we execute the following command in the command prompt terminal of the operating…

  • GUI Programming

    Python provides various options for developing graphical user interfaces (GUIs). The most important features are listed below. There are many other interfaces available, which you can find them on the net. Tkinter Programming Tkinter is the standard GUI library for Python. Python when combined with Tkinter provides a fast and easy way to create GUI…

  • XML Processing

    XML is a portable, open-source language that allows programmers to develop applications that can be read by other applications, regardless of operating system and/or developmental language. What is XML? The Extensible Markup Language (XML) is a markup language much like HTML or SGML. This is recommended by the World Wide Web Consortium and available as…

  • CGI Programming

    The Common Gateway Interface, or CGI, is a set of standards that define how information is exchanged between the web server and a custom script. The CGI specs are currently maintained by the NCSA. What is CGI? Web Browsing To understand the concept of CGI, let us see what happens when we click a hyper…