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
.envfile support - Service oriented System Info: Classes and functions to get pydantic model response about system and gpu information
License Agreement
msaBaseBased onMITopen 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/*
Metadata
Release files for msaBase 0.0.136
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| msabase-0.0.136.tar.gz | 28.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| msabase-0.0.136-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 58.9 kB
Release files / msabase-0.0.136.tar.gz
| Download URL | msabase-0.0.136.tar.gz |
|---|---|
| Size | 28.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
878029d89ed69228a0fb6d4335608f9cc4e6027a6fbad4ba7270efa1856fa69b
|
|
BLAKE2b-256 checksum How to use checksums |
15cc893ceb5fcaffd277e822931c3e19f07739ef44b1581f131369c73441cac1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.9.18 Linux/6.2.0-1015-azure
|
Release files / msabase-0.0.136-py3-none-any.whl
| Download URL | msabase-0.0.136-py3-none-any.whl |
|---|---|
| Size | 30.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
07c8bb8278d6a003ebb781827993be83bd4f20ff31aebbc2a9b0ae73ac4596bf
|
|
BLAKE2b-256 checksum How to use checksums |
a6d08ebb9facf2ce2c388fce7b474ea52eb3f2e9d2153296945b4c53dd94168a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.9.18 Linux/6.2.0-1015-azure
|