Skip to content

Instantly share code, notes, and snippets.

@JaimieMurdock
Last active January 31, 2018 20:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JaimieMurdock/40fab1ce8fea8d06d3279955a6090548 to your computer and use it in GitHub Desktop.
Save JaimieMurdock/40fab1ce8fea8d06d3279955a6090548 to your computer and use it in GitHub Desktop.
Starting Python Resources

Intro to Python

Assumes a start with Python 3.6. Python 2.7 is end of life in 2020, so new projects should avoid it.

Important PEPs

PEPs (Python Enhancement Proposals) are how new features are added to the language and are very useful for learning why things are the way they are.

Some also offer style guidance.

Useful modules

  • General
    • collections -- especially defaultdict, which helps avoid KeyError issues when populating a collection
    • pickle -- Python-native serialization. For export, better practice to use JSON via json.dump(obj), but useful when in-memory objects take a long time to build.
    • re
  • Script Management
  • Web
    • json
    • urllib
    • bottle -- pip install bottle -- nanoframework, useful for quick mockups
    • flask -- pip install flask -- microframework
  • Threading and Process Management
  • Testing

Useful non-stdlib modules

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment