semvec/pypi-packages huggingface dataset:
pycocap 1.3.3
PyCOCAP: The Python interface to the COCAP database
Requires Python: >=3.8

# pyCOCAP

<p align="center">
<img src="/docs/source/pics/COCAP_small.png" alt="COCAP Logo" width="500px"/>
</p>


**pyCOCAP** is the Python interface to the common COCAP database. You can find
the documentation [here](https://cocap.pages.hzdr.de/pycocap/)

## Installation


Using the Package Installer for Python PIP, you can install this interface with
following command

    
    pip install pycocap


## Usage

Once the package is installed it is as easy as this to get the COCAP data for
example the reported case numbers for Sweden and the stringency index for the
UK.

```python
import pycocap as pyc
cases = pyc.cases('Sweden')
npi = pyc.npi('United Kingdom', 'stringency')
```

If you want to get multiple NPIs into one DataFrame, you can do following

```python
npis = pyc.npis('Germany', ['school closing', 'dept relief', 'facial coverings'])
```

Defining the start and end dates of the timeseries can be done with Python's
standard `date` objects

```python
from datetime import date
deaths = pyc.death('Canada', start_date=date(2020, 5, 16), end_date=date(2021, 1, 15))
```

You can also use this to expand the timeseries and at the same time choose
with which value to fill gaps

```python
deaths = pyc.death('Canada', start_date=date(2019, 11, 1), fill_value=0)
```


## Documentation

You can find the documentation [here](https://cocap.pages.hzdr.de/pycocap/)

## Requirements

- [pandas >= 1.4.0](https://pandas.pydata.org/)
- [requests >= 2.27.1](https://requests.readthedocs.io/en/latest/)


## Contact

You can get in touch with me via [e-mail](mailto:lennart.schueler@ufz.de) or have a
look at the [source code](https://gitlab.hzdr.de/cocap/pycocap) and open
issues there.
avocado-job-gmail 1.0.1
Avocado Pre/Post Job Mail Gmail Notification

Avocado Job Notification Gmail Plugin
=====================================

The Avocado Job Notification plugin enables you to receive email notifications from Gmail for job start and completion events within the Avocado testing framework.

*Currently Only Supports Gmail*

Installation
------------

$ cd <plugin-dir>/

$ python setup.py develop --user



Configuration
-------------

To use the Avocado Job Notification plugin, you need to configure it in the Avocado settings file (`avocado.conf` - located at /etc/avocado/ if not present you can create the file.). Below is an example configuration:


[plugins.job.mail]

# The email address to which job notification emails will be sent.

recipient = avocado@local.com

# The subject header for the job notification emails.

header = [AVOCADO JOB NOTIFICATION]

# The email address from which the job notification emails will be sent.

sender = avocado@local.com

# The SMTP server address for sending the emails.

server = smtp.gmail.com

# The SMTP server port for sending the emails.

port = 587

# The application-specific password for the sender email address.

password = abcd efgh ijkl mnop

# The detail level of the email content.
# Set to 'basic' for a summary with essential details or 'advanced' for detailed information about each failed test.

detail_level = basic

Usage
-------------
Once configured, the Avocado Job Notification plugin will automatically send email notifications for job start and completion events based on the specified settings.

Obtaining an App Password for Gmail
------------------------------------

Please follow these steps to generate an App Password:

Create & use app passwords

Important: To create an app password, you need 2-Step Verification on your Google Account.

Go to your Google Account.

Select Security.

Under "How you sign in to Google," select 2-Step Verification.

At the bottom of the page, select App passwords.

Enter a name that helps you remember where you’ll use the app password.

Select Generate.

To enter the app password, follow the instructions on your screen. The app password is the 16-character code that generates on your device.

Select Done.

Enter the App Password inside of the avocado configuration file.

Remember to keep this App Password secure and don't share it with anyone. If you suspect it has been compromised, you can always revoke it and generate a new one.