Skip to main content

A lightweight NotLetters SDK based on stollen.

Project description

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

notletters-0.1.2.tar.gz (82.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

notletters-0.1.2-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file notletters-0.1.2.tar.gz.

File metadata

  • Download URL: notletters-0.1.2.tar.gz
  • Upload date:
  • Size: 82.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for notletters-0.1.2.tar.gz
Algorithm Hash digest
SHA256 e7c47bd80b25482dd2cdb7a44a6ef06ff0ab6f101f2c290c8520eb71edc0f4c4
MD5 fefbc1b96b92fafeb871e0cb647e73a7
BLAKE2b-256 06b517ef96a76319323f6b02ccf437ded8b87a3aba11723e40afacb43f7c51db

See more details on using hashes here.

File details

Details for the file notletters-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: notletters-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for notletters-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8532a00b358e7428f3dad7d4c0d0486b2b9805a7118bcdf367ba60beb504f45b
MD5 8e7234d1cee1f788d08b3dc8e3bf4fdd
BLAKE2b-256 7100db1f47c408d51d2ae374af88577d2d5faafe9fa0485e4b6bb8a3ce861a2b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page