PyExchangeExchange 的 Python 开发包
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()
评论
redis-pyRedis 的 Python 开发包
redis-py 这是 Redis 目前最成熟的 Python 客户端开发包。示例代码:>&g
redis-pyRedis 的 Python 开发包
0
aioredisRedis 的 Python 开发包
aioredis是基于Asyncio实现的异步Redis的Python开发包。要求:Python3.3+asyncioorPython3.4+hiredis示例代码:import asyncioimp
aioredisRedis 的 Python 开发包
0
elasticsearch-pyElasticSearch 的 Python 开发包
elasticsearch-py是ElasticSearch官方出品的Python客户端开发包。示例代码:>>> from datetime import datetime>&
elasticsearch-pyElasticSearch 的 Python 开发包
0
elasticsearch-pyElasticSearch 的 Python 开发包
elasticsearch-py 是 ElasticSearch 官方出品的 Python 客户端开
elasticsearch-pyElasticSearch 的 Python 开发包
0
py-leveldbLevelDB的Python开发包
py-leveldb 是 Google 的 K/V 数据库 LevelDB 的 Python 客户端
py-leveldbLevelDB的Python开发包
0