Showing posts with label Python. Show all posts
Showing posts with label Python. Show all posts

May 2, 2015

QNAP/Linux - Python Programming 05 (Learn by Doing: Scan and Parse Files: Part 1)

Many Apps for NAS systems need to process file data within local file systems or from remote file servers. This "Learn by Doing" sets the problem:
  • Scan files (local or remote) 
  • Store metadata folders and files into database
  • Extract metadata and text information from specific file types, such as PDF, Office, images, etc.
User manual of fscan.py

Apr 26, 2015

QNAP/Linux - Python Programming 04 (Learn by Doing: Crawl & Parse Pages)

In the first blog "Python Programming 01 (Setup and the First Program)", I use geturl.py as an example to write the first Python program. However, searching "url" or "http" from PyPI - the Python Package Index, your will find hundreds relevant packages in the result. How to select adequate packages for doing jobs, there is no deterministic answer.
https://pypi.python.org/pypi/urllib3/1.10.1

Apr 19, 2015

QNAP/Linux - Python Programming 03 (Command-Line Arguments)

Arguments of C console application are defined in array "argv", in which the count of arguments is "args". Python supports more flexible method to write console applications with Unix-like "option -" and "long option: --".
python -h (or --help)

QNAP/Linux - Python Programming 02 (Basic Syntax)

Python Programming of Tutorialspoint is a good playground for beginners of Python programming. From basic to advance tutorials, including useful resources, it is easy peasy lemon squeezy for beginners to learn from this site. Following contents only shows something important that I think you should notice. If you have no time to completely review all pages of the site, just "learn by doing" from available python source codes.

Dec 7, 2014

Python Programming - 01. Introduction

Python (programming language) is a widely used general-purpose, high-level programming language. Its design philosophy emphasizes code readability, and its syntax allows programmers to express concepts in fewer lines of code than would be possible in languages such as C++ or Java. The language provides constructs intended to enable clear programs on both a small and large scale.
http://en.wikipedia.org/wiki/Python_(programming_language)#mediaviewer/File:Python_logo_and_wordmark.svg