Skip to main content

Easily create AI Agents in MS Outlook

Project description

You've Got Mail

Easily build AI Agents in MS Outlook.

cover_image

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


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.1.tar.gz (25.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yougotmail-0.0.1-py3-none-any.whl (34.3 kB view details)

Uploaded Python 3

File details

Details for the file yougotmail-0.0.1.tar.gz.

File metadata

  • Download URL: yougotmail-0.0.1.tar.gz
  • Upload date:
  • Size: 25.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for yougotmail-0.0.1.tar.gz
Algorithm Hash digest
SHA256 a8facb1742c32a2bfc59a97c5d0811d1f1e8773095a021604cdc4e75b328e613
MD5 0284fd06f34ff2cec02b216d228cf747
BLAKE2b-256 909fb27b472f060bb23ea97b0122d8f47e36e03cc0ad205e1d53b5bbc0c1db84

See more details on using hashes here.

File details

Details for the file yougotmail-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: yougotmail-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 34.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for yougotmail-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 45f2c99a3a2f3515f323785abbb91b6b04bd1ff725748ef0d742c3946f67d678
MD5 6a7cdb541d7278f5b0b71050f98e0028
BLAKE2b-256 1d1b7000aa5d1ab1b0c1580b328e15381d466ccc1971a4427f7246a650ebad03

See more details on using hashes here.

Supported by

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