Skip to main content

Slack extension for FastAPI.

Project description


Conventional Commits CircleCI codecov

Slack extension for FastAPI.

Configuration - Environment Variables


Bot User OAuth Access Token as defined in OAuth & Permissions menu of the slack app.


App signing secret as shown in Basic Information menu of the slack app in the App Credentials section.


  • Include fastapi-slack router:
import fastapi_slack
from fastapi import FastAPI

app = FastAPI()

Slash Commands

  • Dependding on fastapi_slack.SlashCommand automatically validates Slack request signature and extract the info needed to process it:
from fastapi import Depends, FastAPI
from fastapi_slack import SlashCommand, router

app = FastAPI()
def process_commands(slash_command: SlashCommand = Depends()):

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastapi-slack-0.2.1.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

fastapi_slack-0.2.1-py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page