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

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

Uploaded Source

Built Distribution

proton_api_client-0.0.8-py3-none-any.whl (23.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: proton-api-client-0.0.8.tar.gz
  • Upload date:
  • Size: 22.6 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.8.tar.gz
Algorithm Hash digest
SHA256 9580fd196d9d146103c19e42df262746d6ac62a5f7fa10af8b9cef99a0ea574b
MD5 75e089246fb06059f04703955832f6b7
BLAKE2b-256 9bea1db1c942e3c0dbf984e07c59f2f18d5cf6bd37c86fdd38f3cfe3d5fb75aa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for proton_api_client-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 e8eeea640a126dc8050080d7f7ebed594b7a4b5f2321d35292c65993530df89d
MD5 0e4ae806f6462fdf6d0dbcc5b1905695
BLAKE2b-256 e5168d084f271146dd11cf66b0e9b1825061f16e5f1d5840c04ccb4f63bd3b38

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