{"id":28469,"library":"xocto","title":"xocto","description":"A collection of Python service utilities used by Kraken Technologies, providing helpers for strings, dates, storage, retries, and more. Current version 9.0.3, requires Python >=3.9. Released regularly as part of Kraken's internal tooling.","status":"active","version":"9.0.3","language":"python","source_language":"en","source_url":"https://github.com/octoenergy/xocto","tags":["utilities","kraken","storage","retry","strings","dates"],"install":[{"cmd":"pip install xocto","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"wrong":"from xocto import storage","symbol":"importlib","correct":"from xocto import importlib"}],"quickstart":{"code":"import os\nfrom xocto import storage, strings, dates\n\nstorage.set_storage(storage.LocalStorage())\n\n# Example: generate a slug\ntitle = \"Hello World!\"\nslug = strings.slugify(title)\nprint(slug)  # hello-world\n\n# Example: get current UTC time\nnow = dates.utc_now()\nprint(now)\n","lang":"python","description":"Basic usage showing storage setup, string slugification, and UTC date helper."},"warnings":[{"fix":"Call storage.set_storage(storage.LocalStorage()) at startup. Update imports from old names.","message":"In version 9.0.0, the storage module's API changed. set_storage must be called before any storage operations, and the storage classes were renamed (e.g., LocalStorage instead of LocalFileStorage).","severity":"breaking","affected_versions":">=9.0.0"},{"fix":"Switch to the new names: LocalStorage, S3Storage, etc.","message":"The old storage classes (e.g., LocalFileStorage, S3Storage) are deprecated in favour of LocalStorage, S3Storage, etc. without the 'File' prefix.","severity":"deprecated","affected_versions":">=8.0.0 <9.0.0"},{"fix":"Always call storage.set_storage(...) at application startup.","message":"If you use xocto.storage without calling set_storage first, all storage operations will fail with an unhelpful error.","severity":"gotcha","affected_versions":">=9.0.0"}],"env_vars":null,"search_vec":"'3.9':26 '9.0.3':23 'collect':3 'current':21 'date':16,41 'helper':13 'intern':34 'kraken':10,32,37 'part':30 'provid':12 'python':5,25 'regular':28 'releas':27 'requir':24 'retri':18,39 'servic':6 'storag':17,38 'string':15,40 'technolog':11 'tool':35 'use':8 'util':7,36 'version':22 'xocto':1","created_at":"2026-05-09T05:55:40.835332+00:00","updated_at":"2026-05-09T05:55:40.835332+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/octoenergy/xocto","docs":"https://xocto.readthedocs.io","changelog":"https://github.com/octoenergy/xocto/blob/main/CHANGELOG.md","pypi":"https://pypi.org/project/xocto/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["data","serialization"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-08-02","install_tag":null}}