Category: Python

Text Processing in Python

My image
  • Author: David Mertz
  • Format: plain text
  • Price: free (hard copy available on Amazon)

Text Processing in Python describes techniques for manipulation of text using the Python programming language. At the broadest level, text processing is simply taking textual information and doing something with it. This might be restructuring or reformatting it, extracting smaller bits of information from it, or performing calculations that depend on the text. Text processing is arguably what most programmers spend most of their time doing.

Because Python is clear, expressive, and object-oriented it is a perfect language for doing text processing, even better than Perl. As the amount of data everywhere continues to increase, this is more and more of a challenge for programmers.

This book is not a tutorial on Python. It has two other goals: helping the programmer get the job done pragmatically and efficiently; and giving the reader an understanding – both theoretically and conceptually – of why what works works and what doesn’t work doesn’t work. Mertz provides practical pointers and tips that emphasize efficient, flexible, and maintainable approaches to the text processing tasks that working programmers face daily.

Chapters include:

  • Python Basics
  • Basic String Operations
  • Regular Expressions
  • Parsers And State-Machines
  • Internet Tools And Techniques
  • A Selective And Impressionistic Short Review Of Python
  • A Data Compression Primer
  • Understanding Unicode
  • A State-Machine For Adding Markup To Text

http://gnosis.cx/TPiP/

Introduction to Programming using Python

My image
  • Author: Katja Schuerer, Corinne Maufrais, Catherine Letondal, Eric Deveaud, Marie-Agnes Petit
  • Format: PDF
  • Price: free

The objective of this course is to teach programming concepts to biologists. It is thus aimed at people who are not professional computer scientists, but who need a better control of computers for their own research.

Chapters include:

  • Introduction
  • Variables
  • Statements, expressions and functions
  • Communication with outside
  • Program execution
  • Strings
  • Branching and Decisions
  • Defining Functions
  • Collections
  • Nested data structures
  • Repetitions
  • Exceptions
  • Functions II
  • Modules and packages in Python
  • Recursive functions
  • Files
  • Scripting
  • Object-oriented programming
  • Object-oriented design

Get the book: Introduction to Programming using Python

Think Python: How to Think Like a Computer Scientist

My image
  • Author: Allen B. Downey
  • Format: online HTML, PDF
  • Price: free (hard copy available on Amazon)

Think Python is an introduction to Python programming for beginners. It starts with basic concepts of programming, and is carefully designed to define all terms when they are first used and to develop each new concept in a logical progression. Larger pieces, like recursion and object-oriented programming are divided into a sequence of smaller steps and introduced over the course of several chapters.

Some examples and exercises are based on Swampy, a Python package written by the author to demonstrate aspects of software design, and to give readers a chance to experiment with simple graphics and animation.

Chapters include:

  • The way of the program
  • Variables, expressions and statements
  • Functions
  • Case study: interface design
  • Conditionals and recursion
  • Fruitful functions
  • Iteration
  • Strings
  • Case study: word play
  • Lists
  • Dictionaries
  • Tuples
  • Case study: data structure selection
  • Files
  • Classes and objects
  • Classes and functions
  • Classes and methods
  • Inheritance
  • Case study: Tkinter
  • Debugging
  • Analysis of Algorithms
  • Lumpy

http://www.greenteapress.com/thinkpython/
Buy this book on Amazon: http://amzn.to/1HVCzyB

Dive Into Python 3

My image
  • Author: Mark Pilgrim
  • Format: PDF, online HTML, archived HTML
  • Price: free

Dive Into Python 3 covers Python 3 and its differences from Python 2. Compared to Dive Into Python, it’s about 20% revised and 80% new material.

Chapters include:

  • What’s New in “Dive Into Python 3”
  • Installing Python
  • Your First Python Program
  • Native Datatypes
  • Comprehensions
  • Strings
  • Regular Expressions
  • Closures & Generators
  • Classes & Iterators
  • Advanced Iterators
  • Unit Testing
  • Refactoring
  • Files
  • XML
  • Serializing Python Objects
  • HTTP Web Services
  • Case Study: Porting chardet to Python 3
  • Packaging Python Libraries
  • Porting Code to Python 3 with 2to3
  • Special Method Names
  • Where to Go From Here
  • Troubleshooting

http://getpython3.com/diveintopython3/

A Byte of Python

My image
  • Author: Swaroop C H
  • Format: PDF, online HTML
  • Price: free

‘A Byte of Python’ is a free book on programming using the Python language. It serves as a tutorial or guide to the Python language for a beginner audience. If all you know about computers is how to save text files, then this is the book for you.

Chapters include:

  • Introduction
  • Installation
  • First Steps
  • Basics
  • Operators and Expressions
  • Control Flow
  • Functions
  • Modules
  • Data Structures
  • Problem Solving
  • Object Oriented Programming
  • Input Output
  • Exceptions
  • Standard Library
  • More
  • What Next

http://www.swaroopch.com/notes/Python