PyClass: Difference between revisions

From Noisebridge
Jump to navigation Jump to search
(Synchronized wiki with git repo with pypandoc.)
(34 intermediate revisions by 18 users not shown)
Line 1: Line 1:
=== PSAs and Events ===
[https://meetup.com/noisebridge MeetUp Schedule]


'''PSA 10-1-14:''' PyClass starts at 700 PM, try to come a few minutes earlier. We want to finish up by nine so people can hack or catch their preferred train home. You can come at any time, but YMMV.
=== git ===


'''PSA 8-19-14:''' The [https://noisebridge.net/wiki/PyClass noisebridge wiki] and [https://github.com/PyClass/PyClass-lesson-plans github readme] files have the same information and updates.
https://github.com/noisebridge/PythonClass
 
 
If you have feedback on class, please put it here: [http://goo.gl/oMhxkv]


'''PSA 8-16-14:''' The new curriculum for the Noisebridge PyClass is a crash course in the Python standard library, also touching on modules that are popular but not quite part of the standard modules. Scroll down to see the course list.


=== Scheduled Weekly Meeting Times ===
=== Scheduled Weekly Meeting Times ===
Line 11: Line 13:
We set up the space at 6:45 PM - try to arrive early to help if you are able to.
We set up the space at 6:45 PM - try to arrive early to help if you are able to.


* Tuesday 7:00 - 9:00 PM PST - 'Turing' Classroom
* Monday 7:00 - 9:00 PM PST - 'Church' Classroom
* Wednesday 7:00 - 9:00 PM PST - 'Church' Classroom
* Thursday 7:00 - 9:00 PM PST - 'Church' Classroom - check the meetup page for topics


=== Mailing List ===
=== Mailing List ===
Line 18: Line 20:
Sign up for this to hear updates and conversations regarding the course!
Sign up for this to hear updates and conversations regarding the course!


[http://groups.google.com/group/pyclass PyClass-Discussion]
[https://www.noisebridge.net/mailman/listinfo/python Python & PyClass Mailing List]
 
The mailing list uses GNU Mailman and pipermail. To search archives you may find it helpful to download the archive .tar.gz (compressed) file and use regular expressions (grep) to search.
 
The Python Class Google Group Closed on Tuesday, November 3rd, 2015.


=== Class Description, Goals, and Ideal Student ===
=== Class Description, Goals, and Ideal Student ===
Line 28: Line 34:
To best experience the course, spend a short time reviewing the course materials before you come in. If you wish to know this week's courses, please join the mailing list and send an email out to PyClass@googlegroups.com
To best experience the course, spend a short time reviewing the course materials before you come in. If you wish to know this week's courses, please join the mailing list and send an email out to PyClass@googlegroups.com


The ideal student for this course can grasp the following code (feel free to use web resources to look up anything you don't understand):
Lessons are [https://github.com/PyClass/PyClassLessons available on Github].


<source lang="python">letter_frequency_dict = {}
===== The 'ideal student' for this course can grasp the following code: =====
word = &quot;noisebridge&quot;
 
(Feel free to use web resources to look up anything you don't understand)
 
    letter_frequency_dict = {}
    word = "noisebridge"
   
   
for letter in word:
    for letter in word:
    times = letter_frequency_dict.get(letter, 0)
        times = letter_frequency_dict.get(letter, 0)
    times += 1
        times += 1
    letter_frequency_dict[letter] = times</source>
        letter_frequency_dict[letter] = times
If you are new to python or programming in general here are some excellent resources:<br />-[http://learnpythonthehardway.org/ Learn Python the Hardway] - great guide for total beginner<br />-[http://www.swaroopch.com/notes/python/ Byte of Python] - nice guide for total beginner and new to python<br />-[https://docs.python.org/2/tutorial/ Excellent Official Python Tutorial - 2.7.8] - great for new to python<br />-[http://shop.oreilly.com/product/0636920028154.do Learning Python 5th edition (also at sf lib)] - A comprehensive guide to the language and its uses<br />-[http://pymotw.com/2/ Python Module of the Week] - Learning the standard library by example<br />-[https://www.python.org/doc/ The docs themselves! 2.x for this class] - Learn what is and how to use the standard library
 
===== We use the [http://www.criticalthinking.org/pages/socratic-teaching/606 Socratic Method] =====


There are many, many good resources for learning the language of Python and how to do awesome things with it. Those listed above are just a few based on personal experience and strong recommendations.
====== A Socratic questioner should ======


=== Course List ===
# keep the discussion focused
# keep the discussion fact based*
# stimulate the discussion with probing questions
# periodically summarize what has and what has not been dealt with and/or resolved
# draw as many students as possible into the discussion.


The order of the following courses has not yet been determined.
* [https://en.wikipedia.org/wiki/Intellectual_responsibility intellectually responsible] can be effectively replaced with 'fact based' for our needs.


Please email PyClass@googlegroups.com if you want to know what courses are coming this week!
=== New Student Reading ===


# [https://github.com/PyClass/PyClass-lesson-plans/blob/master/1_json_module.md JSON format, Python Types, and the JSON Module]<br />
If you are new to python or programming in general here are some excellent resources:<br />
# [https://github.com/PyClass/PyClass-lesson-plans/blob/master/5_control_statements.md Control Flow and Exceptions]<br />
-[http://learnpythonthehardway.org/ Learn Python the Hardway] - great guide for total beginner<br />
# [https://github.com/PyClass/PyClass-lesson-plans/blob/master/3_functional_and_control.md itertools, and Functional Programming]<br />
-[http://www.swaroopch.com/notes/python/ Byte of Python] - nice guide for total beginner and new to python<br />
# [https://github.com/PyClass/PyClass-lesson-plans/blob/master/4_builtintypes_stringservices.md Built-in Types and String Services]<br />
-[https://docs.python.org/2/tutorial/ Excellent Official Python Tutorial - 2.7.8] - great for new to python<br />
# [https://github.com/PyClass/PyClass-lesson-plans/blob/master/10_rot13.md Coding a module: rot13]
-[http://shop.oreilly.com/product/0636920028154.do Learning Python 5th edition (also at sf lib)] - A comprehensive guide to the language and its uses<br />
# [https://github.com/PyClass/PyClass-lesson-plans/blob/master/6_socrata_matplotlib_workshop.md Matplotlib Workshop (using Socrata API]
-[http://pymotw.com/2/ Python Module of the Week] - Learning the standard library by example<br />
# [https://github.com/PyClass/PyClass-lesson-plans/blob/master/11_server_side_dev_flask.md Flask - Installfest &amp; Basics]
-[https://www.python.org/doc/ The docs themselves! 2.x for this class] - Learn what is and how to use the standard library
# [https://github.com/PyClass/PyClass-lesson-plans/blob/master/9_numbers.md Working with numbers in Python]
 
# [https://github.com/PyClass/PyClass-lesson-plans/blob/master/13_games.md Programming Mastermind (the game)]
There are many, many good resources for learning the language of Python and how to do awesome things with it. Those listed above are just a few based on personal experience and strong recommendations.
# [https://github.com/PyClass/PyClass-lesson-plans/blob/master/14_unittest.md Unit Testing and Python's unittest Module]
# [https://github.com/PyClass/PyClass-lesson-plans/blob/master/15_classy_OOP.md OOP in Python]
# [https://github.com/PyClass/PyClass-lesson-plans/blob/master/16_keywords_and_control_flow.md Keywords &amp; Control Flow]
# [https://github.com/PyClass/PyClass-lesson-plans/blob/master/17_polygon_abstraction.md Project: Calculate Angles of a Polygon]
# [https://github.com/PyClass/PyClass-lesson-plans/blob/master/18_unittesting_more.md Project: Unit testing our projects]
# [https://github.com/PyClass/PyClass-lesson-plans/blob/master/12_functions.md Functions]
# [https://github.com/PyClass/PyClass-lesson-plans/blob/master/2_git_module.md Git] - incomplete
# [https://github.com/PyClass/PyClass-lesson-plans/blob/master/3_functional_and_control.md Functional Programming in Python]
# [https://github.com/PyClass/PyClass-lesson-plans/blob/master/7_built-ins_and_idioms.md Some Idioms for Python Builtins]


=== OS / Environment / Versions ===
=== OS / Environment / Versions ===


This section is under development.
This section is under development.
[https://www.digitalocean.com/?refcode=1a1061eaf303 Digital Ocean $10 Credit]
[http://aws.amazon.com/free/ Amazon's AWS has a free tier that allows you 750 compute hours every month of their t2.micro instances for 12 months]
-Use EC2 to create an instance from the Ubuntu 12.04 AMI for the most well known and supported platform that will come with Python 2 installed


For the sake of our sanity we use Python 2 for this course.
For the sake of our sanity we use Python 2 for this course.
Line 78: Line 90:
'''We accept refugees using all operating systems. You will be politely prodded in the direction of solutions that are closer to posix standards: http://en.wikipedia.org/wiki/POSIX#Mostly_POSIX-compliant'''
'''We accept refugees using all operating systems. You will be politely prodded in the direction of solutions that are closer to posix standards: http://en.wikipedia.org/wiki/POSIX#Mostly_POSIX-compliant'''


Some routes:<br />1. Install a linux virtual machine on another computer using virtualbox.<br />2. Use the command line in your apple machine.<br />3. Explore POSIX for windows: http://en.wikipedia.org/wiki/POSIX#POSIX_for_Windows
Some routes:<br />
 
1. Install a linux virtual machine on another computer using virtualbox.<br />
Another critical tool is git:<br />''Windows: http://git-scm.com/download/win<br />''Mac: http://git-scm.com/download/mac<br />*Linux: (use your package manager)
2. Use the command line in your apple machine.<br />
 
3. Explore POSIX for windows: http://en.wikipedia.org/wiki/POSIX#POSIX_for_Windows
=== For Lesson Planners: ===
 
==== Some Modules to include ====
 
<ol start="5" style="list-style-type: decimal;">
<li>Numeric and Mathematical Modules, and Operators<br /></li>
<li>argparse, ConfigParser, and more - configuring your applications<br /></li>
<li>pip, virtualenv, packaging, versions, and inspect.<br /></li>
<li>Logging your applications: logging, logging.config, logging.handlers<br /></li>
<li>Exceptions and Debugging: Exception behavior, custom exceptions, pdb, cProfile, timeit, time, trace.<br /></li>
<li>os, sys, and io (Caution, here be Python 3, inside the io module)<br /></li>
<li>(potential for a unittest course)<br /></li>
<li>Built-in Functions</li></ol>


* Control Structures, itertools - Teddy<br />
Another critical tool is git:<br />
* requests<br />
''Windows: http://git-scm.com/download/win<br />
* urllib/urllib2<br />
''Mac: http://git-scm.com/download/mac<br />
* math<br />
*Linux: (use your package manager)
* ConfigParser<br />
* argparse<br />
* json<br />
* csv<br />
* time, datetime<br />
* os<br />
* sys<br />
* io<br />
* logging<br />
* decorators<br />
* Profile<br />
* subprocess (catchall replacement for system call libraries)<br />
* pdb<br />
* unittest<br />
* py.test<br />
* virtualenv<br />
* pip<br />
* packaging?<br />
* versions


==== Two approaches for course material building that should be blended ====
=== Free to all - please donate to Noisebridge! ===


# Modules Course - http://pymotw.com/2
The course is free although we recommend a donation to Noisebridge. Donations go to: https://www.noisebridge.net/wiki/Donate_or_Pay_Dues Recommended Donations: $15, $50, $200+ Recommended monthly donations: $10, $20, $40, $80+ / month
# Applications Course - http://newcoder.io/dataviz/part-0/

Revision as of 19:54, 24 September 2018

MeetUp Schedule

git

https://github.com/noisebridge/PythonClass


If you have feedback on class, please put it here: [1]


Scheduled Weekly Meeting Times

We set up the space at 6:45 PM - try to arrive early to help if you are able to.

  • Monday 7:00 - 9:00 PM PST - 'Church' Classroom
  • Thursday 7:00 - 9:00 PM PST - 'Church' Classroom - check the meetup page for topics

Mailing List

Sign up for this to hear updates and conversations regarding the course!

Python & PyClass Mailing List

The mailing list uses GNU Mailman and pipermail. To search archives you may find it helpful to download the archive .tar.gz (compressed) file and use regular expressions (grep) to search.

The Python Class Google Group Closed on Tuesday, November 3rd, 2015.

Class Description, Goals, and Ideal Student

The pace of the courses will be fast, and the materials will be available online 24/7. We plan to frequently repeat modules with new twists as we iterate over course materials.

A major PyClass goal is to break down the courses into independent units. In other words, you won't fall behind if you miss a week. Sounds good, right?

To best experience the course, spend a short time reviewing the course materials before you come in. If you wish to know this week's courses, please join the mailing list and send an email out to PyClass@googlegroups.com

Lessons are available on Github.

The 'ideal student' for this course can grasp the following code:

(Feel free to use web resources to look up anything you don't understand)

   letter_frequency_dict = {}
   word = "noisebridge"

   for letter in word:
       times = letter_frequency_dict.get(letter, 0)
       times += 1
       letter_frequency_dict[letter] = times
We use the Socratic Method
A Socratic questioner should
  1. keep the discussion focused
  2. keep the discussion fact based*
  3. stimulate the discussion with probing questions
  4. periodically summarize what has and what has not been dealt with and/or resolved
  5. draw as many students as possible into the discussion.

New Student Reading

If you are new to python or programming in general here are some excellent resources:
-Learn Python the Hardway - great guide for total beginner
-Byte of Python - nice guide for total beginner and new to python
-Excellent Official Python Tutorial - 2.7.8 - great for new to python
-Learning Python 5th edition (also at sf lib) - A comprehensive guide to the language and its uses
-Python Module of the Week - Learning the standard library by example
-The docs themselves! 2.x for this class - Learn what is and how to use the standard library

There are many, many good resources for learning the language of Python and how to do awesome things with it. Those listed above are just a few based on personal experience and strong recommendations.

OS / Environment / Versions

This section is under development.

Digital Ocean $10 Credit

Amazon's AWS has a free tier that allows you 750 compute hours every month of their t2.micro instances for 12 months

-Use EC2 to create an instance from the Ubuntu 12.04 AMI for the most well known and supported platform that will come with Python 2 installed

For the sake of our sanity we use Python 2 for this course.

Installing Python with The Hitchhiker’s Guide to Python!

Emergency Python Command Line: http://repl.it/languages/Python

We accept refugees using all operating systems. You will be politely prodded in the direction of solutions that are closer to posix standards: http://en.wikipedia.org/wiki/POSIX#Mostly_POSIX-compliant

Some routes:
1. Install a linux virtual machine on another computer using virtualbox.
2. Use the command line in your apple machine.
3. Explore POSIX for windows: http://en.wikipedia.org/wiki/POSIX#POSIX_for_Windows

Another critical tool is git:
Windows: http://git-scm.com/download/win
Mac: http://git-scm.com/download/mac

  • Linux: (use your package manager)

Free to all - please donate to Noisebridge!

The course is free although we recommend a donation to Noisebridge. Donations go to: https://www.noisebridge.net/wiki/Donate_or_Pay_Dues Recommended Donations: $15, $50, $200+ Recommended monthly donations: $10, $20, $40, $80+ / month