Skip to main content

Proton Mail API

Project description

Proton Mail API

Examples

from proton.client import ProtonMail

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

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

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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: proton-api-client-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 a78be785e2b6b6031385695c4fc96392316c3123b977b89345c69418de8a660f
MD5 243d2e9236b554542597522243cc523a
BLAKE2b-256 26219e6dfc60b1dbfed9523ff6ee66c08c75e5f90041d9062de61c40c4623c82

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for proton_api_client-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3b1bdf3a1025da6f7d6829e6ee01b9127079d79725532ec9e02ebf94855400c4
MD5 d1ce9b44499240c9b41ba968cc5a94ad
BLAKE2b-256 81e9530abc56db50777f7590f03fb19c89645a9e769d6c2e06e2c271b0e6cab3

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