Skip to content

Commit

Permalink
adding print_banner with pyfiglet
Browse files Browse the repository at this point in the history
  • Loading branch information
mbay-ODW committed Oct 12, 2022
1 parent a15ec64 commit d45a5aa
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
10 changes: 9 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import os
import sys
import json

import pyfiglet
from resources.events import Events
from resources.alarms import Alarms
from resources.measurements import Measurements
Expand All @@ -32,6 +32,13 @@
api.add_resource(Alarms, '/alarm/alarms')
logger.debug('Alarms resources added')

def print_banner():
logger.info(pyfiglet.figlet_format("Mutlitenant Decoder"))
logger.info("Author:\t\tMurat Bayram")
logger.info("Date:\t\t19th Sept. 2022")
logger.info("Description:\tA service that transforms the source to the internalId while given the externalId via arguements.")
logger.info("Documentation:\tPlease refer to the c8y-documentation wiki to find service description")


# Verify the status of the microservice
@app.route('/health')
Expand All @@ -53,4 +60,5 @@ def environment():

if __name__ == '__main__':
logger.info("Starting")
print_banner()
app.run(host='0.0.0.0', port=80)
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
requests == 2.24.0
jsonify == 0.5
Flask-RESTful ==0.3.9
cacheout==0.14.1
cacheout==0.14.1
pyfiglet

0 comments on commit d45a5aa

Please sign in to comment.