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.1.tar.gz (82.2 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.1-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for notletters-0.1.1.tar.gz
Algorithm Hash digest
SHA256 916a91078af0677b571c6c6b4a8f7e9cddacbedba5485fb1ee4758c544213ec6
MD5 9f14194772eae1a84be30536801960a1
BLAKE2b-256 f61ae7c94e845bc70fe7507be8ebbe77c8ba9addfc7f4bad4aeb63577fed0f30

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for notletters-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e251f1856254bc6803b94e75bb7cf40e93326c9f90f7cef8b74217f71374900a
MD5 7953d6734cda27520de63662b68fbd47
BLAKE2b-256 6bf3878bf87d223f5b4e9c965aeb2bd89d82319a2b13a537bdad75bb785f9963

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