Skip to main content

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)

Source distribution for wd-pytools 0.0.3
File Size Uploaded
wd_pytools-0.0.3.tar.gz 5.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for wd-pytools 0.0.3
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page