Skip to main content

A meeting scheduler package

Project description

Meeting Scheduler

A Python library for scheduling team meetings.

Installation

$ pip install meeting_scheduler

Usage

from meeting_scheduler import scheduler

# example inputs
people = [
  {
    "name": "Kyle",
    "meetingTimes": [
      "13:30:00",
      "14:30:00",
      "18:00:00"
    ]
  },
  {
    "name": "Paul",
    "meetingTimes": [
      "07:00:00",
      "09:00:00",
      "13:30:00",
      "15:00:00",
      "15:30:00"
    ]
  },
  {
    "name": "Alex",
    "meetingTimes": [
      "08:00:00",
      "09:30:00",
      "12:30:00",
      "15:00:00"
    ]
  },
  {
    "name": "Luis",
    "meetingTimes": [
      "09:00:00",
      "13:30:00",
      "15:00:00",
      "15:30:00"
    ]
  },
  {
    "name": "Jairo",
    "meetingTimes": [
      "08:00:00",
      "09:00:00",
      "18:00:00"
    ]
  },
  {
    "name": "Sonya",
    "meetingTimes": [
      "08:00:00",
      "12:30:00",
      "13:30:00",
      "15:30:00"
    ]
  }
]

office_hours = {
  "startTime": "08:00:00",
  "endTime": "17:00:00"
}

lunch_hours = {
  "startTime": "12:00:00",
  "endTime": "13:00:00"
}

availability = scheduler.find_availability(people, office_hours, lunch_hours)

print(availability)
# prints
# {
#   "08:00:00": [
#     "Kyle",
#     "Paul",
#     "Luis"
#   ],
#   "08:30:00": [
#     "Kyle",
#     "Paul",
#     "Alex",
#     "Luis",
#     "Jairo",
#     "Sonya"
#   ],
#   "09:00:00": [
#     "Kyle",
#     "Alex",
#     "Sonya"
#   ],
#   "09:30:00": [
#     "Kyle",
#     "Paul",
#     "Luis",
#     "Jairo",
#     "Sonya"
#   ],
#   "10:00:00": [
#     "Kyle",
#     "Paul",
#     "Alex",
#     "Luis",
#     "Jairo",
#     "Sonya"
#   ],
#   "10:30:00": [
#     "Kyle",
#     "Paul",
#     "Alex",
#     "Luis",
#     "Jairo",
#     "Sonya"
#   ],
#   "11:00:00": [
#     "Kyle",
#     "Paul",
#     "Alex",
#     "Luis",
#     "Jairo",
#     "Sonya"
#   ],
#   "11:30:00": [
#     "Kyle",
#     "Paul",
#     "Alex",
#     "Luis",
#     "Jairo",
#     "Sonya"
#   ],
#   "13:00:00": [
#     "Kyle",
#     "Paul",
#     "Alex",
#     "Luis",
#     "Jairo",
#     "Sonya"
#   ],
#   "14:00:00": [
#     "Kyle",
#     "Paul",
#     "Alex",
#     "Luis",
#     "Jairo",
#     "Sonya"
#   ],
#   "14:30:00": [
#     "Paul",
#     "Alex",
#     "Luis",
#     "Jairo",
#     "Sonya"
#   ],
#   "15:30:00": [
#     "Kyle",
#     "Alex",
#     "Jairo"
#   ],
#   "15:00:00": [
#     "Kyle",
#     "Jairo",
#     "Sonya"
#   ],
#   "16:00:00": [
#     "Kyle",
#     "Paul",
#     "Alex",
#     "Luis",
#     "Jairo",
#     "Sonya"
#   ],
#   "16:30:00": [
#     "Kyle",
#     "Paul",
#     "Alex",
#     "Luis",
#     "Jairo",
#     "Sonya"
#   ]
# }

Testing locally

Clone the repository:

$ git clone https://github.com/wesyoung9987/meetingscheduler.git

Run the tests from inside the project:

$ cd meetingscheduler
$ python -m unittest discover

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for meeting-scheduler, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size meeting_scheduler-0.0.3-py3-none-any.whl (5.6 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size meeting_scheduler-0.0.3.tar.gz (4.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page