/pysrc

Collected Python code samples from using and teaching the language. Scroll down to see the README!

Primary LanguagePythonOtherNOASSERTION

pysrc

This is a set of Python code examples that I have worked on over the years. Updated infrequently, and quite at random! Do a git pull every few months to keep up.

N.B. Some examples are known to fail, either because Python moved on and I didn’t, or, because you need to pip install some module that isn’t installed on your system.

Contents are reasonably well predicted by the directory name:

  • database

  • datasci - Data Science, ML, etc.

  • datetime

  • graphics

  • gui - graphical user interfaces

  • i18n - internationalization

  • io - input and output

  • io_pathlib - new improved IO

  • iteration - the iterator protocol & friends

  • lang - basic language stuff

  • numbers - numerics

  • oo - Object Orientation

  • otherlang - Dealing with other languages

  • packaging - Should be called modules probably

  • regex - you need this.

  • sidebyside - comparison with some other programming languages

  • starting - getting started

  • strings

  • structure - collections / data structuring

  • testing

  • textproc

  • www

  • xml

There is also a runall script which tries to do what it says on the tin, but may well need editing for your environment.