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)


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

proton.revoke_all_sessions()

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.4.tar.gz (21.8 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: proton-api-client-0.0.4.tar.gz
  • Upload date:
  • Size: 21.8 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.4.tar.gz
Algorithm Hash digest
SHA256 68c91c35897c55dce5791614bbea70dfb147ab8c17c8f98c4f2719c0c75a1602
MD5 78841b03dc4ebb34c5a168874af28fd8
BLAKE2b-256 852977dcd05363d02120e74bb78a8c1e78e5455f1dbb239ab4daba959d2945ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for proton_api_client-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 365ef948823cb4eab41bbdea3ef3c07143a468b5cfcc8e16b39ad563059c29d0
MD5 2d54d6416871d48a5cb758b9e532eca6
BLAKE2b-256 306d69a18dddee84cf2d5e2aeeff91ee81e32dd621e0ed672a6dfdce84825584

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