I/O ToolKit (IOTk)
IOTk is a set of functions that make it easy to display output and get input from the command line.
Input Functions
- ask_string
Gets a string value from the user.
- ask_int
Asks the user for a value and makes sure that it’s an integer.
- ask_yes_no
Checks for “yes” or “no” against 8 languages, plus plain old “y” and “n”.
- ask_filename
Asks the user for a filename, then verifies that it exists.
- ask_folder
Asks the user for a folder name, then verifies that it exists.
- ask_regex
Gets a string from the user and verifies it against a regular expression. It can be supplied a custom invalidation message so the user doesn’t see “Must match the regular expression: “ followed by a bunch of apparently random characters and stop using your program out of frustration.
Output Functions
- get_columns
If the COLUMNS environment variable is set, this will take it. If not, it assumes 80.
- print_dict
Prints the keys and values in a dictionary, with incredibly flexible formatting options.
- print_list
Prints the items in a list, with the same formatting options as print_dict.
- wrap_str
A powerful word-wrapping function that will wrap words to a certain number of columns.
- print_string
A thick wrapper around wrap_str that provides alignment and fill options.
- print_header
Writes a line of text and underlines it.
- trim_docstring
The famous implementation from PEP 257, this will strip leading whitespace from a docstring.
Metadata
Release files for IOTk 1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| IOTk-1.1.tar.gz | 4.6 kB | Without provenance | Details for IOTk-1.1.tar.gz |
Release files / IOTk-1.1.tar.gz
| Download URL | IOTk-1.1.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1e39b38ada3731b0f22c933e282e70ddb142a3a8617a29ee0f39e0e2bd1cb895
|
|
BLAKE2b-256 checksum How to use checksums |
c6c658a0c71fbc2cadda5c353884cb30cf58199b5a7060477a33cc28b49932ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for IOTk 1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.