Jul-05-2019, 10:23 AM
You can make your own web-server with Python.
Here with flask and matplotlib as example:
On top you can put the apache2 or better nginx.
Here with flask and matplotlib as example:
import io import numpy as np import matplotlib.pyplot as plt from flask import Flask from flask import send_file app = Flask(__name__) @app.route('/') def root(): n = 200 x = np.linspace(0.0, 10.0, n) y = np.cumsum(np.random.randn(n)) plt.plot(x, y) file = io.BytesIO() plt.savefig(file, format='png') file.seek(0) return send_file(file, mimetype='image/png') app.run()Later you can let run uwsgi to handle the Python the processes.
On top you can put the apache2 or better nginx.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
All humans together. We don't need politicians!