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

  1. Set global app env
from fastapi import FastAPI
from fastapi_global_variable import GlobalVariable

app = FastAPI(title="Application")

GlobalVariable.set('app', app)
  1. Init FastAPI
from config.i18n import i18n_service
from fastapi_exception import FastApiException

FastApiException.init(i18n_service)

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-0.0.2.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

fastapi_exception-0.0.2-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for fastapi_exception-0.0.2.tar.gz
Algorithm Hash digest
SHA256 fc30db0701b4add2b8fca4aca1e1e4102b517fa79357a2c7f5bac68e154ee474
MD5 184e99b7070d9b5018865d707f743124
BLAKE2b-256 866e1a4a75133179e3d22e75f435e6a9b1f669deaaab45195e05a2eb2483f347

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fastapi_exception-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 15b1b0c4f50652127bb2ed81a0e16745432ba4d9cc3239d0e5e3b238d90c708d
MD5 175a138ea3362424496614bfded02fd0
BLAKE2b-256 e9579dd6807fd117f730985e79ecc7e1082e78917756d3efec88208334484246

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