Skip to main content

proton-camoufox

Python-библиотека для работы с Proton Mail через Camoufox и Playwright. Поддерживает вход, регистрацию с ручным прохождением проверки, просмотр и поиск писем. Независимый проект, не связанный с Proton.

Установка

Требуется Python 3.10 или новее. После установки пакета загрузите браузер Camoufox:

py -m pip install proton-camoufox
py -m camoufox fetch

Для установки из исходного кода используйте py -m pip install .. Файл requirements.txt содержит зависимости проекта для установки из каталога исходников.

Быстрый старт

Перед запуском задайте переменные окружения PROTON_USERNAME и PROTON_PASSWORD. Например, в PowerShell:

$env:PROTON_USERNAME = "example@proton.me"
$env:PROTON_PASSWORD = "ваш-пароль"

Пример входа и чтения последних писем:

import os

from proton_camoufox import ProtonMailClient

with ProtonMailClient(
    username=os.environ["PROTON_USERNAME"],
    password=os.environ["PROTON_PASSWORD"],
    headless=False,
) as client:
    client.login(allow_manual_verification=True)
    for message in client.list_messages(limit=10):
        print(message.subject)

Примеры

Примеры находятся в папке examples/ исходного проекта:

  • examples/login.py — вход и вывод тем последних писем;
  • examples/register.py — регистрация;
  • examples/proxy.py — вход через прокси с необязательной авторизацией на прокси.

Логин и пароль передаются через переменные окружения PROTON_USERNAME и PROTON_PASSWORD. Пример запуска в PowerShell:

$env:PROTON_USERNAME = "example@proton.me"
$env:PROTON_PASSWORD = "ваш-пароль"
py examples/login.py

Для регистрации используйте желаемый логин в PROTON_USERNAME и запустите py examples/register.py. Чтобы сохранить фразу восстановления, задайте путь через PROTON_RECOVERY_FILE. Для примера с прокси задайте PROXY_SERVER (например, http://127.0.0.1:8080); при необходимости также задайте PROXY_USERNAME и PROXY_PASSWORD, затем запустите py examples/proxy.py.

Интерфейс Proton может меняться и влиять на работу автоматизации.

Release files for proton-camoufox 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for proton-camoufox 0.1.2
File Size Uploaded
proton_camoufox-0.1.2.tar.gz 21.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for proton-camoufox 0.1.2
File Interpreter ABI Platform
proton_camoufox-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 42.5 kB

Release files / proton_camoufox-0.1.2.tar.gz

Download URL proton_camoufox-0.1.2.tar.gz
Size 21.6 kB
Tags Source
SHA-256 checksum
How to use checksums
394ec54d0089a82f65ff5387a96861b9ccd2ba25f4b384ec70c6056a8b78434d
BLAKE2b-256 checksum
How to use checksums
70edc054ca0a7c457341ca6c8ab7d914d2e624088550abed1e7f677af726444f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 25, 2026.

Transparency log

Release files / proton_camoufox-0.1.2-py3-none-any.whl

Download URL proton_camoufox-0.1.2-py3-none-any.whl
Size 20.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ef4efd537b18b1078eccc3f3bf5c9df6fe679861574060f409b5b48269067e2b
BLAKE2b-256 checksum
How to use checksums
87b5b89d24410f2269af1213e54db8d2eb56c21eeafb32495c5abc0a80dda13c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 25, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page