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
Built Distribution
Close
Hashes for meeting_availability-1.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e05a3da62d68ac3a5e86f56620a51a4bbbf204602f0a0451328c38082c49063b |
|
MD5 | 8c8c7e0d8e8766467f87adbedbb11164 |
|
BLAKE2b-256 | 7c241ef73e76cb772399bc24dabd2bfe3bc56b440d34d6ae6e7d151d51d56c2a |
Close
Hashes for meeting_availability-1.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3aa97eec8fbdbda97c1dfda5baade2343738cb0c0ac4d580eb88959e995fb4a |
|
MD5 | c0907740b892a6cc8500dd3f79d73314 |
|
BLAKE2b-256 | e7d23d94572363b1ec68ddf008ed660bc8ef1945e7b4ce3aa9656cb70e948c71 |