Skip to main content

FastAPI Event

Project description

FastAPI Exception

Setup python environment

python3 -m venv venv

Active the python environemt

. venv/bin/activate

Install requirements

pip install -r requirements.txt

How to use

# Init FastAPI

# config/exception.py
from config.i18n import i18n_service
from fastapi_exception import FastApiException

FastApiException.init()
FastApiException.init(translator_service=i18n_service) # pass translator_service if we integrate with i18n

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_exception-1.0.1.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

fastapi_exception-1.0.1-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file fastapi_exception-1.0.1.tar.gz.

File metadata

  • Download URL: fastapi_exception-1.0.1.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for fastapi_exception-1.0.1.tar.gz
Algorithm Hash digest
SHA256 8040fd801182521d5c55ca5025b3c418776237ebd96a8308005460d8f59c30a6
MD5 e18d7bb0dda4902ff28b949f4f8402fe
BLAKE2b-256 74b7290d03372823b58e4f68d323e3486d18bacfea8528bc128cf0bbb3947b3b

See more details on using hashes here.

File details

Details for the file fastapi_exception-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for fastapi_exception-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cf458fd2b918056fa5be0f6b1d4ed89a1d971b6efd5fe1d3897407beb7433a15
MD5 2d442bb5189bab3217da4d9ba596e9df
BLAKE2b-256 a043786d4f20aefbddfa8eb95a7ba16f6366c583edec91ee2ee2406d923d117c

See more details on using hashes here.

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