msaBase - General package for Microservices based on FastAPI like Profiler, Scheduler, Sysinfo, Healtcheck, Error Handling etc.
Project description
msaBase- General Package for Microservices based on FastAPI like Profiler, Scheduler, Sysinfo, Healtcheck, Error Handling etc.
Optimized for use with FastAPI/Pydantic.
Documentation: Documentation (https://msaBase.u2d.ai/)
Features
- MSABaseExceptionHandler: Central exception handler which sends formatted exception to logger
- Filehandler utilities: Classes for FileDelete, FileUpload async with chunking, Archive pack/unpack formats, helper functions
- mkdocs code reference helper: Create virtual mkdocs navs for code reference and used libraries from requirements.txt
- MSAHealthCheck: Healthcheck class with internal own thread, which checks url for health
- logger intercept handler: allows to change handler from all logger and define specific output format with loguru
- Models for files and health classes: reusable pydantic models for file handling and dealing with healthcheck status
- MSAProfilerMiddleware: PyInstrument Profiler as Middleware to create a html for an admin Dashboard
- MSAAppSettings: API oriented settings class with environment vars and
.env
file support - Service oriented System Info: Classes and functions to get pydantic model response about system and gpu information
License Agreement
msaBase
Based onMIT
open source and free to use, it is free for commercial use, but please show/list the copyright information about msaBase somewhere.
How to create the documentation
We use mkdocs and mkdocsstring. The code reference and nav entry get's created virtually by the triggered python script /docs/gen_ref_pages.py while mkdocs
serve
or build
is executed.
Requirements Install for the PDF creation option:
PDF Export is using mainly weasyprint, if you get some errors here pls. check there documentation. Installation is part of the msaBase, so this should be fine.
We can now test and view our documentation using:
mkdocs serve
Build static Site:
mkdocs build
Build and Publish
Build:
python setup.py sdist
Publish to pypi:
twine upload dist/*
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
File details
Details for the file msaBase-0.0.12.tar.gz
.
File metadata
- Download URL: msaBase-0.0.12.tar.gz
- Upload date:
- Size: 28.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43313af801851780865e53a7621358291f219afed88f7880e2fbbaa638799e99 |
|
MD5 | 229078c6ddc20982403eb4456cddcbbc |
|
BLAKE2b-256 | 96c9b4494e9da121d17d84e33b844eb44c4faa2766b217cb713b767fd1a3555d |