Intercept CTRL+C signal in your Python code
Project description
ofunctions
Collection of useful python functions
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
Release history Release notifications | RSS feed
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | a61e50e66bebfdbcbdee072076a2d046d4d37c01e665735e75bd2ce9070bbf60 |
|
MD5 | 33af37b8ec2c7f8937e1259306ae5c44 |
|
BLAKE2b-256 | 52723454ed1e8e8bc7becd505e5042c80c8a51e3cb05c39fb6435deea1ddd734 |
File details
Details for the file ofunctions.delayed_keyboardinterrupt-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: ofunctions.delayed_keyboardinterrupt-0.1.0-py3-none-any.whl
- Upload date:
- Size: 29.5 kB
- Tags: Python 3
- 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b7b707c288a6bd8c2f5c3269ec82eca1a320de83abb619eb9f522db7eb019d1 |
|
MD5 | 728beb26a69ac4ddbec06bda11feb6b3 |
|
BLAKE2b-256 | ebd384bed596f94a7d09bb6d890d9b3ad9c32163e3a3d4629fcbc2fd6ee0744a |