Add your description here
Project description
Service Template Project
A Python-based service template designed to streamline the creation of scalable, well-structured microservices. This project provides a robust starting point for building RESTful APIs, complete with best practices for code organization, logging, dependency management, and more.
Features
- 📂 Clean Architecture: Predefined folder structure for easy scalability and maintainability.
- ⚙️ Customizable CLI: Includes a CLI for generating services with click and rich formatting.
- 🔧 Built-in Tools:
- FastAPI for API development.
- SQLModel for database interactions.
- Uvicorn for fast and efficient server hosting.
- 📜 Logging: Centralized and configurable logging system.
- 🧪 Pre-configured Testing: Pytest setup with sample tests.
- 🐳 Dockerized: Ready-to-use
Dockerfilefor containerized deployments. - 🛠️ CI/CD Ready: Includes a
Makefileand GitHub pre-commit hooks for formatting and linting (isort,black,mypy,flake8). - 📖 Configuration: Environment management via
.envfiles.
Getting Started
Prerequisites
- Python 3.10+ installed.
Installation
-
Install the package:
python -m pip install service-template
Running the template
-
Create and enter your project directory:
mkdir new-project cd new-project
-
Create your project directory:
service-template init
Contributing
Contributions are welcome! Please follow these steps:
- Fork the repository.
- Create a feature branch:
git checkout -b feature/your-feature. - Commit your changes:
git commit -m "Add your feature". - Push to the branch:
git push origin feature/your-feature. - Open a pull request.
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
service_template-0.2.0.tar.gz
(66.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file service_template-0.2.0.tar.gz.
File metadata
- Download URL: service_template-0.2.0.tar.gz
- Upload date:
- Size: 66.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab9e26d944b4161cbac6969cbb4821a7a98ec95a9f9ccf7ea06242a6bf3775f9
|
|
| MD5 |
2529a58e008ebe9413edf4e14ad1341d
|
|
| BLAKE2b-256 |
90670419440ce43bc373ca4a9bc1a43224a7ecb29636a071a5a6f2ab920325b9
|
File details
Details for the file service_template-0.2.0-py3-none-any.whl.
File metadata
- Download URL: service_template-0.2.0-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9adc449ef6a71d566627cc1fc22af1583ddda43ad6107815d27fb2d7c6b6819b
|
|
| MD5 |
01e94095b414f2ced007e33c88980aed
|
|
| BLAKE2b-256 |
00db1408e8d786dc494d16d5bce8ec67b51540222fb40372b91c7585f7a7649e
|