TeCoEd (Teaching Computing Education)
  • Home
    • Freelance
  • Python
    • Learn Python >
      • Python Modules
    • Python Programs >
      • Higher or Lower
      • Magic Calculator
      • Password Checker
      • Python Pit
    • What's News App
    • Pixels to Cells
    • Python Mosaics
    • Python OCR
    • L-1-AM
    • Web Scraping >
      • Scraping Trains
    • Weather App
    • Snakes and Windows
    • Python Web Server >
      • Flask
    • Python Picks
  • Raspberry Pi
    • All About the Pi
    • Getting Started
    • Remote Desktop and VNC
    • Static IP Address
    • Sonic Pi >
      • 3.14
    • Twitter Feed >
      • Tweepy
    • Android & Pi >
      • Advanced Apps
      • Odds
    • CRON
    • Pick Your Own
  • Pi Hardware
    • Pi HATS >
      • Sense Hat Hacks
      • AstroPi HAT
      • Unicorn-HAT >
        • Unicorn Alphabet Disco
        • Uni Codes / Programs
      • Skywriter
      • Piano HAT
    • STS Pi
    • Pi Camera >
      • Pi-Cam, Python & Email >
        • Time Lapse
      • Pi Noir
    • Pipsta >
      • Flask, Input & Printers
    • Raspberry Pi Power >
      • Energenie IR power
    • Pibrella
    • Distance Sensor
    • LCD Screen
    • Pi-Tooth
    • Robot Arm
    • PiGlow
    • PiFM
    • Accelerometer
    • PiFace >
      • Installing PiFace >
        • Python Commands
  • Pi-Hacks
    • Pi Glue Gun Hack
    • Blinkt!
    • Sonic Pixels
    • R2D2
    • Get to the chopper
    • Astro Bird
    • Twitter Translator
    • Hacking a Robot
    • Nature_Box >
      • Best Nature Photos
    • Wearable Tech >
      • Project New York
      • P.N.Y Part 2 Health
      • P.N.Y Part 3 Games
      • P.N.Y Part 4 Translation
    • Dino-Tweet
    • Other Links
  • Pi-Hacks 2
    • Darth Beats
    • Twitter Keyword Finder
    • Crimbo Lights Hack
    • Xmas Elf
    • Halloween 2016
    • Halloween Hack 2015
    • Socrative Zombie
    • Voice Translation
    • The Blue-Who Finder
    • GPIO, Twitter
    • Pi Chat Bot >
      • Dictionary Definitions
    • PiGlow & Email
    • Pibrella Alarm System
    • SMS with Python >
      • Spooking a Mobile
  • Minecraft
    • Minecraft API
    • Minecraft Sweeper
    • PiGlove: Minecraft Power Up
    • Minecraft Photo-booth
    • Rendering Pixels
    • Speed Cube
    • Lucky Dip
  • Computing
    • Why Computing?
    • Can You Compute
    • micro:bit
    • Coding Resources
    • Learn to Code >
      • Coding with iPads
      • Apps Creation Tools
      • sKratchInn
      • Sound Editing
    • Cheat Sheets
    • Theory
    • HOUR OF CODING
    • BEBRAS Computing Challange
    • Computer Facts
    • Free Software and Links
  • Downloading
  • Contact Me
    • Drone Hacks
    • Hologram Machine
    • AI

Crython


Crython is a simple module that enables you to schedule code to execute at various times, every second, every 10 seconds, minute, day or hour.

Using pip type:
sudo pip install crython

A simple example code is shown below, this prints the statement "example of crython" out every second, 

import crython

@crython.job(seconds='*')
def example():
      print "example of crython"

crython.tab.start()

Basic time settings:
seconds:  (seconds='*')
every four seconds:  (seconds='*/4')
every minute:  (second='0')

@yearly / @annually
Run once a year at midnight, January 1st
@monthly
Run once a month at midnight in the morning of the first of the month
@weekly
Run once a week at midnight in the morning of Sunday
@daily
Run once a day at midnight
@hourly
Run once an hour at the beginning of the hour
@minutely
Run once a minute at the beginning of the minute
@reboot
Run once at startup



 Twython


Allows you to access twitter via Python and the Twitter API:  Requires your own account and authorisation codes and tokens.  

Install the python setup tools and pip, use this to install the Twython module that will allow the communication between the twitter API and Python.

sudo apt-get install python-setuptools 
sudo easy_install pip 

sudo pip install twython

see link for more details 

Tweepy


Tweepy is the official Python Twitter module that can be combined with the Twitter API tokens and used to update users timelines and return search data,

sudo apt-get install python-setuptools 
sudo easy_install pip 
sudo pip install tweepy

or
git clone https://github.com/tweepy/tweepy.git 
python setup.py install


WinSound


coming soon

Espeak


espeak is a text to speak translation module that works across a variety of platforms.  The voice is fairly robotic but can be coded to produce a more natural sound.
sudo apt-get install espeak python-espeak

PyPNG


This module enables Python to work with PNG files, importing and exporting them,  More details here 

Flask


Flask is an web framework that turns your Raspberry Pi into a webserver,  to install Flask you may first need to install , 

In the LX Terminal:
sudo apt-get install python-pip

Once installed use pip to then install Flask
sudo pip install flask.

EasyGUI


easyGUI is a simple starter module for programming and coding with GUIs with Python.  

Download the module here
(easyGUI  is no longer begin developed as of Effective March 6, 2013, but still works!)

Mechanize


Mechanize library is used for automating interaction with websites, automatically stores and sends cookies, follows redirects, and can follow links and submit forms. 

PyBluez


PyBluez is an effort to create python wrappers around system Bluetooth resources to allow Python developers to easily and quickly create Bluetooth applications

MP3 Player


MP3 123 is a simple MP3 player for the Python, from the terminal type, sudo apt-get install mpg321 

PIP


PIP enables you to easily install Python libraries, first use the code below to install pip:
sudo apt-get install python-pip python-dev
sudo pip install -U pip
then to say install flash type,
sudo pip install flask
Easy!
✕