Registry / devops / cloudshell-core

cloudshell-core

JSON →
library2.2.180pypypiunverified

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.

pip install cloudshell-core
INSTALL
IMPORT
SIG · CLOUDSHELL-CORE
C
cloudshell-core
devopspythonv2.2.180
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

CloudShellCoreContext
✓ from cloudshell.core.context import CloudShellCoreContext
✗ from cloudshell.core.context import CloudShellCoreContext

Initialize CloudShell context and a logger session.

from cloudshell.core.logger import LoggerSession from cloudshell.core.context import CloudShellCoreContext import os cs_context = CloudShellCoreContext( server_host=os.environ.get('CLOUDSHELL_SERVER_HOST', 'localhost'), api_port=9000, api_token=os.environ.get('CLOUDSHELL_API_TOKEN', '') ) logger = LoggerSession('my_logger', cs_context) print('Context and logger created successfully')
Debug
Known issues
breakingVersion 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.
fix
Update all imports to use cloudshell.core subpackage pattern (e.g., from cloudshell.core.logger import ...). Consult changelog for full migration.
affects: >=2.0.0
gotchaPackage 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'.
fix
Use 'import cloudshell' or 'from cloudshell.core import ...'.
affects: all
deprecatedUsing 'cloudshell.api.QualiApiClient' without proper context may lead to authentication issues in newer versions.
fix
Always inject CloudShellCoreContext when creating ApiClient instances.
affects: >=2.2.0
Upgrade
Version history
2.2.180latest on PyPI · released Aug 9, 2017
Audit
Dependencies

No dependency data recorded yet.

Agent activity
29 hits · last 30 days
node
28
OpenAI (training)
1
Resources
cloudshell-core — pip install cloudshell-core · libregistry