semvec/pypi-packages huggingface dataset:
nrkdownload 3.2.6
Download content from NRK TV.
Requires Python: >=3.10

# nrkdownload

!["Build status"](https://img.shields.io/github/actions/workflow/status/marhoy/nrk-download/main.yml)
[![codecov](https://codecov.io/gh/marhoy/nrk-download/branch/main/graph/badge.svg?token=84LOP32NP6)](https://codecov.io/gh/marhoy/nrk-download)
!["Latest version"](https://img.shields.io/pypi/v/nrkdownload)
!["Supported Python versions"](https://img.shields.io/python/required-version-toml?tomlFilePath=https%3A%2F%2Fraw.githubusercontent.com%2Fmarhoy%2Fnrk-download%2Frefs%2Fheads%2Fmain%2Fpyproject.toml)

This is a commandline tool for downloading content from NRK (Norwegian public
broadcaster). It supports downloading TV series and programs. The tool is written in
Python, and is compatible with Python 3.10 or newer. It has been tested under Linux,
macOS and Windows.

# Documentation

The documentation for nrkdownload is availabe here: https://nrkdownload.readthedocs.io

# Setting up a development environment

Install [uv](https://docs.astral.sh/uv/). To set up the development environment:

```bash
uv sync --group docs
pre-commit install
```

# Making a new release

- Make sure all tests are ok by running `nox`
- Make sure all pre-commit hooks are ok by running `pre-commit run --all-files`
- Make a pull requst on GitHub
- Merge the PR to the `main` branch
- Create a new tag nameed `vX.Y.Z` where `X.Y.Z` is the new version number
- The new version of the package will be published to PyPi automatically
- Optionally create a new release on GitHub, based on the new tag
data-email-client 0.4.0
A simple python email client for downloading email attachments
Requires Python: >=3.6
Keywords: email, attachments, client, download, nrg systems, data

# ![NRGPy](https://www.gravatar.com/avatar/6282094b092c756acc9f7552b164edfe?s=24) 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:

```bash
# 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:

```bash
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](./data_email_client/static/data_email_client_gui_example.png)

### symphonie data emails

``` python
...
>>> 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'
    )
```