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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42e9d039d1b8c6cba1c7e27be372fdb6b4916078430c3dfec51cc9614d5830b5 |
|
MD5 | 61459f77a53f3cf9031b7e6b3f39caff |
|
BLAKE2b-256 | 150735b3c0b41624c8f4f6fcfcc5c849d3dcbeb1a48303fe09aeb24357237f60 |
Close
Hashes for fastapi_request_helper-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f24734d2752bb73e421dfdd13bb0c38d509e41b382c54013bebdc49637970cea |
|
MD5 | 08c15640cd4ea6d8f5b4f57572a6293a |
|
BLAKE2b-256 | a95b68f328c25fe4782d028d1a7ee02a0b06b27ef869adec928871728c2c8e33 |