Skip to main content

Tests Status Coverage Status

django-o365

Simple EmailBackend for Django to work with Microsoft Exchange Online, via o365 package.

Development

Install uv, then create the environment and run the checks:

uv sync --dev
uv run ruff format --check .
uv run ruff check .
uv run pytest tests/

Supported authentication

Currently only OAuth2.0 authentication with credentials workflow is supported.

Configuration

Following Django settings need to be added:

EMAIL_O365_TENANT_ID = "my-client"
EMAIL_O365_CLIENT_ID = "my-client-id"
EMAIL_O365_CLIENT_SECRET = "super-secret"
EMAIL_O365_SENDER = "mysender@example.com"

# set backend
EMAIL_BACKEND = "django_o365.backend.O365EmailBackend"

Badges

Badges have been created with genbadge:

# pytest
uv run pytest --junitxml=reports/junit/junit.xml --html=reports/junit/report.html
genbadge tests

# coverage
coverage run -m pytest tests/
coverage xml
coverage html
genbadge coverage

Versioning

This project adheres to semantic versioning and uses bump-my-version. The config is in .bumpversion.toml.

Metadata

Release files for django-o365 0.5.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 django-o365 0.5.0
File Size Uploaded Provenance Actions
django_o365-0.5.0.tar.gz 6.1 kB With provenance Details for django_o365-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-o365 0.5.0
File Interpreter ABI Platform Actions
django_o365-0.5.0-py3-none-any.whl Python 3 none any Details for django_o365-0.5.0-py3-none-any.whl

Total release size: 10.8 kB

Release files / django_o365-0.5.0.tar.gz

Download URL django_o365-0.5.0.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
6bf480d7e59c54311a1ff2461864403dfca66d4572c1c4a0ebc627e9d212ac95
BLAKE2b-256 checksum
How to use checksums
7593d315e77a01a5beca34ee89170bded4efaa03ac5c95a18ab3708d746569b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

Release files / django_o365-0.5.0-py3-none-any.whl

Download URL django_o365-0.5.0-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8a26455ce34d899773225b94ef555365682f427818add3f7a993442adbaf2b38
BLAKE2b-256 checksum
How to use checksums
833248dcd8e14c4c0c19a286f5734ef3ae16de4d612513fef92e0bf22325ea28
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

Security for django-o365 0.5.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for django_o365-0.5.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

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.

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