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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file meeting_availability-1.0.4.tar.gz.
File metadata
- Download URL: meeting_availability-1.0.4.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e05a3da62d68ac3a5e86f56620a51a4bbbf204602f0a0451328c38082c49063b
|
|
| MD5 |
8c8c7e0d8e8766467f87adbedbb11164
|
|
| BLAKE2b-256 |
7c241ef73e76cb772399bc24dabd2bfe3bc56b440d34d6ae6e7d151d51d56c2a
|
File details
Details for the file meeting_availability-1.0.4-py3-none-any.whl.
File metadata
- Download URL: meeting_availability-1.0.4-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c3aa97eec8fbdbda97c1dfda5baade2343738cb0c0ac4d580eb88959e995fb4a
|
|
| MD5 |
c0907740b892a6cc8500dd3f79d73314
|
|
| BLAKE2b-256 |
e7d23d94572363b1ec68ddf008ed660bc8ef1945e7b4ce3aa9656cb70e948c71
|