Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Python library for working with Microsoft Office 365

Project Description

Python-office365 - Office365 for your server

The objective of office365api is to make it easy to make scripts and
applications that are to be run against an Office 365 account.

If you wanted to script retrieving an email it could be as simple as:

.. code:: python

from office365api import Mail
auth = ('', 'YourPassword')
mail = Mail(auth=auth)
messages = mail.inbox.get_messages()

And sending an email like this.

.. code:: python

from office365api import Message, Mail
from office365api.model import Recipient, EmailAddress
auth = ('', 'YourPassword')
message = Message(Subject='Heads up', Body='First automated alarm.',
From=Recipient(EmailAddress=EmailAddress(Name='Full Name', Address='')),
ToRecipients= [Recipient.from_email(email='')]

m = Mail(auth=auth)


Currently writen against v 1.0 of outlook rest api, in the future v 2.0
will be added. May be even graph rest api. However probably as a
separate project.

Currently uses basic authentication. In a very near future will be
switching to OAuth2.

This commit have only Mail module.


Main class for working with emails in Office 365. You can use it to
perform access to different folders and may features exposed by REST

Release History

This version
History Node


History Node


History Node


History Node


History Node


Download Files

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

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(14.3 kB) Copy SHA256 Hash SHA256
Wheel 2.7 Aug 28, 2017
(7.5 kB) Copy SHA256 Hash SHA256
Source None Aug 28, 2017

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers