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
Release history Release notifications | RSS feed
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.7.tar.gz
(22.6 kB
view details)
Built Distribution
File details
Details for the file proton-api-client-0.0.7.tar.gz
.
File metadata
- Download URL: proton-api-client-0.0.7.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7eec43f99260eb99c1dfb1dc03bba8a4c5f972cc2d1a4d2bfec28f6569006607 |
|
MD5 | 93583a4aa4e219111e8173509aa12ad1 |
|
BLAKE2b-256 | 8f3cf46df98ebb1835807c1e437bd8bd795e00382b052592f236f6e75a0087be |
File details
Details for the file proton_api_client-0.0.7-py3-none-any.whl
.
File metadata
- Download URL: proton_api_client-0.0.7-py3-none-any.whl
- Upload date:
- Size: 23.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4f8faca1c912612178666547b176311d3053c9612ae16f33818adfbd683f457 |
|
MD5 | 934993c69bc217b614ee931865b976bc |
|
BLAKE2b-256 | b745bc6f1f7ad18b676c99620312613e21dd7f907505dbb21911378b1d836645 |