Skip to main content

Simple library for retrieving and repackaging email messages.

Project description

pragmail python

pragmail is a library for retrieving email messages for other useful software applications.

It extends Python's built-in modules for internet protocols and support, maintaining the same degree of user flexibility.

Example usage:

>>> import pragmail
>>> client = pragmail.Client("imap.domain.com")
>>> client.login("username", "password")
('OK', [b'username authenticated (Success)'])
>>> client.select("INBOX")
('OK', [b'1357'])
>>> client.imap4.search(None, 'FROM', '"John Smith"')
('OK', [b'245 248 257 259'])
>>> client.imap4.close()
('OK', [b'Returned to authenticated state. (Success)'])
>>> client.imap4.logout()
('BYE', [b'LOGOUT Requested'])

pragmail also equips you with several utility functions and a few useful methods for managing retrieved email messages. Please refer to the documentation for details.

Installing

pragmail can be installed with pip:

$ python -m pip install pragmail

You can get the latest source code from GitHub:

$ git clone git://github.com/huenique/pragmail.git
$ cd pragmail/
$ poetry install

Documentation

Usage and reference documentation is found here.

Contributing

Check the contributing guide to learn more about the development process and how you can test your changes.

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

pragmail-0.2.5.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

pragmail-0.2.5-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file pragmail-0.2.5.tar.gz.

File metadata

  • Download URL: pragmail-0.2.5.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.10.1 Windows/10

File hashes

Hashes for pragmail-0.2.5.tar.gz
Algorithm Hash digest
SHA256 c87a9c8d509a406a604ef552285648ea52ab948f4ca4d89ae0b1d230b479b006
MD5 3a5723f528cd0772f990f0fb3db78a1f
BLAKE2b-256 164f22233b0ca0e0a6e64dc4055e6e58655a27b696e0a63b17c669526f2d9d68

See more details on using hashes here.

File details

Details for the file pragmail-0.2.5-py3-none-any.whl.

File metadata

  • Download URL: pragmail-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 12.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.10.1 Windows/10

File hashes

Hashes for pragmail-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 cf856843f5c4d16ce9c28ff3af311d493a773ae21d536302129b4095879df2a5
MD5 36d4d6f19f995cb009e5611dd7d4e42d
BLAKE2b-256 bb0cc36cfdec645d32ba0cf373b0421273476608744a04f3bd7e95e6c0f0e01c

See more details on using hashes here.

Supported by

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