Skip to main content

Some tools making life a little easier :)

Project description

sytk

Some tools making life a little easier :)

Classes

EzParser

A simple html parser supporting recursive searching.

Decorators

@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.

Functions

clean(path)

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

get_admin()

Get admin right for the script.

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.1.7.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sytk-0.1.7-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sytk-0.1.7.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for sytk-0.1.7.tar.gz
Algorithm Hash digest
SHA256 51dfacb21de0e7386228d3a037fd15ef25923616e992acc336089f7c7bfbcc60
MD5 4e8c00abb7751d78c4975f9e30478ce0
BLAKE2b-256 b7228d04d67083bbc5044d4e79bdaf16bbb998f7f45348e3cd3e7d6d52a905d2

See more details on using hashes here.

File details

Details for the file sytk-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: sytk-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for sytk-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 f94b0550fff0fb820f4f50f962b8b5511dfa93ad88920eccd78ba136962bebd1
MD5 6c2021bbbe8a8cb1a6296cb39fd1f7e8
BLAKE2b-256 199a8b743536e21505029ce2d0a7ddca4c52f2bb06d8084d103d2cef5a7c82c8

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