You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PyMS, Python MicroService, is a collections of libraries, best practices and recommended ways to build microservices with Python.
13
+
PyMS, Python MicroService, is a [Microservice chassis pattern](https://microservices.io/patterns/microservice-chassis.html)
14
+
like Spring Boot (Java) or Gizmo (Golang). PyMS is a collection of libraries, best practices and recommended ways to build
15
+
microservices with Python which handles cross-cutting concerns:
16
+
17
+
- Externalized configuration
18
+
- Logging
19
+
- Health checks
20
+
- Metrics
21
+
- Distributed tracing
22
+
23
+
PyMS is powered by [Flask](https://flask.palletsprojects.com/en/1.1.x/), [Connexion](https://github.com/zalando/connexion)
24
+
and [Opentracing](https://opentracing.io/).
25
+
26
+
Get started with [Installation](installation.md) and then get an overview with the [Quickstart](quickstart.md).
14
27
15
28
## Documentation
16
29
@@ -26,15 +39,15 @@ nothing to create professional projects. Most articles say:
26
39
- (Sometimes) "Create a swagger specs"
27
40
- "TA-DA! you have a microservice"
28
41
29
-
But... what happens with our configuration out of code like Kubernetes configmap? what happens with transactionality?
42
+
But... what happens with our configuration out of code like Kubernetes configmap? what happens with transactionality?
30
43
If we have many microservices, what happens with traces?.
31
44
32
45
There are many problems around Python and microservices and we can`t find anyone to give a solution.
33
46
34
-
We start creating these projects to try to solve all the problems we have found in our professional lives about
47
+
We start creating these projects to try to solve all the problems we have found in our professional lives about
35
48
microservices architecture.
36
49
37
-
Nowadays, is not perfect and we have a looong roadmap, but we hope this library could help other felas and friends ;)
50
+
Nowadays, is not perfect and we have a looong roadmap, but we hope this library could help other fellas and friends ;)
38
51
39
52
## Installation
40
53
@@ -97,6 +110,41 @@ override it.
97
110
98
111
See [Documentation](https://py-ms.readthedocs.io/en/latest/) to learn more.
99
112
113
+
## Create a project from scaffold
114
+
115
+
PyMS has a command line option to create a project template like [Microservices Scaffold](https://github.com/python-microservices/microservices-scaffold).
116
+
This command use [cookiecutter](https://github.com/cookiecutter/cookiecutter) to download and install this [template](https://github.com/python-microservices/microservices-template)
117
+
118
+
**[Warning]** You must run first `pip install cookiecutter==1.7.0`
create-key Generate a Key to encrypt strings in config
26
+
startproject Generate a project from https://github.com/python-
27
+
microservices/microservices-template
28
+
29
+
```
30
+
31
+
## Start a project
32
+
33
+
Command:
34
+
```bash
35
+
pyms startproject
36
+
```
37
+
38
+
This command create a project template like [Microservices Scaffold](https://github.com/python-microservices/microservices-scaffold).
39
+
This command use [cookiecutter](https://github.com/cookiecutter/cookiecutter) to download and install this [template](https://github.com/python-microservices/microservices-template)
40
+
41
+
!!! warning
42
+
You must run first `pip install cookiecutter==1.7.0`
43
+
44
+
## Create a key encrypt/decrypt file
45
+
46
+
Command:
47
+
```bash
48
+
pyms create-key
49
+
```
50
+
51
+
Create a key file to encrypt strings in your configuration file. This key is created with [AES](https://en.wikipedia.org/wiki/Advanced_Encryption_Standard).
52
+
You can run the next command in the terminal. See [Encrypt/Decrypt Configuration](encrypt_decryt_configuration.md)
53
+
for more information
54
+
55
+
## Encrypt a string
56
+
57
+
Command:
58
+
```bash
59
+
pyms encrypt [string]
60
+
```
61
+
62
+
Encrypt a string to use in your [configfile](configuration.md)
Copy file name to clipboardExpand all lines: docs/quickstart.md
+37
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,43 @@ if it was defined in the pyms configuration block, create a tracer, add health-c
45
45
`ms` attribute and you can access to it with `current_app.ms`. This steps has their each functions and you can easy override it.
46
46
3. `create_app` return the flask instance and you can interact with it as a typical flask app
47
47
48
+
# Create a project from scaffold
48
49
50
+
PyMS have a command line option to create a project template like [Microservices Scaffold](https://github.com/python-microservices/microservices-scaffold).
51
+
This command use [cookiecutter](https://github.com/cookiecutter/cookiecutter) to download and install this [template](https://github.com/python-microservices/microservices-template)
52
+
53
+
!!! warning
54
+
You must run first `pip install cookiecutter==1.7.0`
0 commit comments