Skip to main content

fastapi-slack

Conventional Commits CircleCI codecov

Slack extension for FastAPI.

Configuration - Environment Variables

slack_access_token

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

slack_signing_secret

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

Setup

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


app = FastAPI()
app.include_router(fastapi_slack.router)

Slash Commands

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

app = FastAPI()
app.include_router(router)


@app.post("/slash-commands")
def process_commands(slash_command: SlashCommand = Depends()):
    pass

Metadata

Release files for fastapi-slack 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fastapi-slack 0.2.3
File Size Uploaded Provenance Actions
fastapi-slack-0.2.3.tar.gz 4.0 kB Without provenance Details for fastapi-slack-0.2.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fastapi-slack 0.2.3
File Interpreter ABI Platform Actions
fastapi_slack-0.2.3-py3-none-any.whl Python 3 none any Details for fastapi_slack-0.2.3-py3-none-any.whl

Total release size: 7.9 kB

Release files / fastapi-slack-0.2.3.tar.gz

Download URL fastapi-slack-0.2.3.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c90d4bd4d725a9a8553754c79b9330f5c04f015fd7e6e34bbddea63164196783
BLAKE2b-256 checksum
How to use checksums
f043b55a223807d97e190439612f29dbc540acf26c3805dc118bcc037d1cbace
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.9.1 Linux/4.15.0-1077-aws

Release files / fastapi_slack-0.2.3-py3-none-any.whl

Download URL fastapi_slack-0.2.3-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b0433bd45f66d8b2b361f8ec7bb99c8259e1e8ac89ad539082dad08d08f87cb1
BLAKE2b-256 checksum
How to use checksums
f100e0973e9ab8f842ec8976f3a69369883074ebb323cd1abde5d0bdfb5e060b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.9.1 Linux/4.15.0-1077-aws

Security for fastapi-slack 0.2.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page