Skip to main content

Python Library for App Development over MS Graph365

Project description

py365

What is it?

Python Library for App Development over MS Graph365

The concept is simple - look at the API docs and "copy" same structure.
While not very "pythonic" (I would guess - what does it mean anyway?),
it is easy to follow and go along: Just open the official API reference

What is it good for?

If you are using any of MS services you are getting to the point that automating things via code is the best way to unleash it true massive power.

While you can use .net core and other services, scripting with python is still very convenient if all you need is just small or serveless scripts.

Target Python - 3.6

Since this is the version used by Azure serverless engines.

How to use it?

$ pip install py365
# Graph365 is the main access point to the MS Graph
# rsc is the graph resources we use to feed the graph API
from py365 import Graph365, rsc

#Connect to the tenant
g365 = Graph365(appId=config['app_id'],
                appSecret=config['app_secret'],
                tenantId=config['tenant_id']) 

# Create new user 
# API doc: https://docs.microsoft.com/en-us/graph/api/user-post-users?view=graph-rest-1.0
user = rsc.User(displayName="Steve J", userPrincipalName="steve.j@consotco.com")
g365.users.createUser(newUser=user)

API implemented

  • [x] Create User (Partially)
  • [x] Get User (Partially)
  • [x] Update user (Partially)
  • [X] Send email
  • [X] Guest Invite

What is next? (ATM)

  • [ ] Modify online excel
  • [ ] Get Planner tasks
  • [ ] Add unit testings

Project details


Download files

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

Files for py365, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size py365-0.1.2-py3-none-any.whl (22.7 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size py365-0.1.2.tar.gz (9.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page