semvec/pypi-packages huggingface dataset:
fastapi-slackeventsapi 0.1.0
FastAPI Implementation of slackeventsapi
License: MIT
Requires Python: >=3.7,<4
Keywords: fastapi,slack,slackeventsapi

# Slack Events API adapter for Python with FastAPI  

SlackEventManager is a Python-based solution to recieve and parse events from Slack's Events API

This is simple add to fastapi server SLack Events API  

## Installation
```bash
pip install fastapi-slackeventsapi
```

## Work Setup 
* [App Setup](https://github.com/slackapi/python-slack-events-api/blob/main/README.rst#--app-setup)
* [Development Workflow](https://github.com/slackapi/python-slack-events-api/blob/main/README.rst#--development-workflow)  

## Usage  

Create simple FastAPI app and add SlackEventManager event handler

```python
import os

import uvicorn
from fastapi import FastAPI
from fastapi_slackeventsapi import SlackEventManager

signing_secret = os.environ.get('SLACK_BOT_SIGNING_SECRET')

app = FastAPI()

slack_event_manger = SlackEventManager(singing_secret=signing_secret,
                                       endpoint='/slack/events/',
                                       app=app)


@slack_event_manger.on('reaction_added')
async def reaction_added(event_data):
    emoji = event_data['event']['reaction']
    print(emoji)


uvicorn.run(app, host='0.0.0.0')

```
qwhale-logs-client 0.1.14
Python client for QwhaleLogs API
License: MIT
Keywords: API,Client,Qwhale,QWhale,client,Logs,log,logs

# QWhaleLogsClient
## QWhaleLogs client lib for saving logs in remote service

### Install
```shell script
$> pip install qwhale-logs-client
```

### Get token
Go to [login](https://logs.qwhale.ml/provider/login)
After the login go to [get_token](https://logs.qwhale.ml/api/token)

### Logging example
```python
import logging
from qwhale_logs_client import init

init(token="<YOUR_TOKEN>", batch_site=1)  # Init logs capture
# The batch site is determine how many logs to send in one request
# For fewer sizes more requests are made (default to 100)

logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')

logging.info("Some log") # Normal use
# Now your logs are sent to the QWhaleLogsService
```

### Loguru example (Recommended)
```python
from loguru import logger
from qwhale_logs_client import init

init(token="<YOUR_TOKEN>", batch_site=1)  # Init logs capture
# The batch site is determine how many logs to send in one request
# For fewer sizes more requests are made (default to 100)

logger.info("Some log") # normal use
# Now your logs are sent to the QWhaleLogsService
```