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
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
Metadata
Release files for django-o365 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| django_o365-0.3.0.tar.gz | 5.5 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_o365-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.0 kB
Release files / django_o365-0.3.0.tar.gz
| Download URL | django_o365-0.3.0.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6d4c1159d5049cd5a727a813a24b3c5c80882f59143315cbc09ee8d8c11bef05
|
|
BLAKE2b-256 checksum How to use checksums |
a10f8e74eb72c3a93e6732fed8b2175b1262aa34d7805d45ef2ed8c1576a69d1
|
| 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 Oct 21, 2026.
Transparency logRelease files / django_o365-0.3.0-py3-none-any.whl
| Download URL | django_o365-0.3.0-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2793f5c6fb54c3cdfab2dd0316aab820b306e855366f6118b0ec680c68dd9f0e
|
|
BLAKE2b-256 checksum How to use checksums |
1e77bfcc4610ec1b516b297709fb23e8468e8e6e3501ea9e36152474c7c7e9d1
|
| 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 Oct 21, 2026.
Transparency logSecurity for django-o365 0.3.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
All 2 files in this release have been uploaded with provenance metadata.
Attestation for django_o365-0.3.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 Oct 21, 2026.
Transparency logA 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.