Exchange 的 Python 开发包 PyExchange

码农软件 · 软件分类 · 网络工具包 · 2019-02-25 12:11:45

软件介绍

PyExchange 是微软 Exchange 服务的 Python 封装。Python 应用可以使用它来与 Exchange 服务进行各种交互。该库目前还不完善,只支持日程信息。

示例代码:

from pyexchange import Exchange2010Service, ExchangeNTLMAuthConnection
from datetime import datetime
from pytz import timezone

URL = u'https://your.email.server.com.here/EWS/Exchange.asmx'
USERNAME = u'YOURDOMAIN\\yourusername'
PASSWORD = u"12345? That's what I have on my luggage!"

# Set up the connection to Exchange
connection = ExchangeNTLMAuthConnection(url=URL,
                                        username=USERNAME,
                                        password=PASSWORD)

service = Exchange2010Service(connection)


# You can set event properties when you instantiate the event...
event = service.calendar().new_event(
  subject=u"80s Movie Night",
  attendees=[u'your_friend@friendme.domain', u'your_other_friend@their.domain'],
  location = u"My house",
)

# ...or afterwards
event.start=timezone("US/Pacific").localize(datetime(2013,1,1,15,0,0))
event.end=timezone("US/Pacific").localize(datetime(2013,1,1,21,0,0))

event.html_body = u"""<html>
    <body>
        <h1>80s Movie night</h1>
        <p>We're watching Spaceballs, Wayne's World, and
        Bill and Ted's Excellent Adventure.</p>
        <p>PARTY ON DUDES!</p>
    </body>
</html>"""

# Connect to Exchange and create the event
event.create()

本文地址:https://www.codercto.com/soft/d/97.html

剑指Offer

剑指Offer

何海涛 / 电子工业出版社 / 2012-1 / 45.00元

《剑指Offer:名企面试官精讲典型编程题》剖析了50个典型的程序员面试题,从基础知识、代码质量、解题思路、优化效率和综合能力五个方面系统整理了影响面试的5个要点。全书分为7章,主要包括面试的流程,讨论面试流程中每一环节需要注意的问题;面试需要的基础知识,从编程语言、数据结构及算法三方面总结了程序员面试的知识点;高质量的代码,讨论影响代码质量的3个要素(规范性、完整性和鲁棒性),强调高质量的代码除......一起来看看 《剑指Offer》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具