Skip to main content

CapsuleCore shellback

Shellback is a robust, architecturally-agnostic Python library designed to bridge terminal environments (Bash, CMD, PowerShell) with Python scripts. It provides a clean, decoupled abstraction layer to execute system commands while maintaining persistent session state and cross-platform compatibility.

Built with Hexagonal Architecture (Ports and Adapters) principles, Shellback ensures that your domain logic remains independent of the specific shell or operating system being used.

Usage

from CapsuleCore_shellback import Bash, ConsoleLogger,Command

logger = ConsoleLogger()
mkdir = Command("mkdir").add_args("dir")

with Bash(logger=logger) as sh:
    result = sh.run(mkdir)
    if result.is_success():
        print("Directory created successfully.")
    else:
        print("Error creating directory.")

Key Features

Agnostic Design: Decouple your application logic from the underlying shell implementation.

Persistent Session State: Maintain working directories (cwd), environment variables, and encodings across multiple executions using SessionContext.

Fluent Command Builder: Construct complex commands with a declarative and chainable API via ArgumentBuilder and Command.

Safe Execution: Automatic validation of executables in the system PATH before execution.

Flexible Logging: Swappable logging backends (Console, Null, or custom) using the Strategy and Null Object patterns.

Pipe-like Syntax: Easy integration between command results using the | operator.

Metadata

Release files for CapsuleCore-shellback 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for CapsuleCore-shellback 0.2.0
File Size Uploaded Provenance Actions
capsulecore_shellback-0.2.0.tar.gz 9.0 kB Without provenance Details for capsulecore_shellback-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for CapsuleCore-shellback 0.2.0
File Interpreter ABI Platform Actions
capsulecore_shellback-0.2.0-py3-none-any.whl Python 3 none any Details for capsulecore_shellback-0.2.0-py3-none-any.whl

Total release size: 16.3 kB

Release files / capsulecore_shellback-0.2.0.tar.gz

Download URL capsulecore_shellback-0.2.0.tar.gz
Size 9.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d260d3b4e8c045c7bd5d9c049152e871fef90d23a0f0bb2a38e2c1a19a8c24f1
BLAKE2b-256 checksum
How to use checksums
5562dc83e3a3c700154fc1b96e200b766d4f1d5451af5d4d318b31137a77eaf9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / capsulecore_shellback-0.2.0-py3-none-any.whl

Download URL capsulecore_shellback-0.2.0-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
73f3c5cd7d2215829bafc2511e13100dbfe5b1f2abe48c5a0e82929b07508327
BLAKE2b-256 checksum
How to use checksums
2cb7e21512fe38938c36ed2758193d27ab96b7bdf01b7e73ff3b5cb4a347459a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for CapsuleCore-shellback 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page