Skip to main content

Python library for working with Microsoft Office 365

Project description

When I started making this library I was looking for something that would provide a simple interface to an office365 mailbox. I was creating a system that would allow people send an email to our printer without having to require they install drivers or be inside the office firewall (important for students). As I found working with the office API to be fairly easy, I quickly built up solid general use library for working with office 365.

The objective here is to make it easy to make utilities that are to be run against an office 365 account. for example, the code for sending an email is:

from O365 import Message

authenticiation = (‘YourAccount@office365.com’,’YourPassword’)

m = Message(auth=authenticiation)

m.setRecipients(‘reciving@office365.com’)

m.setSubject(‘I made an email script.’)

m.setBody(‘Talk to the computer, cause the human does not want to hear it any more.’)

m.sendMessage()

That’s it. making and sending emails and events is now very simple and straight forward. I’ve used it for emailing the printer and creating a overview of our car booking system. simple, easy, but still in development. Any suggestions or advice are quite welcome at the projects github page: https://github.com/Narcolapser/python-o365

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

O365-0.6.9.tar.gz (12.4 kB view hashes)

Uploaded Source

Supported by

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