Skip to main content

Proton Mail API

Examples

from proton.client import ProtonMail

username, password = ..., ...
proton = ProtonMail(username, password)

passphrase = 'myPass'
pk = 'privatekey.test123@proton.me-6fdhskjgfd7s98gdgre87gregrjdhrgd7897g898.asc'
proton.gpg_import(pk, passphrase=passphrase)

sessions = proton.sessions()

salts = proton.salts()

users = proton.users()

inbox = proton.inbox()

cid = inbox['Conversations'][0]['ID']
conversation = proton.decrypt_conversation(cid)

decrypted_inbox = proton.inbox_decrypted()

user_settings = proton.user_settings()

mail_settings = proton.mail_settings()

calendar_settings = proton.calendar_settings()

timezones = proton.timezones()

addresses = proton.addresses()

info = proton.info()

directory = proton.calendar_directory()

version = proton.version()

plans = proton.plans()

calendar_directory = proton.calendar_directory()

proton.revoke_all_sessions()

Metadata

Release files for proton-api-client 0.0.8

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

Source distribution (sdist)

Source distribution for proton-api-client 0.0.8
File Size Uploaded Provenance
proton-api-client-0.0.8.tar.gz 22.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for proton-api-client 0.0.8
File Interpreter ABI Platform
proton_api_client-0.0.8-py3-none-any.whl Python 3 none any Details

Total release size: 46.5 kB

Release files / proton-api-client-0.0.8.tar.gz

Download URL proton-api-client-0.0.8.tar.gz
Size 22.6 kB
Tags Source
SHA-256 checksum
How to use checksums
9580fd196d9d146103c19e42df262746d6ac62a5f7fa10af8b9cef99a0ea574b
BLAKE2b-256 checksum
How to use checksums
9bea1db1c942e3c0dbf984e07c59f2f18d5cf6bd37c86fdd38f3cfe3d5fb75aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / proton_api_client-0.0.8-py3-none-any.whl

Download URL proton_api_client-0.0.8-py3-none-any.whl
Size 23.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e8eeea640a126dc8050080d7f7ebed594b7a4b5f2321d35292c65993530df89d
BLAKE2b-256 checksum
How to use checksums
e5168d084f271146dd11cf66b0e9b1825061f16e5f1d5840c04ccb4f63bd3b38
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Security for proton-api-client 0.0.8

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.

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