1
1
### PythonMS-CLI
2
2
3
- Python MicroService is a Python utility to manage your Python scripts.
3
+ Python MicroServices is a Python utility to manage your Python scripts of all kinds without the hassle of creating a service for each .
4
4
5
- You can remotely check if they are up and running, their state, automatically restart them in case of failure and log and kill, stop or restart them.
5
+ You can remotely deploy them using git, then access the console to check if they are up and running.
6
+ Monitor their state, automatically restart them in case of failure, log, kill, stop or restart them.
7
+
8
+ ### How to use this?
9
+
10
+ #### Step 1
11
+ Write your Python script
12
+ #### Step 2
13
+ Add your repository's configuration to your config.py file
14
+ #### Step 3
15
+ Once you are connected to the console you can check your script's status with the list command
16
+ #### Step 4
17
+ Display your script's log using the log command
6
18
7
19
## Requirements
8
20
9
- - Python3.4
10
- - Pip (recommended)
21
+ - systemd
22
+ - Python3.4+
23
+ - pip (recommended)
11
24
12
25
## Setup
13
26
@@ -25,10 +38,8 @@ Before starting to use PythonMS you must configure it. You can use the config.ex
25
38
26
39
```
27
40
run={
28
- "SMTPTester" : {"directory":"SMTPTester", "restart":False, "main_method":"main", "repository":"https://github.com/lup\
29
- in012345/SMTPTester.git"},
30
- "epitech_api_flask" : {"repository":"https://github.com/lupin012345/epitech-api-public.git", "restart": False, "main_\
31
- method":"app.run", "directory":"epitechApi", "flask":{"host":"0.0.0.0", "port":8081}},
41
+ "SMTPTester" : {"directory":"SMTPTester", "restart":False, "main_method":"main", "repository":"https://github.com/lp1dev/SMTPTester.git"},
42
+ "epitech_api_flask" : {"repository":"https://github.com/lp1dev/epitech-api-public.git", "restart": False, "main_method":"app.run", "directory":"epitechApi", "flask":{"host":"0.0.0.0", "port":8081}},
32
43
"myScript" : {"directory":"myscript_dir", "restart":True, "main_method":"run"}
33
44
}
34
45
0 commit comments