Easily create AI Agents in MS Outlook
Project description
You've Got Mail
Easily build AI Agents in MS Outlook.
Quickstart
You will first need to set-up MS email credentials for your inbox. See Getting MS credentials and setting up your inbox for instructions. If you have those credentials, you can run the code below.
pip install yougotmail
from yougotmail import YouGotMail
inbox = "yougotmail@outlook.com" # the email address of the inbox on which you will be operating
ygm = YouGotMail(
client_id=os.environ.get("MS_CLIENT_ID"),
client_secret=os.environ.get("MS_CLIENT_SECRET"),
tenant_id=os.environ.get("MS_TENANT_ID")
)
emails = ygm.get_emails(
inbox=[inbox], # list of inboxes from which you're retrieving emails
range="last_30_minutes", # the time range
attachments=False # whether to include attachments in the emails or not
)
"""
Possible time ranges are:
- previous_year (year before the the current year, e.g. 2024 if the current year is 2025)
- previous_month
- previous_week
- previous_day
- last_365_days (last 365 days until the current date)
- last_30_days
- last_7_days
- last_24_hours
- last_12_hours
- last_8_hours
- last_hour
- last_30_minutes
- last_hour
- last_30_minutes
"""
Getting MS credentials and setting up your inbox
TBD
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
yougotmail-0.0.2.tar.gz
(26.5 kB
view details)
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 yougotmail-0.0.2.tar.gz.
File metadata
- Download URL: yougotmail-0.0.2.tar.gz
- Upload date:
- Size: 26.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b77247e2300dba4300300a75ed9dde4498c9771150838da8909ae5e80fa717a
|
|
| MD5 |
1f618825005bdd44367ede89620040e4
|
|
| BLAKE2b-256 |
66df229c5b4d67886bf2345b34cfeca79bcf98a4f274bf340861e9a005198be4
|
File details
Details for the file yougotmail-0.0.2-py3-none-any.whl.
File metadata
- Download URL: yougotmail-0.0.2-py3-none-any.whl
- Upload date:
- Size: 35.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eaf201e8cc2d71e901e664253e6dbf908efc7b4faf40fc4173c1cc2651e6b364
|
|
| MD5 |
a389651a8510b2c1ed26b29dc57197fe
|
|
| BLAKE2b-256 |
b33e4642cbac81d327f2e514dc744f41794d0dc3625f454adcfdd4d8156f4298
|