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

Uploaded Source

Built Distribution

fastapi_exception-0.0.1-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fastapi_exception-0.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 5b767e11580465137ddd8222069a1af9895de6542c9d1b1fb323632bd2689d01
MD5 525fbec27f8021375c89483ab6f4adf0
BLAKE2b-256 3d85b33f3fcf1afac7396c3e3dd877c4e57729ade66d71d4b2f84bec2845e8ea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fastapi_exception-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a91f0905942b3bc514b927f72f6f8580b93a61aa138cb72b6f11af70e791d54b
MD5 1d6f874990874acc5a79b781763fb82b
BLAKE2b-256 68938637903f30ff4d2ca4b327bbdf81013021eef713a6ad17df0553820400e5

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