GithubHelp home page GithubHelp logo

py365's Introduction

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
data
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="[email protected]")
g365.users.createUser(newUser=user)

API implemented (Basic)

-[x] Create User -[x] Get User -[x] Update user -[X] Send email -[X] Guest Invite

What is next? (ATM)

-[ ] Online excel API -[ ] Get Planner tasks -[ ] Add unit testings -[ ] Replace ADAL with MSAL for authentication -[ ] Check for version with APIs -[ ] Check for sufficient authority (permissions) before calling an API -[ ] Check response type and handle errors

py365's People

Contributors

dependabot[bot] avatar dudi-oncld avatar dudil avatar

Stargazers

 avatar  avatar

Watchers

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