semvec/pypi-packages huggingface dataset:
capture-errors 0.0.4b0
Python package that captures exceptions and notify them
Keywords: python,exceptions,errors

# Capture Errors

A python package that captures the exceptions and notify them via different methods of notification. 

This package provides the complete context of the runtime errors which help developers debug the issues and saves time in bug fixing.


## Installation

Use the command `pip` to install the package
```bash
$ pip install capture-errors
```


## Environment Setup
```bash
$ export CAPTURE_EMAIL_HOST=smtp.gmail.com
$ export CAPTURE_EMAIL_PORT=465
$ export CAPTURE_EMAIL_USER=username@gmail.com
$ export CAPTURE_EMAIL_PASSWORD=securePassxxxx
```

## Usage

```python
from capture import Capture
from capture.adapters.email import EmailAdapter

capture = Capture()
email_adapter_properties = {
    'from_email': '<email-address>',
    'recipients': '<email-address>',
}
capture.set_adapter(EmailAdapter, email_adapter_properties)

try:
    # Code that can generate an error
    # For example: ZeroDivisionError
    x = 10
    y = 500000
    while True:
        remainder = y % x 
        x -= 1
except Exception as ex:
    capture.push(ex)
```

## Available Adapters

* EmailAdapter
sciece-vli-trato 0.0.1
APP Trato Simulator

VLI Trato Simulador 

This project implements a model, simulation and optimization of beverage can manufacturing

## Prerequisites

1 . Update 
```shell
sudo apt-get update
```
2. Install python 3.8
```shell
$ sudo apt-get install python3.8
python3.8 --version
```
* Python 3.8 +

3.  Create and activate Python 3.8 environment
What you need to be able to run:
```shell
$ mkvirtualenv science_vli_trato --python=python3.8

$ workon science_vli_trato
```

4. Upload files to /home/ubuntu/science_vli_trato

All requirements are in the file `requirements.txt`.
To install all packages at once: 

```shell
$ pip install -r requirements.txt
```
5. Install module
```shell
$ pip install .
```

[//]: # (6. Install science_optimization module)

```shell
#$ sudo apt install gcc
#$ sudo apt install g++
#$ pip install git+https://azure0511@dev.azure.com/azure0511/ENACOM/_git/science-optimization
```
### Contributors
* Bruno Teles
* Flavia Martins
* Leandro Rocha