{"id":27653,"library":"cloudshell-core","title":"CloudShell Core","description":"Core package for CloudShell Python orchestration and automation. Provides common utilities including logging, basic interfaces, and other infrastructure for CloudShell packages. Current version 2.2.180, updated frequently.","status":"active","version":"2.2.180","language":"python","source_language":"en","source_url":"https://github.com/QualiSystems/cloudshell-core","tags":["cloudshell","orchestration","automation","logging","utilities"],"install":[{"cmd":"pip install cloudshell-core","lang":"bash","label":"Default install"}],"dependencies":[],"imports":[{"wrong":"from cloudshell.core.context import CloudShellCoreContext","symbol":"CloudShellCoreContext","correct":"from cloudshell.core.context import CloudShellCoreContext"}],"quickstart":{"code":"from cloudshell.core.logger import LoggerSession\nfrom cloudshell.core.context import CloudShellCoreContext\nimport os\n\ncs_context = CloudShellCoreContext(\n    server_host=os.environ.get('CLOUDSHELL_SERVER_HOST', 'localhost'),\n    api_port=9000,\n    api_token=os.environ.get('CLOUDSHELL_API_TOKEN', '')\n)\nlogger = LoggerSession('my_logger', cs_context)\nprint('Context and logger created successfully')","lang":"python","description":"Initialize CloudShell context and a logger session."},"warnings":[{"fix":"Update all imports to use cloudshell.core subpackage pattern (e.g., from cloudshell.core.logger import ...). Consult changelog for full migration.","message":"Version 2.0.0 introduced many breaking changes, including restructuring of imports. Code from v1.x (e.g., from cloudshell.core.xyz) may not work directly.","severity":"breaking","affected_versions":">=2.0.0"},{"fix":"Use 'import cloudshell' or 'from cloudshell.core import ...'.","message":"Package name on PyPI is 'cloudshell-core' with a hyphen, but Python imports use 'cloudshell' (no hyphen, no underscore). Many new users mistakenly try 'import cloudshell_core'.","severity":"gotcha","affected_versions":"all"},{"fix":"Always inject CloudShellCoreContext when creating ApiClient instances.","message":"Using 'cloudshell.api.QualiApiClient' without proper context may lead to authentication issues in newer versions.","severity":"deprecated","affected_versions":">=2.2.0"}],"env_vars":null,"search_vec":"'2.2.180':26 'autom':10,31 'basic':16 'cloudshel':1,6,22,29 'common':12 'core':2,3 'current':24 'frequent':28 'includ':14 'infrastructur':20 'interfac':17 'log':15,32 'orchestr':8,30 'packag':4,23 'provid':11 'python':7 'updat':27 'util':13,33 'version':25","created_at":"2026-05-09T05:51:22.609221+00:00","updated_at":"2026-05-09T05:51:22.609221+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\nImportError: cannot import name 'CloudShellCoreContext' from 'cloudshell.core.context' (/tmp/tmph7isiuky/venv/lib/python3.12/site-packages/cloudshell/core/context/__init__.py)"},"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/QualiSystems/cloudshell-core","docs":null,"changelog":null,"pypi":"https://pypi.org/project/cloudshell-core/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops","workflow"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}