semvec/pypi-packages huggingface dataset:
email-function-logger 1.1
A decorator to log information about a function and send it to your email
Requires Python: >=3.2
Keywords: log,email,function,logger

# Email Function Logger

A Python decorator to easily log information about a function and send it to your email.

## Installation

```bash
$ pip install email-function-logger
```

## Email setup

You can set the email information as environment variable on your machine. To do this, add the following line to `~/.bashrc` (or `~/.bash_profile` depending on your OS).

```bash
export EMAIL_ADDRESS="example@domain.com"
```

This step is optional since you can input the information during the function runtime.

## Example of use

```python
from email_function_logger import log_function

@log_function
def mult(x, y):
    # Function text output
    print(x)
    print(y)

    # Value returned by function
    return x * y

mult(9, 7)
```

The log sent by email will look like this:

```
Subject:
Function 'mult' execution log

Body:
Function mult(9, 7) finished its execution.

Start time: Mar 16 18:32:16
Function text output:
9
7
Function returned: 63
End time: Mar 16 18:32:16

Total execution time: 00:00:00
```

## How it works

The decorator receives the function information and send a request to a Flask API hosted on Heroku (available [here](https://github.com/arthurcerveira/Email-Bot)). This API then sends the email to the address specified in the `EMAIL_ADDRESS` variable.

## Supported versions

- Python 3.2 and above

## Author

- [Arthur Cerveira](https://github.com/arthurcerveira)

## License

- MIT License

## Links

- PyPI: https://pypi.org/project/email-function-logger/
- GitHub: https://github.com/arthurcerveira/Email-Function-Logger
pacifica-uniqueid 0.5.1
Pacifica UniqueID

# Pacifica Unique ID
![PyPi](https://img.shields.io/pypi/v/pacifica-uniqueid.svg)
![Read the Docs](https://readthedocs.org/projects/pacifica-uniqueid/badge/?version=latest)
[![Build Status](https://travis-ci.org/pacifica/pacifica-uniqueid.svg?branch=master)](https://travis-ci.org/pacifica/pacifica-uniqueid)
[![Build status](https://ci.appveyor.com/api/projects/status/08piypij9crj4a9n?svg=true)](https://ci.appveyor.com/project/dmlb2000/pacifica-uniqueid)
[![Code Climate](https://codeclimate.com/github/pacifica/pacifica-uniqueid/badges/gpa.svg)](https://codeclimate.com/github/pacifica/pacifica-uniqueid)
[![Issue Count](https://codeclimate.com/github/pacifica/pacifica-uniqueid/badges/issue_count.svg)](https://codeclimate.com/github/pacifica/pacifica-uniqueid)
[![Docker Stars](https://img.shields.io/docker/stars/pacifica/uniqueid.svg?maxAge=2592000)](https://cloud.docker.com/swarm/pacifica/repository/docker/pacifica/uniqueid/general)
[![Docker Pulls](https://img.shields.io/docker/pulls/pacifica/uniqueid.svg?maxAge=2592000)](https://cloud.docker.com/swarm/pacifica/repository/docker/pacifica/uniqueid/general)
[![Docker Automated build](https://img.shields.io/docker/automated/pacifica/uniqueid.svg?maxAge=2592000)](https://cloud.docker.com/swarm/pacifica/repository/docker/pacifica/uniqueid/builds)

This is the Pacifica Unique ID generator API.

This service provides unique IDs for other Pacifica services.

## Documentation

For installation, configuration and usage documentation please
refer to the [Read the Docs](https://pacifica-uniqueid.readthedocs.io)
documentation.

* [Installation](docs/installation.md) documentation.
* [Configuration](docs/configuration.md) documentation.
* [Examples](docs/exampleusage.md) documentation.