Skip to main content

Python-office365 - Office365 for you 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:

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

And sending an email like this.

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

m = Mail(auth=auth)
m.send_message(message)

Gotchas

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.

Mail

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 api.

Metadata

Release files for Office365Api-27 0.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Office365Api-27 0.0.7
File Size Uploaded
Office365Api-27-0.0.7.tar.gz 6.5 kB Details

Release files / Office365Api-27-0.0.7.tar.gz

Download URL Office365Api-27-0.0.7.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
c05076325da279c1b672702af13db6bafa775a4576a889d54788ac92f17dd9a8
BLAKE2b-256 checksum
How to use checksums
8ce931599893a3c93f49920bbaee4f75cd2d17fed34f4ec0b86ad00cc486e36d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.7 This release

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page