Skip to main content

A module that allows you to know available time blocks for two people to meet.

Project description

Meeting Availability

This module allows you to know available time blocks for two people to meet.

Installation

$ pip install meeting_availability

Usage

from meeting_availability import get_available_time_blocks

calendar1 = {
  'meetings': [
    ['09:00', '10:30'],
    ['10:30', '11:30'],
    ['12:00', '13:00'],
    ['16:00', '18:00']
  ],
  'bounds': ['8:00', '20:00']
}

calendar2 = {
  'meetings': [
    ['10:00', '11:30'],
    ['12:30', '14:30'],
    ['14:30', '15:00'],
    ['16:00', '17:00']
  ],
  'bounds': ['8:30', '19:30']
} 

meeting_duration = 35

available_time_blocks = get_available_time_blocks(
    calendar1,
    calendar2,
    meeting_duration
)

print(available_time_blocks)

# prints
# [['15:00', '16:00'], ['18:00', '19:30']]

Testing locally

Clone the repository:

$ git clone https://github.com/adriwicked/meeting-availability.git

Run the tests from inside the project:

$ cd meeting-availability
$ python -m unittest discover -s . -p "*_test.py"

Project details


Download files

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

Source Distribution

meeting_availability-1.0.4.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

meeting_availability-1.0.4-py3-none-any.whl (4.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page