Training, Open Source computer languages

PerlPHPPythonMySQLhttpd / TomcatTclRubyJavaC and C++LinuxCSS

Search our site for:
Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact

Related technical and longer articles
Python threads - a first example
Pattern Matching - a primer on regular Expressions
Interfacing applications to a MySQL database engine
Tips and short articles on this subject
Ignore case in Regular Expression
Regular expressions made easy - building from components
Turning objects into something you can store - Pickling (Python)
Buffering output - why it is done and issues raised in Tcl, Perl, Python and PHP
Sending an email from Python
Python - listing out the contents of all variables
Python 3000 - the next generation
Keeping your regular expressions simple
Python to MySQL
Splitting the difference
What and why for the epoch
Examples - Gadfly, NI Number, and Tcl to C interface
The elegance of Python
Well House Consultants
You are on the site of Well House Consultants who provide Open Source Training Courses and business hotel accommodation. You are welcome to browse and use our resources subject to our copyright statement and to add in links from your pages to ours.
Other subject areas - resources
Java Resources
Well House Manor Resources
Perl Resources
Python Resources
PHP Resources
Object Orientation and General topics
MySQL Resources
Linux / LAMP / Tomcat Resources
Well House Consultants Resources
Extras Resources
C and C++ Resources
Ruby Resources
Tcl/Tk Resources
Web and Intranet Resources
Additional Python Facilities - module Y115
Python is a wide-ranging language, so you won't have learnt everything about it on the early stages of your course. In this module, we assume fundamentals knowledge, and we go on to cover some of the more advanced features of the language that you'll need as you go on to write larger applications of the type that Python's so well suited to.

This topic is presented on public course Python Programming

Examples from our training material
bench.py   Find largest 5 files in or below a directory
cli.py   Report on command line parameters
cpick   Store an object via cPickle
cunpick   recover a pickled object
currency.py   Formatting a currency using Regular Expression
flist.py   All the files in a directory - which is largest?
gad1.py   Create a Gadfly (SQL) database and insert data
gad2.py   Running an SQL query - Gadfly
get_os.py   Get Operating System information
hostfilter.py   Extract host computer information - strip comments with regular expressions
mar_in.py   Loading in an object saved via the marshal module
mar_out.py   Marshal converts an object to a string
myuser.py   class for use in pickle / unpickle demo
penv.py   Python environment variables
psplit   Splitting at a string v splitting at a regular expression
python_mysql_web.py   Python, MySQL, CGI (Web) board
re1.py   Regular expression - first example
re2.py   Stripping spaces
re3.py   Find email addresses in line of text
re4.py   Regular expression split over several lines
refun   evaluating a net list in EQN format
relib.py   Some common regular expressions
retest.py   Regular Expression test engine
sql1.py   Hello MySQL World in Python
sql1a.py   MySQL to Python using MySQLdb
syscommand   Running an operating system command in Python
timestuff.py   Some time handling
Opentalk forum discussions related to this topic
Regular expressions findall or split
shuffling
Sorting a dictionary in Python
Python and SQL the DB API and Gadfly
Python Sort Order
Background information
Some modules are available for download as a sample of our material or under an Open Training Notes License for free download from http://www.training-notes.co.uk.
Topics covered in this module
Is Python compiled or interpreted?.
Regular expressions in Python.
Elements of a Python-style regular expression.
Anchors (Assertions).
Literal characters.
Character groups.
Counts.
Alternation.
Grouping.
Modifiers.
Some examples.
Methods available on Python regular expressions.
Some more examples and features of regular expressions.
Some popular regular expressions.
Running Python and system commands from within.
Handling dates and times in Python.
Pickling and shelving.
Accessing the environment from Python.
Talking to SQL databases from Python.
Course links
The following web pages are used as references / examples in this module

[Link] Python Database Modules
(at http://www.python.org/topics/database/modules.html)

[Link] SourceForge.net: Project Info - gadfly
(at http://sourceforge.net/projects/gadfly)

[Link] SourceForge.net: Project Info - MySQL for Python
(at http://sourceforge.net/projects/mysql-python)

We check these links from time to time with a spider written in PHP. Latest full check was on Saturday, 12th June 2004. Titles are extracted from the web pages listed.

Complete learning
If you are looking for a complete course and not just a information on a single subject, visit our Listing and schedule page.

Well House Consultants specialise in training courses in Python, Perl, PHP, and MySQL. We run Private Courses throughout the UK (and beyond for longer courses), and Public Courses at our training centre in Melksham, Wiltshire, England. It's surprisingly cost effective to come on our public courses - even if you live in a different country or continent to us.

We have a technical library of over 600 books on the subjects on which we teach. These books are available for reference at our training centre. Also available is the Opentalk Forum for discussion of technical questions.



WELL HOUSE CONSULTANTS LTD.: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 0800 043 8225 or 01225 708225 • FAX: 0845 8382 405 or 01225 707126 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho