an esay way to user async server
python3 -m pip3 install -Uv easyTCP
files for example here.
- encryption
- BUILD IN requests
- user level
superuser/normal user
import asyncio
from easyTCP.SERVER.backend import SERVER
from easyTCP.SERVER.utils import DEFAULT_SETTINGS
from easyTCP.SERVER.utils.BUILD_IN import BUILD_IN
@SERVER.on_ready
async def x(server):
print("[+] SERVER started (IP: %s | PORT: %d)" %(server.ip, server.port))
async def main(loop):
server = SERVER('127.0.0.1', 25569, None, settings=DEFAULT_SETTINGS, superuser_password='123', loop=loop)
await server.start()
if __name__=='__main__':
loop=asyncio.get_event_loop()
loop.run_until_complete(main(loop))
try:
loop.run_forever()
finally:
loop.close()
(this is a server that only show when he is ready but everything is still working like removing/adding
clients
and build in commands are loaded recommanded looking at here)