Toolkit for writing HTTP microservices using FastAPI, Pydantic and TortoiseORM
Create and activate a virtual environment and then install MSCore:
pip install git+https://github.com/HexChap/MSCore#egg=ms_core
- Clone the repo
git clone https://github.com/HexChap/MSCore
cd MSCore
- Install dependencies using uv (recommended)
uv sync --group dev
MSCore includes a comprehensive test suite covering all major components:
# Run all tests
python -m pytest
# Run with verbose output
python -m pytest -v
# Run with coverage
python -m pytest --cov=ms_core --cov-report=html
- Serve the docs
mkdocs serve
The project uses GitHub Actions for automated testing:
- Runs on Python 3.12 and 3.13
- Includes linting and security checks
- Generates coverage reports
- Tests all major functionality