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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c82d72c80093db597171d8cf97d99556800a2c3f23cb5bb03e65928e056b9712 |
|
MD5 | 5bf563e5e9d408a04ee704a3fccc0ece |
|
BLAKE2b-256 | fb7fe3fadd0297fe2fe9bb372c1c1f4754b9d3341667d81d523882fa74add6dc |
Close
Hashes for fastapi_request_helper-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01928e82f3b226ea955c4c988b374e2eed2eb5f5a1ef89461a34b4fa0ccaf5f9 |
|
MD5 | 22eac95a58fa9d52a9711287064d7561 |
|
BLAKE2b-256 | 88271dff7a236a94d40cf529126c76d986e266f3f9001d1a526094bdaf946e5b |