Skip to main content

NRGPy data_email_client

data_email_client is a Python package for downloading data files from emails using the imap protocol (SSL-compatible)

installation

pip install data_email_client

examples

see script docstrings for more usage info.

set up virtual environment

This step isn't necessary, but is best practice. If you don't have your own preferences around this, follow these steps:

# clone the repository
git clone https://github.com/nrgpy/data_email_client
cd data_email_client

# create the virtual environment
python -m venv venv      # use python3 for linux/ios
.\venv\Scripts\activate  # source venv/bin/activate for linux/ios

# install this package
pip install -e .[dev,test]

open the gui

To run this application as a desktop application:

cd /path/to/data_email_client
python data_email_client/data_email_gui.py

This application will allow you to store settings that will recall automatically when the gui application starts.

data_email_client

symphonie data emails

...
>>> body_text = 'SymphoniePRO Logger data attached.'  # 'Wind Data attached.' for older logger types
>>> imap = mailer(server=server, username=username, password=password)
>>> data_boxes = [m for m in imap.mailboxes if 'data' in m]
>>> imap.search_for_messages(text=body_text, area='body', folder=data_boxes)
>>> imap.download_attachments(
        out_dir='/path/to/data/', 
        extension='rld', 
        delete=False, 
        archive_folder='INBOX/Archive'
    )

Release files for data-email-client 0.4.0

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

Built distribution (wheel)

Table of built distributions (wheels) for data-email-client 0.4.0
File Interpreter ABI Platform
data_email_client-0.4.0-py3-none-any.whl Python 3 none any Details

Release files / data_email_client-0.4.0-py3-none-any.whl

Download URL data_email_client-0.4.0-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1f6dfa32e0a9f18ced773c33727af93cfd99f3b2290e22a5dc1fada55dd3a090
BLAKE2b-256 checksum
How to use checksums
c412490aecd3b62e835388cb3f0e0feadbda013497cdbabfaa39610a8ae0cbd3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.6

Release history Release notifications | RSS feed

This release

0.4.0 This release

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

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