{"id":13753839,"url":"https://github.com/ssola/python-flask-microservice","last_synced_at":"2026-03-09T15:09:11.146Z","repository":{"id":44930786,"uuid":"84106986","full_name":"ssola/python-flask-microservice","owner":"ssola","description":"Skeleton of a Microservice built with the Flask","archived":false,"fork":false,"pushed_at":"2022-03-30T09:22:29.000Z","size":23,"stargazers_count":589,"open_issues_count":5,"forks_count":185,"subscribers_count":42,"default_branch":"master","last_synced_at":"2024-11-16T06:30:53.221Z","etag":null,"topics":["flask","microservice","python","skeleton"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ssola.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-06T18:30:52.000Z","updated_at":"2024-11-07T00:47:57.000Z","dependencies_parsed_at":"2022-08-27T23:12:13.746Z","dependency_job_id":null,"html_url":"https://github.com/ssola/python-flask-microservice","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssola%2Fpython-flask-microservice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssola%2Fpython-flask-microservice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssola%2Fpython-flask-microservice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssola%2Fpython-flask-microservice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ssola","download_url":"https://codeload.github.com/ssola/python-flask-microservice/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253329025,"owners_count":21891564,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flask","microservice","python","skeleton"],"created_at":"2024-08-03T09:01:30.956Z","updated_at":"2026-03-09T15:09:11.108Z","avatar_url":"https://github.com/ssola.png","language":"Python","readme":"# python-flask-microservice\n\nThis is the code used in this series of articles: \n\n- https://medium.com/p/building-microservices-with-python-part-i-5240a8dcc2fb\n- https://medium.com/@ssola/building-microservices-with-python-part-2-9f951199094a#.z48wq941g\n- https://medium.com/@ssola/building-microservices-with-python-part-3-a556a4c4bc00#.yn4p8rstp\n\nThis is a basic approach of building a Microservice on top of Flask, with some useful packages like:\n\n- [Flask](http://flask.pocoo.org/)\n- [Flask-Injector](https://pypi.python.org/pypi/Flask-Injector)\n- [Connexion](https://github.com/zalando/connexion)\n\n# Requirements\n\nWe are going to build a microservice to index rooms information coming from another service (crawler). This service will be responsible for indexing the information into Elasticsearch.\n\nThe indexing will be a process of:\n\n- Validate and sanitize the data\n- Get some metadata from the room information like geolocalization\n- Upload the given images URL to [Amazon S3](https://github.com/boto/boto)\n- Send an event to [RabbitMQ](https://github.com/pika/pika) every time a new room has been indexed serializing the payload with Avro.\n\n\n**Endpoints**:\n\n|Method|URI|Description| Status |\n|------|---|-----------|--------|\n| POST | /room | it will receive the room payload, and it will proceed to index it | **Development** |\n| PATCH | /room/{id} | this PATCH method will allow us to make changes on the indexed item | Not started |\n| DELETE | /room/{id} | this method will remove the room from the index | Not started |\n| GET | /room/{id} | this method will return the room data for a given room id | Not started |\n| GET | /health-check | This endpoint retuns the state of the service | Not started |\n\n# Running the environment\n\nYou need to have Docker installed in your machine, after that, just run this command `docker-compose build \u0026\u0026 docker-compose up -d`.\n","funding_links":[],"categories":["python","Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fssola%2Fpython-flask-microservice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fssola%2Fpython-flask-microservice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fssola%2Fpython-flask-microservice/lists"}