Skip to main content

Some tools making life a little easier :)

Project description

sytk

Some tools making life a little easier :)

@admin

Apply for the administrator right for the decorated function.

@cache

Cache the {'func-params': return value} of the decorated functions. It is mainly used on functions calculating duplicate data.

@debug

  • Show parameters and return value of the decorated function in a vivid color.
  • Meanwhile, in the same usage with print(), d_print()is also available to show the debug information in functions decorated with @debug.

@print2log

  • Redirect all the context printed by print() into file named {file}_[{func}].log.
  • It can also catch Exception.

clean(path)

Delete code lines containing '@debug' and 'd_print'. It is used to turn projects into productions.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sytk-0.0.9.tar.gz (2.9 kB view details)

Uploaded Source

File details

Details for the file sytk-0.0.9.tar.gz.

File metadata

  • Download URL: sytk-0.0.9.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.2

File hashes

Hashes for sytk-0.0.9.tar.gz
Algorithm Hash digest
SHA256 e28b0d85d6d42138fede91e80b325d7614b023b8431f1d6dd4dfb7fc231f65ef
MD5 57c689dff0dcac4dc917708611225e85
BLAKE2b-256 1851003316628c9cb0660e0fc77d4973164c2523bfb7b11ac87012b4c91cfdd0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page