FastAPI Request Helper
Project description
FastAPI Request helper
How to use
- Set a variable
# user_service.py
from fastapi import FastAPI
from fastapi_global_variable import GlobalVariable
app = FastAPI(title="Application")
GlobalVariable.set('app', app)
- Use variable
from fastapi_global_variable import GlobalVariable
print(GlobalVariable.get_or_fail('app'))
print(GlobalVariable.get('app'))
How to test in testpypi
- Increase the version in
pyproject.toml
- Run command
$ . ./build_and_test.sh
How to publish new version
- Increase the version in
pyproject.toml
- Run command
$ . ./build_and_publish.sh
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
Close
Hashes for fastapi_request_helper-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fea0ae62da7945204b6dfdbc66cf7cc824e6e842b725f68dc0444c09769725d |
|
MD5 | 15e9df8ca8c049a0026888446b3f7b01 |
|
BLAKE2b-256 | 346ba00cb4ef546a2f8c67319372a9ebf15a3afc8b8203b9fba86abd34f946a2 |
Close
Hashes for fastapi_request_helper-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c49495d41d80705ea20c2db51863e05625bca4e1b39f4c255459e64f94b7ca58 |
|
MD5 | 7bfc2d2f51514eeb70e468708aeb184e |
|
BLAKE2b-256 | 67af31d8936866bc6646fb477932876f7afb27b786e8f9a8648803bef1a71f1c |