semvec/pypi-packages huggingface dataset:
letmegetcoffee 0.1.0
Provides functionality to notify if an exception occurred
License: MIT
Requires Python: >=3
Keywords: exception notification

# letmegetcoffee
A python module that provides functionality to notify you when something
goes wrong

# Usage

    from letmegetcoffee import lmgc  # or use wild import since it equals to lmgc only

error(s) to catch; defaults to (Exception,); not necessary to set

    lmgc.EXCEPTIONS = ValueError

what to do if an error occurred; necessary to set after import, since it
defaults to `print` and just silently prints the exception-object

    lmgc.ON_EXCEPTION = lmgc.on_exception_beep

# on_exception_ - functions

- ```on_exception_beep(e):```

     Beep in a while loop to notify if something goes wrong.
     **Remeber to turn your volume up**

- ```on_exception_mail(e):``` **[IN DEVELOPEMENT]**

    Send an email to notify if something goes wrong.

- ```on_exception_webpage(e):```  **[IN DEVELOPEMENT]**

    Host a webpage inside the local network to show the state of the
    running program.
    Seems unlikly though since hosting an http server (during the entire
    runtime, not only when an error occured) is a rather
    resource-expensive task

It is also possible to use your own function. Just note:

- the function has to take the excepion-object as an argument

    exception-object like in ```except Exception as e: pass```

- ```lmgc.ON_EXCEPTION = yourFunction``` has to be set before the
  decorator is used


# Example
```
from random import randint
from letmegetcoffee import lmgc
lmgc.ON_EXCEPTION = lmgc.on_exception_beep


@lmgc.catch
def testing(number, message):
    print(message)
    while True: number / randint(0, number)


if __name__ == '__main__':
    testing(1000000, message='Hello World!!!')  # args and kwargs work

```
v-palette 1.1.0
Utility to easily use material design colors
License: MIT

# Palettes
[![Build Status](https://travis-ci.com/villoro/v-palette.svg?branch=master)](https://travis-ci.com/villoro/v-palette)
[![codecov](https://codecov.io/gh/villoro/v-palette/branch/master/graph/badge.svg)](https://codecov.io/gh/villoro/v-palette)

Utility to easily use palettes

## Colors

There are two palettes **material** and **flat**.

### Material Colors
<img src="https://raw.githubusercontent.com/villoro/v-palette/master/assets/material_grid.svg?sanitize=true">

You can view them in a [svg file](https://github.com/villoro/v-palette/blob/master/assets/material_grid.svg).

More info at [material.io](https://material.io/design/color/the-color-system.html#color-usage-palettes)

### Flat Colors
<img src="https://raw.githubusercontent.com/villoro/v-palette/master/assets/flat_grid.svg?sanitize=true">

You can view them in a [svg file](https://github.com/villoro/v-palette/blob/master/assets/flat_grid.svg).

More info at [html color codes](https://htmlcolorcodes.com/color-chart/flat-design-color-chart/)

## Installation

You can install it with pip by running:

    pip install v-palette


## Usage

You can retrive one color or a list of colors using `get_colors` function:

```python
from v_palette import get_colors

# 1. Retrive one color
get_colors(("red", 100)) # out: '#FFCDD2'

# 2. Retrive some colors
get_colors([("red", 100), ("blue", 100)]) # out: ['#FFCDD2', '#BBDEFB']

# 3. Retrive colors from others palettes
get_colors([("emerald", 100), ("silver", 100)]) # out: ['#D5F5E3', '#F2F3F4']
```


## Authors
* [Arnau Villoro](https://villoro.com)

## License
The content of this repository is licensed under a [MIT](https://opensource.org/licenses/MIT).

## Nomenclature
Branches and commits use some prefixes to keep everything better organized.

### Branches
* **f/:** features
* **r/:** releases
* **h/:** hotfixs

### Commits
* **[NEW]** new features
* **[FIX]** fixes
* **[REF]** refactors
* **[PYL]** [pylint](https://www.pylint.org/) improvements
* **[TST]** tests
pytrendsdaily 1.0.0
Fetches Daily Data from Google Trends.
License: MIT

# Table of Contents

1.  [pytrendsdaily](#orgca507e0)
    1.  [Usage](#orgad39ac6)


<a id="orgca507e0"></a>

# pytrendsdaily

The [Pytrends](https://github.com/GeneralMills/pytrends) package provides an easy way to obtain data from [Google Trends](https://trends.google.com/trends). This package, `pytrendsdaily`, uses the functionality from `Pytrends` to obtain data from Google Trends at the daily frequency, automatically dealing with scaling issues.


<a id="orgad39ac6"></a>

## Usage

The main functionality of this package is available via the function `getDailyData`.

    from pytrendsdaily import getDailyData

    svi = getDailyData('GOLD PRICES', 2004, 2017)

The variable `svi` contains a Pandas data frame with the original unscaled search volume index (SVI) from Google Trends, and also the scaled data at the daily frequency.