Apache License 2.0

项目介绍

O365/python-o365 是一个托管在 GitHub 上的开源项目,主要使用 Python 编写,采用 Apache License 2.0 许可证,目前获得 1.9k 个 Star、419 次 Fork。

仓库全名
O365/python-o365
开源许可证
Apache License 2.0
Star 数
1.9k
Fork 数
419
未关闭 Issue
55

README 摘要

O365 - Microsoft Graph and related APIs made easy This project aims to make interacting with the Microsoft api, and related apis, easy to do in a Pythonic way. Access to Email, Calendar, Contacts, OneDrive, Sharepoint, etc. Are easy to do in a way that feel easy and straight forward to beginners and feels just right to seasoned python programmer. The project is currently developed and maintained by alejcas. Core…

完整内容见 GitHub 原始 README 或本页 。

常见问题

python-o365 用什么语言开发?

主要使用 Python 编写,采用 Apache License 2.0 许可证,目前有 1.9k 个 Star。

python-o365 可以免费商用吗?

仓库采用 Apache License 2.0 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 python-o365 的源码?

可以直接克隆仓库:git clone https://github.com/O365/python-o365.git,默认分支为 master;安装与运行步骤见仓库 README。

python-o365 最近还在维护吗?

仓库最近一次更新为 2 天前,当前有 55 个未关闭 Issue;Star 数为 1.9k,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

A simple python library to interact with Microsoft Graph and Office 365 API

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

语言占比

Python
Shell

Release

README

Downloads PyPI PyPI pyversions

This project aims to make interacting with the Microsoft api, and related apis, easy to do in a Pythonic way. Access to Email, Calendar, Contacts, OneDrive, Sharepoint, etc. Are easy to do in a way that feel easy and straight forward to beginners and feels just right to seasoned python programmer.

The project is currently developed and maintained by alejcas.

Core developers

We are always open to new pull requests!

Detailed docs and api reference on O365 Docs site

Quick example on sending a message:

from O365 import Account

credentials = ('client_id', 'client_secret')

account = Account(credentials)
m = account.new_message()
m.to.add('[email protected]')
m.subject = 'Testing!'
m.body = "George Best quote: I've stopped drinking, but only while I'm asleep."
m.send()

Why choose O365?

  • Almost Full Support for MsGraph Rest Api.
  • Good Abstraction layer for the Api.
  • Full oauth support with automatic handling of refresh tokens.
  • Automatic handling between local datetimes and server datetimes. Work with your local datetime and let this library do the rest.
  • Change between different resource with ease: access shared mailboxes, other users resources, SharePoint resources, etc.
  • Pagination support through a custom iterator that handles future requests automatically. Request Infinite items!
  • A query helper to help you build custom OData queries (filter, order, select and search).
  • Modular ApiComponents can be created and built to achieve further functionality.

This project was also a learning resource for us. This is a list of not so common python idioms used in this project:

  • New unpacking technics: def method(argument, *, with_name=None, **other_params):
  • Enums: from enum import Enum
  • Factory paradigm
  • Package organization
  • Timezone conversion and timezone aware datetimes
  • Etc. (see the code!)

评论

暂无评论