microservice-template


Namemicroservice-template JSON
Version 0.0.6 PyPI version JSON
download
home_page
SummaryMicroservicetemplate
upload_time2023-11-05 22:07:39
maintainer
docs_urlNone
authorPixelfehler
requires_python
license
keywords python microservice
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Microservice-Template

**Microservice-Template** is a Python module that provides a simple template class for creating microservices using the Flask web framework. This template class is designed to streamline the process of creating microservices by providing common functionality that is often repeated in microservice development.

## Features

- Provides a base class, `Microservice`, which includes a basic Flask application setup with CORS support.
- Allows microservices to easily define routes and endpoints with minimal boilerplate code.
- Encourages best practices for microservice development, making it easier to maintain and scale microservices.

## Usage

To use the **Microservice-Template** in your microservice project, simply inherit from the `Microservice` class and add your custom routes and endpoints. The template class takes care of the core setup, allowing you to focus on the specific functionality of your microservice.

```python
from microservice_template import Microservice

class MyMicroservice(Microservice):
    def __init__(self):
        super().__init__("my-service", 5000)

    def custom_route(self):
        # Define your custom route logic here

if __name__ == '__main__':
    my_service = MyMicroservice()
    my_service.run()
```


            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "microservice-template",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "python,microservice",
    "author": "Pixelfehler",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/d7/8d/847e4c252011f35ed9ba765ef038197b2c47758e809ecba86565bf719157/microservice_template-0.0.6.tar.gz",
    "platform": null,
    "description": "# Microservice-Template\r\n\r\n**Microservice-Template** is a Python module that provides a simple template class for creating microservices using the Flask web framework. This template class is designed to streamline the process of creating microservices by providing common functionality that is often repeated in microservice development.\r\n\r\n## Features\r\n\r\n- Provides a base class, `Microservice`, which includes a basic Flask application setup with CORS support.\r\n- Allows microservices to easily define routes and endpoints with minimal boilerplate code.\r\n- Encourages best practices for microservice development, making it easier to maintain and scale microservices.\r\n\r\n## Usage\r\n\r\nTo use the **Microservice-Template** in your microservice project, simply inherit from the `Microservice` class and add your custom routes and endpoints. The template class takes care of the core setup, allowing you to focus on the specific functionality of your microservice.\r\n\r\n```python\r\nfrom microservice_template import Microservice\r\n\r\nclass MyMicroservice(Microservice):\r\n    def __init__(self):\r\n        super().__init__(\"my-service\", 5000)\r\n\r\n    def custom_route(self):\r\n        # Define your custom route logic here\r\n\r\nif __name__ == '__main__':\r\n    my_service = MyMicroservice()\r\n    my_service.run()\r\n```\r\n\r\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Microservicetemplate",
    "version": "0.0.6",
    "project_urls": null,
    "split_keywords": [
        "python",
        "microservice"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1526510e182f280976a1ea41e92552790cb0b150862b2848ca08a548bacfdd58",
                "md5": "438e3ad2f3853dcc353b8f9f5a0a4525",
                "sha256": "29b7daad3f03764d07ba70476e11dffccd170d5d61f43508a3c1784467168fba"
            },
            "downloads": -1,
            "filename": "microservice_template-0.0.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "438e3ad2f3853dcc353b8f9f5a0a4525",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 2668,
            "upload_time": "2023-11-05T22:07:38",
            "upload_time_iso_8601": "2023-11-05T22:07:38.114387Z",
            "url": "https://files.pythonhosted.org/packages/15/26/510e182f280976a1ea41e92552790cb0b150862b2848ca08a548bacfdd58/microservice_template-0.0.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d78d847e4c252011f35ed9ba765ef038197b2c47758e809ecba86565bf719157",
                "md5": "e8eb12761d0d1d9dc270526615bb1dbf",
                "sha256": "452bcd1f773635c7303d73c7865e44bd594ee97406bd7d0c55f27187227bd3af"
            },
            "downloads": -1,
            "filename": "microservice_template-0.0.6.tar.gz",
            "has_sig": false,
            "md5_digest": "e8eb12761d0d1d9dc270526615bb1dbf",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 2388,
            "upload_time": "2023-11-05T22:07:39",
            "upload_time_iso_8601": "2023-11-05T22:07:39.391460Z",
            "url": "https://files.pythonhosted.org/packages/d7/8d/847e4c252011f35ed9ba765ef038197b2c47758e809ecba86565bf719157/microservice_template-0.0.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-05 22:07:39",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "microservice-template"
}
        
Elapsed time: 0.14134s