Skip to content

Commit ed126cc

Browse files
authored
Merge pull request #15 from python-microservices/feature/library_doc
Documentation moved and updated from the project that uses the library.
2 parents fab57f8 + 85b07e0 commit ed126cc

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,24 @@
1414
```bash
1515
pip install py-ms
1616
```
17+
18+
## Structure
19+
20+
### pyms/config
21+
Module to read yaml or json configuration from a dictionary or a path.
22+
23+
### pyms/flask/app
24+
With the funcion `create_app` initialize the Flask app, register [blueprints](http://flask.pocoo.org/docs/0.12/blueprints/)
25+
and intialize all libraries like Swagger, database, trace system, custom logger format, etc.
26+
27+
### pyms/flask/healthcheck
28+
This views is usually used by Kubernetes, Eureka and other systems to check if our application is up and running.
29+
30+
### pyms/logger
31+
Print logger in JSON format to send to server like Elasticsearch. Inject span traces in logger.
32+
33+
### pyms/rest_template
34+
Encapsulate common rest operations between business services propagating trace headers if configured.
35+
36+
### pyms/tracer
37+
Create an injector `flask_opentracing.FlaskTracer` to use in our projects

pyms/config/confile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Module to read yaml conf"""
1+
"""Module to read yaml or json conf"""
22
import logging
33
import os
44

0 commit comments

Comments
 (0)