GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - BostonPython/fingertools: Ad-hoc programs I had lying around

BranchesTags
Open more actions menu

Latest commit

 

History

41 Commits
41 Commits

Folders and files

NameName
Last commit message
Last commit date
.gitignore
.gitignore
 
 
README.rst
README.rst
 
 
attendees.py
attendees.py
 
 
gend.py
gend.py
 
 
genders.json
genders.json
 
 
meetup.py
meetup.py
 
 
members.py
members.py
 
 
pizza.py
pizza.py
 
 
scrape_attendees.py
scrape_attendees.py
 
 
test_gend.py
test_gend.py
 
 

Repository files navigation

Boston Python miscellaneous code

These are small programs I've used to help run Boston Python.

pizza.py calculates how much pizza to order.

attendees.py uses meetup.py to access the Meetup API to find out about RSVPs to events. My most famous use of this is to raffle prizes at events:

$ python2.7
>>> event_id = "234430898"  # From the meetup.com url for the event
>>> from attendees import yes
>>> people = yes(event_id)
opening 'https://api.meetup.com/2/rsvps?event_id=234430898&key=xyzzy'
>>> len(people)
105
>>> import random
>>> random.shuffle(people)
>>> winners = iter(people)
>>> print(next(winners))
Gabriel Morell
>>> print(next(winners))
Amr Elhagary
>>> print(next(winners))
Oscar Arevalo-Toledo
>>> print(next(winners))
Albert Putnam

To run this, you'll need to create a keys.py file, with the API key you get from the Meetup API page:

API_KEY = "93d17c424e4f535877437b5a3a4150"

About

Ad-hoc programs I had lying around

Resources

Readme
Activity
Custom properties

Stars

11 stars

Watchers

4 watching

Forks

2 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.