Skip to main content

NotLetters API Client

Asynchronous Python SDK for working with the https://api.notletters.com/v1 service API. Based on stollen.

Installation

pip install notletters

MRE

from notletters import NotLetters, EmailType

async with NotLetters(api_token="your_api_token") as api:
    letters = await api.get_letters(
        email="user@example.com",
        password="secret",
        search="example",
        star=False,
    )
    for letter in letters:
        print(letter.subject, letter.date)

    purchase = await api.buy_emails(count=2, type_email=EmailType.UNLIMITED)
    for email in purchase:
        print(email.password)

    change_result = await api.change_password(
        email="user@example.com",
        old_password="old",
        new_password="new"
    )
    print(change_result)

    me = await api.get_me()
    print(me.username, me.balance)

Metadata

Release files for notletters 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 notletters 0.1.2
File Size Uploaded
notletters-0.1.2.tar.gz 82.0 kB Details

Built distribution (wheel)

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

Total release size: 87.7 kB

Release files / notletters-0.1.2.tar.gz

Download URL notletters-0.1.2.tar.gz
Size 82.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e7c47bd80b25482dd2cdb7a44a6ef06ff0ab6f101f2c290c8520eb71edc0f4c4
BLAKE2b-256 checksum
How to use checksums
06b517ef96a76319323f6b02ccf437ded8b87a3aba11723e40afacb43f7c51db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.28.1

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

Download URL notletters-0.1.2-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8532a00b358e7428f3dad7d4c0d0486b2b9805a7118bcdf367ba60beb504f45b
BLAKE2b-256 checksum
How to use checksums
7100db1f47c408d51d2ae374af88577d2d5faafe9fa0485e4b6bb8a3ce861a2b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.28.1

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

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