Coder Social home page Coder Social logo

trevorhobenshield / proton-api-client Goto Github PK

View Code? Open in Web Editor NEW
14.0 2.0 1.0 45 KB

Proton Mail API

Home Page: https://pypi.org/project/proton-api-client

License: GNU General Public License v3.0

Python 99.78% Shell 0.22%
api automation bot email protonmail scraper

proton-api-client's Introduction

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

proton-api-client's People

Contributors

trevorhobenshield avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

xaries88

proton-api-client's Issues

Trying to install and getting version conflict in pip

ERROR: Ignored the following versions that require a different python version: 0.0.0 Requires-Python >=3.10.10; 0.0.1 Requires-Python >=3.10.10; 0.0.2 Requires-Python >=3.10.10; 0.0.3 Requires-Python >=3.10.10; 0.0.4 Requires-Python >=3.10.10; 0.0.5 Requires-Python >=3.10.10; 0.0.6 Requires-Python >=3.10.10; 0.0.7 Requires-Python >=3.10.10; 0.0.8 Requires-Python >=3.10.10
ERROR: Could not find a version that satisfies the requirement proton-api-client (from versions: none)
ERROR: No matching distribution found for proton-api-client

I have Python 3.12.0 as the selected interpreter in vscode

python setup.py egg_info did not run successfully.

Received this error when I tried pip install proton-api-client:

Collecting proton-api-client
  Using cached proton_api_client-0.0.7-py3-none-any.whl (23 kB)
Collecting bcrypt
  Using cached bcrypt-4.0.1-cp36-abi3-win_amd64.whl (152 kB)
Collecting python-gnupg
  Using cached python_gnupg-0.5.0-py2.py3-none-any.whl (18 kB)
Collecting pyopenssl
  Using cached pyOpenSSL-23.2.0-py3-none-any.whl (59 kB)
Collecting selectolax
  Using cached selectolax-0.3.14-cp311-cp311-win_amd64.whl (2.0 MB)
Requirement already satisfied: orjson in c:\users\saki\appdata\local\programs\python\python311\lib\site-packages (from proton-api-client) (3.9.1)
Requirement already satisfied: httpx in c:\users\saki\appdata\local\programs\python\python311\lib\site-packages (from proton-api-client) (0.24.1)
Requirement already satisfied: tqdm in c:\users\saki\appdata\local\programs\python\python311\lib\site-packages (from proton-api-client) (4.65.0)
Collecting uvloop
  Using cached uvloop-0.17.0.tar.gz (2.3 MB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [6 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "C:\Users\Saki\AppData\Local\Temp\pip-install-lmtmd4vp\uvloop_5f7afc69bafc46219b04f0bd50e588d3\setup.py", line 8, in <module>
          raise RuntimeError('uvloop does not support Windows at the moment')
      RuntimeError: uvloop does not support Windows at the moment
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.