semvec/pypi-packages huggingface dataset:
fouine 0.0.2
A tiny download function that does the maximum
License: MIT
Requires Python: >=3.7

fouine
======

[![Latest PyPI version](https://img.shields.io/pypi/v/fouine.svg)](https://pypi.org/project/fouine)
[![Build Status](https://github.com/LoicGrobol/fouine/workflows/CI/badge.svg)](https://github.com/LoicGrobol/fouine/actions?query=workflow%3ACI)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)

A tiny download function that does the maximum

## Usage

## Installation

Install with pip

```console
python3 -m pip install --user fouine
```

## License

Unless otherwise specified, the following licence (the so-called “MIT License”) applies to all the
files in this repository.
See also [LICENSE.md](LICENSE.md).

```text
Copyright 2019 Loïc Grobol <loic.grobol@gmail.com>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute,
sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or
substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT
OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
```

## Authors

`fouine` was written by Loïc Grobol <loic.grobol@gmail.com>.
slackpush 0.1.1
Logging to Slack, made easy.
License: MIT
Requires Python: >=3.5.0


# SlackPush - Logging to Slack made easy

SlackPush provides a wrapper on requests to push messages, logs, exceptions and attachments to slack. 
It also supports basic formating: Bold and Perforated. 

## Installation
To get started, clone the repository and run
> pip install slackpush

## Usage
1. Import the SlackPush object.

``` from slackpush import SlackPush```

2. Initialise SlackPush object with a webhook_url and channel to be posted in. To know more about incoming webhooks read [here](https://api.slack.com/messaging/webhooks).

```slackpush = SlackPush(webhook_url= <your webhook_url>, channel=<your channel>)```

3. Push messages/ logs using `send_message` method.

```slackpush.send_message('It is up and running')```

4. Similarly you can push specific exceptions as alerts to slack using `send_exception` method. This pushes the whole stack trace of the error to slack.

```
try:
    < your code here>
except Exception as e:
    slackpush.send_exception(e)
```

5. To send attachments to slack, you need to pass Slack OAuth token. More details can be found [here](https://api.slack.com/tokens). 

**Note:** See that the token has relevant persmissions to post the attachement

To add token to the object use `add_token` method. To send an attachment to Slack:

```slackpush.send_attachment(<path to attachment>)```