Metadata-Version: 2.1
Name: proton-api-client
Version: 0.0.8
Summary: Proton Mail API
Home-page: https://github.com/trevorhobenshield/proton-api-client
Author: Trevor Hobenshield
Author-email: trevorhobenshield@gmail.com
Keywords: proton api client async search automation bot scrape mail email
Requires-Python: >=3.10.10
Description-Content-Type: text/markdown
License-File: LICENSE



### Proton Mail API

#### Examples

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

```
