easyTCP2
install
pip install easyTCP2
what is easyTCP2?
it is the same concept like easyTCP (first version) but more stable, understandable, flexable, readable and more features (and also because i was too layz to update the last one) this gives you full controll on your server and make it easy and stable
inspiration
I have inspired by discord.py package because this help you build bots so easily and they are useful so I wanted an easy way to build asyncronus server so I have did many tests and took inspiration from the discord.py code (no I dont copy code accept this function) I dont take cradit for things I didnt think/did all by myself
what I get from that package?
| easyTCP | easyTCP2 | |
|---|---|---|
| user levels | yes | yes |
| groups | no | yes |
| events | no | yes |
| stable | not much | yes |
| logging | no | yes |
| encryption | yes | no |
| logging | no | yes |
why there is no encryption like last version?
it is the best to give you the control about those things (there is encryption support)
when to use
if you creating a small project that needs a server or an app that module can be very useful
examples
example files here. I add there examples in any update if there is a missing version in the example it is because it is not a big change or even only bug fixing
quick start
import asyncio
from easyTCP2.Core.Settings import Settings
from easyTCP2.Server import Server
Settings.use_default() # using default
@Server.ready()
async def foo(server):
print("Server running (ip: %s | port: %d)" %(server.ip, server.port))
@Server.Event(5)
async def oof():
print("oof event called :)")
async def main(loop):
server = Server(loop=loop)
await server
if __name__=="__main__":
loop = asyncio.get_event_loop()
loop.run_until_complete()
try:
loop.run_forever()
finally:
loop.close()
if you like or wanna try, install it! it is not hard
Metadata
Release files for easyTCP2 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| easyTCP2-0.1.0.tar.gz | 18.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| easyTCP2-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 41.8 kB
Release files / easyTCP2-0.1.0.tar.gz
| Download URL | easyTCP2-0.1.0.tar.gz |
|---|---|
| Size | 18.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a923bd4e4c563d1cfbebf2fcc32001c22ad56acb8c937eb1ca848bf2cf164fd5
|
|
BLAKE2b-256 checksum How to use checksums |
5a612a58c05f36a561e8b83a61681759e4f79b2ca46ba9c26ca439512bf7712c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
|
Release files / easyTCP2-0.1.0-py3-none-any.whl
| Download URL | easyTCP2-0.1.0-py3-none-any.whl |
|---|---|
| Size | 23.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8daab5767de59365892ddad5f5ccfd4696344939c4f56a97feae20647203d8f0
|
|
BLAKE2b-256 checksum How to use checksums |
491fcb452b2a03d2d397a654da6f207e3076de93406456774d2cbc97644a781b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
|