Skip to main content

Intercept CTRL+C signal in your Python code

Project description

ofunctions

Collection of useful python functions

License Percentage of issues still open Linux Build Status GitHub Release

ofunctions is a set of various recurrent functions amongst

  • bisection: bisection algorithm for any function with any number of arguments, works LtoR and RtoL
  • checksums: various SHA256 tools for checking and creating checksum files
  • delayed_keyboardinterrupt: Just a nifty tool to catch CTRL+C signals
  • file_utils:
  • json_sanitize: make sure json does not contain unsupported chars, yes I look at you Windows eventlog
  • logger_utils: basic no brain console + file log creation
  • mailer: send emails regardless of ssl/tls protocols, in batch or as single mail, with attachments
  • network: various tools like ping, internet check, MTU probing and public IP discovery
  • platform: nothing special here, just check what arch we are running on
  • process: simple kill-them-all function to terminate subprocesses
  • pw_gen: basic password generator
  • service_control: control Windows / Linux service start / stop / status
  • string_handling: Remove accents / special chars from strings

Setup

pip install ofunctions.<subpackage>

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

Built Distribution

File details

Details for the file ofunctions.delayed_keyboardinterrupt-0.1.0.tar.gz.

File metadata

  • Download URL: ofunctions.delayed_keyboardinterrupt-0.1.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.8.6

File hashes

Hashes for ofunctions.delayed_keyboardinterrupt-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a61e50e66bebfdbcbdee072076a2d046d4d37c01e665735e75bd2ce9070bbf60
MD5 33af37b8ec2c7f8937e1259306ae5c44
BLAKE2b-256 52723454ed1e8e8bc7becd505e5042c80c8a51e3cb05c39fb6435deea1ddd734

See more details on using hashes here.

File details

Details for the file ofunctions.delayed_keyboardinterrupt-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ofunctions.delayed_keyboardinterrupt-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6b7b707c288a6bd8c2f5c3269ec82eca1a320de83abb619eb9f522db7eb019d1
MD5 728beb26a69ac4ddbec06bda11feb6b3
BLAKE2b-256 ebd384bed596f94a7d09bb6d890d9b3ad9c32163e3a3d4629fcbc2fd6ee0744a

See more details on using hashes here.

Supported by

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