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
Close
Hashes for ofunctions.delayed_keyboardinterrupt-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a61e50e66bebfdbcbdee072076a2d046d4d37c01e665735e75bd2ce9070bbf60 |
|
MD5 | 33af37b8ec2c7f8937e1259306ae5c44 |
|
BLAKE2b-256 | 52723454ed1e8e8bc7becd505e5042c80c8a51e3cb05c39fb6435deea1ddd734 |
Close
Hashes for ofunctions.delayed_keyboardinterrupt-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b7b707c288a6bd8c2f5c3269ec82eca1a320de83abb619eb9f522db7eb019d1 |
|
MD5 | 728beb26a69ac4ddbec06bda11feb6b3 |
|
BLAKE2b-256 | ebd384bed596f94a7d09bb6d890d9b3ad9c32163e3a3d4629fcbc2fd6ee0744a |