### 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()
```
Raw data
{
"_id": null,
"home_page": "https://github.com/trevorhobenshield/proton-api-client",
"name": "proton-api-client",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.10.10",
"maintainer_email": "",
"keywords": "proton api client async search automation bot scrape mail email",
"author": "Trevor Hobenshield",
"author_email": "trevorhobenshield@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/9b/ea/1db1c942e3c0dbf984e07c59f2f18d5cf6bd37c86fdd38f3cfe3d5fb75aa/proton-api-client-0.0.8.tar.gz",
"platform": null,
"description": "\n\n### Proton Mail API\n\n#### Examples\n\n```python\nfrom proton.client import ProtonMail\n\nusername, password = ..., ...\nproton = ProtonMail(username, password)\n\npassphrase = 'myPass'\npk = 'privatekey.test123@proton.me-6fdhskjgfd7s98gdgre87gregrjdhrgd7897g898.asc'\nproton.gpg_import(pk, passphrase=passphrase)\n\nsessions = proton.sessions()\n\nsalts = proton.salts()\n\nusers = proton.users()\n\ninbox = proton.inbox()\n\ncid = inbox['Conversations'][0]['ID']\nconversation = proton.decrypt_conversation(cid)\n\ndecrypted_inbox = proton.inbox_decrypted()\n\nuser_settings = proton.user_settings()\n\nmail_settings = proton.mail_settings()\n\ncalendar_settings = proton.calendar_settings()\n\ntimezones = proton.timezones()\n\naddresses = proton.addresses()\n\ninfo = proton.info()\n\ndirectory = proton.calendar_directory()\n\nversion = proton.version()\n\nplans = proton.plans()\n\ncalendar_directory = proton.calendar_directory()\n\nproton.revoke_all_sessions()\n\n```\n",
"bugtrack_url": null,
"license": "",
"summary": "Proton Mail API",
"version": "0.0.8",
"project_urls": {
"Homepage": "https://github.com/trevorhobenshield/proton-api-client"
},
"split_keywords": [
"proton",
"api",
"client",
"async",
"search",
"automation",
"bot",
"scrape",
"mail",
"email"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "e5168d084f271146dd11cf66b0e9b1825061f16e5f1d5840c04ccb4f63bd3b38",
"md5": "0e4ae806f6462fdf6d0dbcc5b1905695",
"sha256": "e8eeea640a126dc8050080d7f7ebed594b7a4b5f2321d35292c65993530df89d"
},
"downloads": -1,
"filename": "proton_api_client-0.0.8-py3-none-any.whl",
"has_sig": false,
"md5_digest": "0e4ae806f6462fdf6d0dbcc5b1905695",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10.10",
"size": 23837,
"upload_time": "2023-07-10T18:10:54",
"upload_time_iso_8601": "2023-07-10T18:10:54.180924Z",
"url": "https://files.pythonhosted.org/packages/e5/16/8d084f271146dd11cf66b0e9b1825061f16e5f1d5840c04ccb4f63bd3b38/proton_api_client-0.0.8-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "9bea1db1c942e3c0dbf984e07c59f2f18d5cf6bd37c86fdd38f3cfe3d5fb75aa",
"md5": "75e089246fb06059f04703955832f6b7",
"sha256": "9580fd196d9d146103c19e42df262746d6ac62a5f7fa10af8b9cef99a0ea574b"
},
"downloads": -1,
"filename": "proton-api-client-0.0.8.tar.gz",
"has_sig": false,
"md5_digest": "75e089246fb06059f04703955832f6b7",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10.10",
"size": 22639,
"upload_time": "2023-07-10T18:10:55",
"upload_time_iso_8601": "2023-07-10T18:10:55.625037Z",
"url": "https://files.pythonhosted.org/packages/9b/ea/1db1c942e3c0dbf984e07c59f2f18d5cf6bd37c86fdd38f3cfe3d5fb75aa/proton-api-client-0.0.8.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-07-10 18:10:55",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "trevorhobenshield",
"github_project": "proton-api-client",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "proton-api-client"
}