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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file fastapi_exception-1.2.1.tar.gz
.
File metadata
- Download URL: fastapi_exception-1.2.1.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd09a9132b54ddc27b65581d0fe1a29286fbbeb2d4c03bdde2329d37cd2f8ce5 |
|
MD5 | c4e59c726e02ae27988e5c5ea4778231 |
|
BLAKE2b-256 | 93d6fcb805fde9c63a755f976d268fba4f69a89cc7efb58542b07f735a5f409a |
File details
Details for the file fastapi_exception-1.2.1-py3-none-any.whl
.
File metadata
- Download URL: fastapi_exception-1.2.1-py3-none-any.whl
- Upload date:
- Size: 12.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b54a42fa1100c02ce8e4e71d78813f99dc83fe5ffdc5197dc936daea6b330671 |
|
MD5 | 531752c3a39f400974012b151217b2ac |
|
BLAKE2b-256 | 04aa6a2dfdde788805bd778b2e091e383c0740c96d187142a927cc1bef47861a |