Suppose you have implemented or downloaded a python script "pytest.py" which, for example, will print out a list of files/folders on your system. Now you want to execute the script under Windows environments. This will show you a step-by-step instruction.
When I just started to learn Python, I was wondering why other Pythonists don't put all the import statements right at the beginning of the Python files as in Java which in my mind was much clearer and more structured. Since my background was from Java and moved to Python by jumping into Django, it took me some time to realise this. However, I'm not saying this is totally right. It's basically just my take after doing a number of projects in Python and Django. Hence, you're welcome to comment and give your own thoughts on this.
Eclipse is a powerful IDE which lets you develop your applications with different programming languages such as Java, PHP and Python as well. As it claims to be, Eclipse is a continuing effort aiming to provide a universal toolset for development. In this tutorial, I'm going to show you how to get your first Python project work using Eclipse.
This is a quick tutorial on how to connect to MySQL Server using Python.
If you are having a MySQL server and want to develop a standalone application to connect to the server remotely, you might experience this connection problem: OperationalError - 1044 - Access denied for user. This post shows you the answer to the problem regardless of the programming language you are using such as Python, Java or .Net.
This article shows you how to get access to SugarCRM's features using Web Services such as SOAP and REST for Python. Doing this gives you the ability to write custom code with greater flexibility.
This shows you how to use Python to access data in CSV files.
This shows you how to collect sub folders' name from the current folder.
This snippet helps you move or copy sub folders and files of a specified folder to another location.
This post shows you how to parse and then insert images into MS Word documents.
This snippet helps you filter files in a directory.
This snippet helps you remove parts of an image.
This post shows you how to copy and rename files in Python.
This script shows you an example how to rename multiple files with a similar structure in Python.
This post shows you how to get the list of files/folders from an FTP server.
This code snippet helps you load all the components of a module.
This snippet shows you one of the approaches to implement switch statements in python.
This short post shows you various ways to get the last directory's name in a path by Python
This example shows you how to parse command line arguments using argparse library.
This short example shows you how to use Fabric library
This Python snippet can help you do backup for MySQL database remotely and then download it to your local hard drive.
This short tutorial shows you how to connect to ODBC using Python
This article explains how you can edit bookmarks in Word documents using Python.
This script helps you reduce sizes of all images in the current folder in which the script is run.
This post shows you a way to automate backing up your PostgreSQL database on your server and to download it to your local machine.
This short article shows you very simple examples on how to use logging features in Python.
This short example shows you how to send emails through Python
This piece of code helps you monitor server uptime and downtime.
This article shows you how to handle excel files using Python