from flask import Flask, jsonify

app = Flask(__name__)

@app.route('/hello', methods=['GET'])
def hello():
    """
    This endpoint returns a simple greeting message.
    """
    return jsonify(message="Hello from Python API!")

if __name__ == '__main__':
    # Run the Flask app in debug mode.
    # In a production environment, a production-ready WSGI server like Gunicorn or uWSGI should be used.
    app.run(debug=True, port=5000)
