wd_pytools
Introduce
This is the tools for python.
wdcmd
import time
from wdcmd import Info, entity
class TestServer:
config_path = 'config.yaml'
status = True
def info_run(self):
return Info("run", "run application") \
.set_args("c", self.config_path, "閰嶇疆鏂囦欢鍦板潃"), self.run
def run(self, ctx):
print(f"閰嶇疆鏂囦欢鍦板潃锛歿ctx.get('c')}")
while self.status:
print("test run ....")
time.sleep(1)
def exit(self):
self.status = False
print("server stop over")
if __name__ == "__main__":
server = TestServer()
entity.register(*server.info_run()).on_exits(server.exit).launch()
Release files for wd-pytools 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| wd_pytools-0.0.3.tar.gz | 5.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wd_pytools-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.6 kB
Release files / wd_pytools-0.0.3.tar.gz
| Download URL | wd_pytools-0.0.3.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5a65d473441ac8ef4725cdb1d02c6ec9208d52facd67c2b79b6acd18bb3eff56
|
|
BLAKE2b-256 checksum How to use checksums |
b4a3b741730b8f39cb5fcb001955db42e539258d3fda372fbad167db43d29548
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.5
|
Release files / wd_pytools-0.0.3-py3-none-any.whl
| Download URL | wd_pytools-0.0.3-py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a3843eac125f55ee646affa138619902c7f62fb4d43013a072a49875124677b4
|
|
BLAKE2b-256 checksum How to use checksums |
cb962f4f16700241491b31a6593c656e9ecac698c6a59a6d6d26fe938b55eb89
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.5
|