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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: fastapi_exception-0.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 96a5070db6dd3453b8b7f48ae40790bc92b709d6a79c89a5092d45b64e42d9d6
MD5 573836f273db98ba5954366170d40dee
BLAKE2b-256 0f8ecc69471a986e050e6e3252fb6b086dc75e497807ef82c6d7d40d534a012e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fastapi_exception-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d706ff049d096d0397eca4a14c392e4a7a0e8e800e9978d746660764d06a6f12
MD5 ee6e65c04afa351843fe3bea96eb2d00
BLAKE2b-256 9082892a3880eb57ad98c70a9b1b796fdd3806f8e72042548802dae9e004c048

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