Code Monkey home page Code Monkey logo

python-office365's Introduction

Code Climate

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:

from office365api import Mail
auth = ('[email protected]', '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 = ('[email protected]', 'YourPassword')
message = Message(Subject='Heads up', Body='First automated alarm.',
    From=Recipient(EmailAddress=EmailAddress(Name='Full Name', Address='[email protected]')),
    ToRecipients= [Recipient.from_email(email='[email protected]')]
    )
    
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.

Inbox - Mail.inbox

A collection of emails in . This is used when ever you are requesting an email or emails. It can be set with filters so that you only download the emails which your script is interested in.

python-office365's People

Contributors

dmikov avatar brantw avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.