Registry / devops / cpsl
library0.3.174pypypi✓ verified 82d ago

CPSL provides a Python SDK and command-line interface for Capsule, a platform for building and managing serverless applications. Current version is 0.3.174, with active development and frequent releases.

pip install cpsl
INSTALL
IMPORT
SIG · CPSL
C
cpsl
devopspythonv0.3.174
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.

Client
from cpsl import Client
from cpsl.client import CapsuleClient

Initialize the Capsule client with an API key and deploy a serverless function.

import os from cpsl import Capsule client = Capsule(api_key=os.environ.get('CAPSULE_API_KEY', '')) # Deploy a function result = client.deploy(path='/path/to/func', name='my-function') print(result)
Debug
Known issues
breakingVersion 0.3.0 renamed the main class from `CapsuleClient` to `Capsule`. Old code using `from cpsl.client import CapsuleClient` will fail.
fix
Use `from cpsl import Capsule` and rename class references.
affects: <0.3.0
deprecatedThe `cpsl deploy` CLI command's `--path` argument is deprecated in favor of `--source`.
fix
Use `--source` instead of `--path` in CLI commands: `cpsl deploy --source /path/to/func`.
affects: >=0.3.0
gotchaThe SDK client expects an `api_key` argument, but the environment variable is `CAPSULE_API_KEY` (not `CAPSULE_KEY`). Using wrong env var leads to authentication errors.
fix
Set `CAPSULE_API_KEY` environment variable, or pass `api_key` explicitly.
affects: >=0.2.0
Upgrade
Version history
0.3.174latest on PyPI · released May 21, 2026
Audit
Dependencies
clickrequiredCLI framework
httpxrequiredHTTP client for API calls
pydanticrequiredData validation
Agent activity
6 hits · last 30 days
node
6
Resources

No resource links recorded.

cpsl — pip install cpsl · libregistry