{"library":"pyiotools","title":"pyiotools","description":"pyiotools is a Python library that offers various utilities for handling I/O operations, including an IOHandler class for collecting input programmatically, via command-line, or GUI with an API similar to `argparse`. It also includes utilities for caching, serialization, and secret management. The library is actively maintained with frequent minor releases, currently at version 0.3.18, but is explicitly noted as being under active development with a warning that its API may undergo significant breaking changes.","language":"python","status":"active","last_verified":"Fri May 15","install":{"commands":["pip install pyiotools"],"cli":{"name":"pyio","version":"sh: 1: pyio: not found"}},"imports":["from iotools import IOHandler","from iotools import Cache","from iotools import Secrets","from iotools import Serializer","from iotools import Console"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import os\nfrom iotools import IOHandler, Cache\n\n# 1. Using IOHandler (similar to argparse)\n# Create an IOHandler instance for input collection\nprogram_io = IOHandler(\n    'my_app', \n    'A simple application demonstrating iotools input handling.'\n)\nprogram_io.add_argument('--name', help='Your name', default='Guest')\nprogram_io.add_argument('--verbose', action='store_true', help='Enable verbose output')\n\n# In a real script, this would parse sys.argv.\n# For programmatic quickstart, we simulate parsed arguments.\nclass MockArgs:\n    def __init__(self, name, verbose):\n        self.name = name\n        self.verbose = verbose\n\n# Use environment variables to make it runnable for testing\nargs = MockArgs(\n    name=os.environ.get('IOT_NAME', 'User'),\n    verbose=os.environ.get('IOT_VERBOSE', 'False').lower() == 'true'\n)\n\nprint(f\"Hello, {args.name}!\")\nif args.verbose:\n    print(\"Verbose output enabled.\")\n\n# 2. Using Cache for persistent data storage\ncache_name = os.environ.get('IOT_CACHE_NAME', 'my_app_data')\nmy_cache = Cache(cache_name)\n\n# Put and get data\nmy_cache.put('favorite_color', os.environ.get('IOT_COLOR', 'blue'))\nprint(f\"Favorite color from cache: {my_cache.get('favorite_color')}\")\n\n# Update data\nmy_cache.put('favorite_color', 'red')\nprint(f\"Updated favorite color: {my_cache.get('favorite_color')}\")\n\n# Pop data\npopped_color = my_cache.pop('favorite_color')\nprint(f\"Popped favorite color: {popped_color}\")\nprint(f\"Is favorite_color still in cache? {my_cache.get('favorite_color', 'Not Found')}\")","lang":"python","description":"This quickstart demonstrates the core `IOHandler` for defining and (simulated) parsing arguments, and the `Cache` utility for simple persistent key-value storage. It uses environment variables to make the example interactive and runnable.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":{"tag":null,"tag_description":null,"last_tested":"2026-05-15","installed_version":"0.3.18","pypi_latest":"0.3.18","is_stale":false,"summary":{"python_range":"3.10–3.9","success_rate":50,"avg_install_s":20.8,"avg_import_s":null,"wheel_type":"sdist"},"results":[{"runtime":"python:3.10-alpine","python_version":"3.10","os_libc":"alpine (musl)","variant":"pyiotools","exit_code":1,"wheel_type":null,"failure_reason":"build_error","import_side_effects":null,"install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":null},{"runtime":"python:3.10-slim","python_version":"3.10","os_libc":"slim (glibc)","variant":"pyiotools","exit_code":0,"wheel_type":"sdist","failure_reason":null,"import_side_effects":"broken","install_time_s":20.5,"import_time_s":null,"mem_mb":null,"disk_size":"535M"},{"runtime":"python:3.11-alpine","python_version":"3.11","os_libc":"alpine (musl)","variant":"pyiotools","exit_code":1,"wheel_type":null,"failure_reason":"build_error","import_side_effects":null,"install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":null},{"runtime":"python:3.11-slim","python_version":"3.11","os_libc":"slim (glibc)","variant":"pyiotools","exit_code":0,"wheel_type":"sdist","failure_reason":null,"import_side_effects":"broken","install_time_s":19.7,"import_time_s":null,"mem_mb":null,"disk_size":"556M"},{"runtime":"python:3.12-alpine","python_version":"3.12","os_libc":"alpine (musl)","variant":"pyiotools","exit_code":1,"wheel_type":null,"failure_reason":"build_error","import_side_effects":null,"install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":null},{"runtime":"python:3.12-slim","python_version":"3.12","os_libc":"slim (glibc)","variant":"pyiotools","exit_code":0,"wheel_type":"sdist","failure_reason":null,"import_side_effects":"broken","install_time_s":20.6,"import_time_s":null,"mem_mb":null,"disk_size":"549M"},{"runtime":"python:3.13-alpine","python_version":"3.13","os_libc":"alpine (musl)","variant":"pyiotools","exit_code":1,"wheel_type":null,"failure_reason":"build_error","import_side_effects":null,"install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":null},{"runtime":"python:3.13-slim","python_version":"3.13","os_libc":"slim (glibc)","variant":"pyiotools","exit_code":0,"wheel_type":"sdist","failure_reason":null,"import_side_effects":"broken","install_time_s":20.2,"import_time_s":null,"mem_mb":null,"disk_size":"549M"},{"runtime":"python:3.9-alpine","python_version":"3.9","os_libc":"alpine (musl)","variant":"pyiotools","exit_code":1,"wheel_type":null,"failure_reason":"build_error","import_side_effects":null,"install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":null},{"runtime":"python:3.9-slim","python_version":"3.9","os_libc":"slim (glibc)","variant":"pyiotools","exit_code":0,"wheel_type":"sdist","failure_reason":null,"import_side_effects":"broken","install_time_s":23.2,"import_time_s":null,"mem_mb":null,"disk_size":"529M"}]}}