Code Monkey home page Code Monkey logo

seatingchart-helper's Introduction

About

This project is a helper package to arrange tables for a wedding. We recommend assigning guests to tables at random.

If you don’t want to do that, we provide functionality for reading from csv, exporting to csv and moving people to and from tables. Documentation can be found in the test file.

To get started, clone this repository and run python -m pip install -e . to install it.

Use

First, format your guest list in a CSV /path/to/guestlist.csv with 4 columns and no header

| Mr. and Dr. Brown  | 2 | Group 1 |         |
| Mr. and Mrs. Smith | 2 | Group 2 | Table 1 |
| Mr. Wilson         | 1 | Group 1 |         |
| Ms. Williamson     | 3 |         |         |

In python your workflow is as follows

from tables import Arrangement
arr = Arrangement(csv_path='/path/to/guestlist')
arr.display()

You can then run arr.seat_all() to randomly place your guests at existing tables. If you need more tables, you can run arr.create_table(table_name). The arrangement class also has add, remove and merge methods for more fine-grained control.

seatingchart-helper's People

Contributors

seth-rothschild avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

frankfanslc

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.