semvec/pypi-packages huggingface dataset:
loghooks 0.2.0
A discord webhook logging library
License: MIT
Requires Python: >=3.7.0

# Log Hooks

A discord webhook logging library

There are no docs as this isn't meant to be used in bots that are sharded or log a lot. Just ping moanie#6598 on discord.py for help (ID: 691406006277898302)

Example:
```py
import discord
import logging
import aiohttp

from loghooks import WebhookHandler

client = discord.Client() # use commands.Bot if you wish. It doesn't make a difference.
handler = WebhookHandler(
    webhook_url = "webhook-url",
    session = aiohttp.ClientSession()
)


@client.event
async def on_ready():
    print("ready")


# actual logging stuff
logger = logging.getLogger("discord")
logger.setLevel(logging.DEBUG)
logger.addHandler(handler)
handler.setLevel(logging.INFO)

client.run("Bot Token")
```

## Using your own functions

```py
import discord
import logging
import aiohttp

from loghooks import WebhookHandler
from logging import LogRecord

client = discord.Client() # use commands.Bot if you wish. It doesn't make a difference.
handler = WebhookHandler(
    webhook_url = "webhook-url",
    session = aiohttp.ClientSession()
)


@client.event
async def on_ready():
    print("ready")


async def my_custom_webhook_function(log: LogRecord):
    ... # handle your log here

# actual logging stuff
logger = logging.getLogger("discord")
logger.setLevel(logging.DEBUG)
logger.addHandler(handler)
handler.setLevel(logging.INFO)
handler.setCustomHandle(my_custom_webhook_function)

client.run("Bot Token")
```
sloth-ci-ext-devtools 1.0.5
Utilities to help you develop extensions and validators for Sloth CI
License: MIT
Requires Python: >=3.9,<4.0

# Utilities to help developers create validators and extensions for Sloth CI


## Installation
    
    $ pip install sloth-ci-ext-devtools


## Usage

Enable the extension in the server config:

    extensions:
        dev:
            # Use the module sloth_ci.ext.devtools.
            module: devtools

Call `sci dev` with `-e` or `-v` to create an extensions or a validator template:

    $ sci dev -e spam
    Extension "spam" created.
    $ sci dev -v eggs
    Validator "eggs" created.