Skip to main content

A modern, high-performance, pure-Python SSHv2 and SFTP client/server library

Project description

SpindleX Logo

SpindleX

A modern, high-performance, pure-Python SSHv2 and SFTP library.

CI Status Coverage PyPI Version Python Support License PyPI Downloads Socket Badge

Explore the Docs »

Quick StartMigration GuideCookbookPerformanceSecurity


SpindleX is a modern SSH protocol implementation engineered for speed, security, and a seamless developer experience. It provides a significantly more performant and cleaner alternative to legacy Python SSH libraries.

✨ Key Features

  • 🚀 High Performance: Optimized with Adaptive Buffering and TCP Fast-Path. Up to 60% faster SFTP transfers.
  • 📦 Zero Dependencies: Pure-Python core. No gcc, no python-dev. Perfect for minimal Docker images.
  • 🔄 Native Async: First-class support for asyncio with AsyncSSHClient and AsyncSFTPClient.
  • 🛡️ Modern Security: Ed25519, ECDSA, ChaCha20-Poly1305 by default.
  • 🏷️ Fully Typed: 100% type-hinted codebase for robust IDE integration.

🚀 Quick Start

Installation

# Using pip
pip install spindlex

# Using uv (recommended)
uv pip install spindlex

Basic Usage

Synchronous Example
from spindlex import SSHClient
from spindlex.hostkeys.policy import AutoAddPolicy

with SSHClient() as client:
    client.set_missing_host_key_policy(AutoAddPolicy())
    client.connect('example.com', username='admin')
    
    stdin, stdout, stderr = client.exec_command('uptime')
    print(f"Status: {stdout.read().decode().strip()}")
Asynchronous Example
import asyncio
from spindlex import AsyncSSHClient

async def run():
    async with AsyncSSHClient() as client:
        await client.connect('example.com', username='admin')
        stdin, stdout, stderr = await client.exec_command('uptime')
        print(await stdout.read())

asyncio.run(run())

⚡ Performance

SpindleX is designed for low-latency environments. In head-to-head comparisons, SpindleX demonstrates a commanding lead in protocol efficiency:

Operation SpindleX (avg) Traditional (avg) Improvement
Handshake & Connect 0.035s 0.077s 54% Faster
SFTP Transfer (10MB) 0.019s 0.061s 69% Faster

🛡️ Security

  • Hardened Defaults: Legacy SHA-1 and weak ciphers are disabled by design.
  • Mandatory Verification: Host key verification is enforced unless explicitly overridden.
  • Privacy Aware: Built-in log sanitizers ensure credentials never reach telemetry.
  • Vulnerability Reporting: See SECURITY.md.

🤝 Contributing

Contributions are welcome! See CONTRIBUTING.md to get started.


📄 License

SpindleX is released under the MIT License. See LICENSE for the full text.


Developed with precision by Di3Z1E.
© 2024 SpindleX Project

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spindlex-0.4.2.tar.gz (122.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spindlex-0.4.2-py3-none-any.whl (122.4 kB view details)

Uploaded Python 3

File details

Details for the file spindlex-0.4.2.tar.gz.

File metadata

  • Download URL: spindlex-0.4.2.tar.gz
  • Upload date:
  • Size: 122.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for spindlex-0.4.2.tar.gz
Algorithm Hash digest
SHA256 1ec5b19d067934fea8db20383086e53765bb3e2473f069a99b4b98a266c83520
MD5 8412e7062474fb3bcff9f49cba57d19e
BLAKE2b-256 452549d490db981a65209e5697608116ae9e22b410898d5eedb78170e1c6636b

See more details on using hashes here.

Provenance

The following attestation bundles were made for spindlex-0.4.2.tar.gz:

Publisher: release.yml on Di3Z1E/spindlex

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file spindlex-0.4.2-py3-none-any.whl.

File metadata

  • Download URL: spindlex-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 122.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for spindlex-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0a10cb13bd7e7ad8bb3026696fb8d38c3d29844837080da65d8cea1613b9c9ac
MD5 b4987f79b9d2b76045f53a4f74dfb9f9
BLAKE2b-256 8978859030271529e17de09d94bb3cdc8e472180d78baf6ba945b0e572e3bc6e

See more details on using hashes here.

Provenance

The following attestation bundles were made for spindlex-0.4.2-py3-none-any.whl:

Publisher: release.yml on Di3Z1E/spindlex

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page