Git Product home page Git Product logo

giftexchangeselector's Introduction

#Secret-Santa style name selection for gift exchanges.# Note that this project is currently optimized for Widman family Christmas 2012. It is not (yet) written to be fully general, so many parameters and methods may be unclear.

This is intended to create a randomized secret santa gift exchange given names and emails as parameters. It can accept any number of recipients per giver desired (though no error checking exists yet for impossible situations). An email will be sent to each giver with the name(s) of the person(/people) they should get gifts for. This email may include a wish list for the person. A text file will be created in the same folder that includes giver:receiver pairs in case anyone loses their email and a lookup needs to be done.

##To Run:##

  1. Download/clone ChristmasNamesMainModule.py, ChristmasNamesSelectorModule.py, and EmailModule.py

  2. Create your own constants.py file including an address list dictionary, an optional dictionary for any people you would like to not give to each other, an optional list for people who want to give to each other, username and password for a gmail address to send emails from, a last name to be used in emails, and a DEBUG = False line:

     address_list = {'name': ['[email protected]','[email protected]'],
                 'second-name': ['[email protected]'], ...}
    
     exclude_list = {"name1":"name2", "name2":"name1"}
    
     preferences = [{("name1","name2"): ["name3", "name4", "name5", "name6"]}]
     (special case for 2012 requests)
    
     username = email_username
     password = email_password
    
     last_name = lastname
    
     DEBUG = False  (if False, does not print debug info)
    
  3. If you wish to use wish lists, include them as text files with the name of the person requesting (+.txt) in the same folder. Also update the EmailModule to set wish_list to True.

  4. Run the ChristmasNamesMainModule.py

  5. Check your email.

giftexchangeselector's People

Contributors

kristenwidman avatar paulnicholsen27 avatar

Watchers

 avatar  avatar

Forkers

paulnicholsen27

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.