Version 0.3.0
Enhanced multithreading engine, bugs fixed and more!
This commit is contained in:
+29
@@ -0,0 +1,29 @@
|
||||
"""
|
||||
This is the Amethyst API mode Python interface whatevers.
|
||||
Docs will follow.
|
||||
"""
|
||||
|
||||
# Below go imports.
|
||||
import sys
|
||||
import os
|
||||
|
||||
if not os.getcwd() in sys.path:
|
||||
sys.path.append(os.getcwd())
|
||||
import amethyst
|
||||
|
||||
|
||||
class PES:
|
||||
"""
|
||||
class
|
||||
"""
|
||||
|
||||
def __init__(self):
|
||||
# DO NOT USE THIS CLASS FOR PROGRAM, ONLY ON_REQUEST PLEASE!!
|
||||
# Below go definitions to get things working.
|
||||
self.build_response = amethyst.WebServer.build_binary_response
|
||||
self.fh = amethyst.FileHandler("..")
|
||||
self.rq = amethyst.RequestParser()
|
||||
self.THREAD_SAFETY: bool = True
|
||||
|
||||
def on_request(self, req):
|
||||
return self.build_response(200, b"Heyhey! This is the default PES script!", "text/html")
|
||||
Reference in New Issue
Block a user