Skip to main content

Exchange Web Services client library

This module is an ORM for your Exchange mailbox, providing Django-style access to all your data. It is a platform-independent, well-performing, well-behaving, well-documented, well-tested and simple interface for communicating with an on-premise Microsoft Exchange 2007-2016 server or Office365 using Exchange Web Services (EWS). Among other things, it implements autodiscover, and functions for searching, creating, updating, deleting, exporting and uploading calendar, mailbox, task, contact and distribution list items.

image image image image xscode

Teaser

Here's a short example of how exchangelib works. Let's print the first 100 inbox messages in reverse order:

from exchangelib import Credentials, Account

credentials = Credentials("john@example.com", "topsecret")
account = Account("john@example.com", credentials=credentials, autodiscover=True)

for item in account.inbox.all().order_by("-datetime_received")[:100]:
    print(item.subject, item.sender, item.datetime_received)

Documentation

Documentation is available at https://ecederstrand.github.io/exchangelib/. Source code documentation is available at https://ecederstrand.github.io/exchangelib/exchangelib/.

Metadata

Release files for exchangelib 5.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for exchangelib 5.6.0
File Size Uploaded Provenance Actions
exchangelib-5.6.0.tar.gz 212.0 kB Without provenance Details for exchangelib-5.6.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for exchangelib 5.6.0
File Interpreter ABI Platform Actions
exchangelib-5.6.0-py3-none-any.whl Python 3 none any Details for exchangelib-5.6.0-py3-none-any.whl

Total release size: 455.8 kB

Release files / exchangelib-5.6.0.tar.gz

Download URL exchangelib-5.6.0.tar.gz
Size 212.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a65cffba3b4d1166347059e88b1f11eae9a9d70119c3ad9b33389d7258f6181c
BLAKE2b-256 checksum
How to use checksums
79809b4ceca48c3b8b7f33cd8164e0a03ae2410fb313309ac681850dc46bc502
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Release files / exchangelib-5.6.0-py3-none-any.whl

Download URL exchangelib-5.6.0-py3-none-any.whl
Size 243.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7d843ff56f41f3a1eaff73e4bbb4ecce21957aa52b65bef01440414ffbba377e
BLAKE2b-256 checksum
How to use checksums
8aaed99bf36bcf539f6ee270a1b6c478ad8f40f6469a77d9c0986f8def646369
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Security for exchangelib 5.6.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

5.6.0 This release

2 release files No provenance

1.5.1

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page