semvec/pypi-packages huggingface dataset:
statuscope 0.1.1
A package to ease log sending to Statuscope

# python-package
Source code of the Python package that is on PyPI

# Install & Update
```bash
sudo pip3 install --upgrade statuscope
```

# Example

Here is a sample use of the package.

```python
import argparse
import time
import sys
import random

from statuscope.logger import Logger
from statuscope.logger import LoggerConfig

if __name__ == '__main__':
    parser = argparse.ArgumentParser(description='Sends logs to Statuscope.io')
    parser.add_argument('-t',
                        '--token',
                        help='API token or task-specific token',
                        required=True)
    parser.add_argument('-i',
                        '--task_id',
                        help='Task ID',
                        required=True)
    args = parser.parse_args()

    # Create a logger configuration object and enable logs
    log_config = LoggerConfig()
    log_config.enable_logs()
    # Set the component that these logs belong to
    # Note that this is a global setting and it can be overridden on each (debug|info|warning|error|alert) call
    log_config.set_component('test')

    log_sender = Logger(args.token, args.task_id, log_config)
    log_sender.start()

    # We'll generate some silly log messages because test data is usually so boring
    objects = [ 'plane', 'bike', 'book', 'icecream', 'dog' ]
    colors = [ 'yellow', 'green', 'red', 'black', 'pink', 'white' ]
    components = [ 'auth', 'backend', 'frontend', 'db', 'payment' ]
    severities = [ 'debug', 'info', 'warning', 'error', 'alert' ]

    counter = 0
    while True:
        counter = counter + 1

        try:
            time.sleep(1)

            severity = random.choice(severities)
            component = random.choice(components)
            color = random.choice(colors)
            object = random.choice(objects)

            if severity == 'debug':
                log_sender.debug("Log %s: I have a %s %s" % (counter, color, object), component)

            elif severity == 'info':
                log_sender.info("Log %s: I have a %s %s" % (counter, color, object), component)

            elif severity == 'warning':
                log_sender.warn("Log %s: I have a %s %s" % (counter, color, object), component)

            elif severity == 'error':
                log_sender.error("Log %s: I have a %s %s" % (counter, color, object), component)

            elif severity == 'alert':
                log_sender.alert("Log %s: I have a %s %s" % (counter, color, object), component)


        except KeyboardInterrupt:
            print("Ctrl-C received, exiting...")
            log_sender.flush()
            try:
                log_sender.join()
            except Exception as e:
                print(str(e))
            sys.exit()
```

Then to update a log task,

```bash
python3 test.py --token cfa0d2ed --task_id QbZJjD2u3uzFvTYAM
```
tox-tags 0.2.0
Tox plug-in that allows you to run subsets of test environments

tox-tags
========

This is a Tox_ plug-in that allows you to tag test environments and then easily
select a subset of test environments when running Tox.

The plug-in and its rule system is heavily inspired by `nose-attrib`_.

Here's an example::

    [tox]
    envlist =
      py27-win,
      py27,
      py34,

    [testenv:py27-win]
    tags =
      win

Then, you can easily run only the ``py27-win`` environment::

    $ tox -t win

You can also run all but the ``py27-win`` environment::

    $ tox -t '!win'

.. _Tox: https://tox.readthedocs.org/en/latest/
.. _`nose-attrib`: http://nose.readthedocs.org/en/latest/plugins/attrib.html
mailgun-cli 0.1.9
control mailgun account using cli and python api
Requires Python: >=3.6,<4.0
Keywords: forward,mail,mailgun,cli

# mailgun-cli
control mailgun account using cli and python api

## Features
- easily create routes for 1-on-1 forwarding mail using a csv file or Google Spreadsheet

## Usages
### CLI
set the mailgun api key
```bash
# bash shell
$ export MAILGUN_API_KEY [your private API key]
# fish shell
$ set -X MAILGUN_API_KEY [your private API key]
```
You could permanently set it in `~/.bash_profile` or `~/.config/fish/config.fish`

*list all routes*
```bash
$ mailgun routes
```
*forward using a csv*
```bash
$ mailgun forward "https://docs.google.com/spreadsheets/d/e/2PACX-1vQX-8YPc7Dja4jn3u0E5MzGdEOPxB9OEI2kDzO_7c-CLpGQ5g8LdPO2W9f6tETrVyBBZvWx3qNAMwPa/pub?output=csv"
```

## install
```
$ pip install mailgun-cli 
```
✨��✨

## Forward templete
Google Spreadsheet, [Here is a templete](https://docs.google.com/spreadsheets/d/1JOKoNcUMIYtUiahQfP309BhpqU-5uPir1UcsAmLkKaY/edit?usp=sharing). 
   1. First publish your Google sheet to the web by going to File > Publish to the web...
   2. Choose the tab you want, then select Comma-separated values (.csv) as the export format
   3. Grab the URL

## Learning Path
1. https://codingdose.info/2018/08/02/develop-and-publish-with-poetry/