Skip to main content

Proton Mail API

Project description

Proton Mail API

Examples

from proton.client import ProtonMail

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

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

salts = proton.salts()

users = proton.users()

inbox = proton.inbox()

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

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()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

proton-api-client-0.0.3.tar.gz (21.7 kB view details)

Uploaded Source

Built Distribution

proton_api_client-0.0.3-py3-none-any.whl (23.0 kB view details)

Uploaded Python 3

File details

Details for the file proton-api-client-0.0.3.tar.gz.

File metadata

  • Download URL: proton-api-client-0.0.3.tar.gz
  • Upload date:
  • Size: 21.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for proton-api-client-0.0.3.tar.gz
Algorithm Hash digest
SHA256 1a38ed8ebf1be0c7e9fd732816b3cd35431cf13315c3ddf7e346da4e240f1a65
MD5 31bea62c7e60db1a5a52b5ec4dfd9f23
BLAKE2b-256 a30452a8d89be5933a11036fe9720818b5e959ceadd91edf7302d93324fa8071

See more details on using hashes here.

File details

Details for the file proton_api_client-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for proton_api_client-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d094bc3f02d2ecca59d54349e5bbe15f7927938675b7d6f9a5ee5e6537a1f8ad
MD5 2db3ea90d621ca0bc26b665b76806301
BLAKE2b-256 4505eddd0a20c9c5eccbc8d74bf32d6a11178e6c63050416605a4334526a15b8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page