Skip to content

PyDataLondon/meetup_ballot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pydata London Meetup Ballot

Test Coverage

Used to select members for the next meetup.

Installation

  • Create a virtualenv
  • Install Requirements
$ pip install -r requirements.txt
  • Following environment variables needs to be set:
  • MEETUP_KEY (Meetup.com API Access Token)
  • MEETUP_URLNAME (e.g.: PyData-London-Meetup)
  • MAX_RSVPS (e.g. 200)
  • RSVP_BEFORE_DAYS (Number of days before which RSVP should start)
  • TRAVIS_EVENT_TYPE (If the script is running on travis)
  • MANUAL_BALLOT_TRIGGER (If the script is manually triggered)

Getting the Access Token

An access token will usually expire after an hour.

Thanks to https://github.com/simonbrownsb/meetupdata for figuring out the above method.

Usage Example

PYTHONPATH='.' python meetup_ballot/ballot.py

Ballot Runner Cron

The ballot runs via Travis' cron which is scheduled for everyday, which checks if the next event is within environment variable RSVP_BEFORE_DAYS days. If that evaluates to True then it runs the ballot.

NOTE: The ballot will run if it runs via Travis cron or build is manually triggered and the MANUAL_BALLOT_TRIGGER environment variable is set to True.

Testing

  • Running Tests
$ pytest

Contributing

  • Feel free to suggest changes via Pull requests.

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •