Skip to content

NRG-UCalgary/test-service-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Overview

This is a test service written in Python 3; for now, it is a proof-of-concept echo server to test against the backend.

Setup and Run

Python 3+ and Flask need to be installed. Flask can be installed by using pip:

pip install flask

Alternatively, if pip is not in your path, you can also run:

python -m pip install flask

Standalone

Run the file source.py; the service will be running at port 3000. Note that you cannot interact with it directly; it only responds to POST requests containing a JSON file with a name field; cURL can be used to send POST JSON, as shown here

NRG-Platform

TBD

How to contribute

TBD

Commit Message Convention

Use this description

Features

  • JSON data containing a 'name' field, sent via POST, will be returned to the user as a string.

To be Implemented

  • Returning a JSON response
  • Logging connections

Code Style

PEP 8 should be followed at all times; the pycodestyle linter can be used to ensure code is PEP 8 compliant, and can be installed via pip.

Troubleshooting

TBD

Contact

TBD

About

A test service written in Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages