{"library":"robocorp-storage","title":"Robocorp Asset Storage","description":"robocorp-storage is the Robocorp Asset Storage library, providing functions to manage (read, write, list) assets in the Robocorp Control Room or local development environment. It is part of the larger Robocorp ecosystem, typically updated alongside other Robocorp libraries, with a focus on stability for its core asset management API. The current version is 1.1.0.","language":"python","status":"active","last_verified":"Sat May 16","install":{"commands":["pip install robocorp-storage"],"cli":null},"imports":["from robocorp.storage import get_asset","from robocorp.storage import set_asset","from robocorp.storage import find_assets","from robocorp.storage import Asset"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from robocorp.storage import get_asset, set_asset\nimport os\n\n# Assets stored via robocorp-storage are persisted in Robocorp Control Room\n# when run in a robot, or in a local temporary directory otherwise.\n\nasset_name = \"my-robot-state\"\nasset_value = \"Current processing step: Data extraction complete.\"\n\nprint(f\"Setting asset '{asset_name}'...\")\n# Assets are typically stored as bytes, hence the .encode()\nset_asset(asset_name, asset_value.encode(\"utf-8\"), \"text/plain\")\nprint(f\"Asset '{asset_name}' stored.\")\n\nprint(f\"Retrieving asset '{asset_name}'...\")\nasset = get_asset(asset_name)\n\nif asset:\n    retrieved_value = asset.get_bytes().decode(\"utf-8\")\n    print(f\"Successfully retrieved asset: '{retrieved_value}'\")\n    assert retrieved_value == asset_value\nelse:\n    print(f\"Asset '{asset_name}' not found.\")\n\n# Example of clearing assets (useful for local development cleanup)\n# from robocorp.storage import clear_assets_from_disk\n# if os.environ.get(\"RC_API_SECRET\") is None: # Only clear if running locally, not in Control Room\n#    clear_assets_from_disk()","lang":"python","description":"This quickstart demonstrates how to set and retrieve a simple text asset. When run locally, assets are stored in a temporary directory. When executed within a Robocorp Control Room robot, assets are securely stored in the cloud. The optional cleanup code is commented out as it's typically for local development.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":{"tag":null,"tag_description":null,"last_tested":"2026-05-16","installed_version":"1.0.5","pypi_latest":"1.1.0","is_stale":true,"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":2.2,"avg_import_s":null,"wheel_type":"wheel"},"results":[{"runtime":"python:3.10-alpine","python_version":"3.10","os_libc":"alpine (musl)","variant":"robocorp-storage","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"broken","install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":"21.5M"},{"runtime":"python:3.10-slim","python_version":"3.10","os_libc":"slim (glibc)","variant":"robocorp-storage","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"broken","install_time_s":2.2,"import_time_s":null,"mem_mb":null,"disk_size":"22M"},{"runtime":"python:3.11-alpine","python_version":"3.11","os_libc":"alpine (musl)","variant":"robocorp-storage","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"broken","install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":"23.6M"},{"runtime":"python:3.11-slim","python_version":"3.11","os_libc":"slim (glibc)","variant":"robocorp-storage","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"broken","install_time_s":2.3,"import_time_s":null,"mem_mb":null,"disk_size":"24M"},{"runtime":"python:3.12-alpine","python_version":"3.12","os_libc":"alpine (musl)","variant":"robocorp-storage","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"broken","install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":"15.4M"},{"runtime":"python:3.12-slim","python_version":"3.12","os_libc":"slim (glibc)","variant":"robocorp-storage","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"broken","install_time_s":2,"import_time_s":null,"mem_mb":null,"disk_size":"16M"},{"runtime":"python:3.13-alpine","python_version":"3.13","os_libc":"alpine (musl)","variant":"robocorp-storage","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"broken","install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":"15.1M"},{"runtime":"python:3.13-slim","python_version":"3.13","os_libc":"slim (glibc)","variant":"robocorp-storage","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"broken","install_time_s":2,"import_time_s":null,"mem_mb":null,"disk_size":"16M"},{"runtime":"python:3.9-alpine","python_version":"3.9","os_libc":"alpine (musl)","variant":"robocorp-storage","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"broken","install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":"20.7M"},{"runtime":"python:3.9-slim","python_version":"3.9","os_libc":"slim (glibc)","variant":"robocorp-storage","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"broken","install_time_s":2.6,"import_time_s":null,"mem_mb":null,"disk_size":"21M"}]}}