<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Di3Z1E</title>
    <description>The latest articles on DEV Community by Di3Z1E (@its_di3z1e).</description>
    <link>https://dev.to/its_di3z1e</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3934538%2Fa2835e5c-d459-4847-b3a5-4abaadeed151.jpeg</url>
      <title>DEV Community: Di3Z1E</title>
      <link>https://dev.to/its_di3z1e</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/its_di3z1e"/>
    <language>en</language>
    <item>
      <title>SpindleX: A Modern, Secure-by-Default SSH Library for Python</title>
      <dc:creator>Di3Z1E</dc:creator>
      <pubDate>Fri, 18 Sep 2026 10:11:01 +0000</pubDate>
      <link>https://dev.to/its_di3z1e/spindlex-a-modern-secure-by-default-ssh-library-for-python-2g5k</link>
      <guid>https://dev.to/its_di3z1e/spindlex-a-modern-secure-by-default-ssh-library-for-python-2g5k</guid>
      <description>&lt;p&gt;Paramiko has quietly run the Python SSH ecosystem for fifteen years. &lt;/p&gt;

&lt;p&gt;It's a remarkable piece of software, and also a product of its era: agent forwarding, X11, GSSAPI key exchange, ciphers nobody should still be negotiating in 2026.&lt;/p&gt;

&lt;p&gt;All of it still there, all of it still supported, because that's what backward compatibility demands.&lt;/p&gt;

&lt;p&gt;SpindleX starts from a different premise.&lt;br&gt;
Support less. Say no to more. What's left, harden completely.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip &lt;span class="nb"&gt;install &lt;/span&gt;spindlex
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;v1.0 just shipped: the public API is frozen under SemVer, and it's live on PyPI.&lt;/p&gt;

&lt;h2&gt;
  
  
  The scope is the feature
&lt;/h2&gt;

&lt;p&gt;SpindleX doesn't do SCP, agent forwarding, X11, or compression.&lt;br&gt;
That's not a roadmap gap, it's a decision.&lt;br&gt;
Every one of those is a historical source of SSH CVEs, and none of them are load-bearing for the thing most people actually use SSH for: running commands and moving files.&lt;/p&gt;

&lt;p&gt;What's left gets treated seriously:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;ChaCha20-Poly1305 as the preferred cipher (AEAD, no bolted-on MAC pass)&lt;/li&gt;
&lt;li&gt;Strict-KEX enabled unconditionally, closing the Terrapin downgrade class of attacks&lt;/li&gt;
&lt;li&gt;No SHA-1, no CBC, no DH Group 1: not deprecated, just absent&lt;/li&gt;
&lt;li&gt;Host key verification on by default: you opt out, not in&lt;/li&gt;
&lt;li&gt;One runtime dependency: &lt;code&gt;cryptography&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If your workflow needs the things SpindleX left out, it's not ready to be your library. If it doesn't, the smaller surface is the whole point.&lt;/p&gt;
&lt;h2&gt;
  
  
  What it looks like
&lt;/h2&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;spindlex&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;SSHClient&lt;/span&gt;

&lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="nc"&gt;SSHClient&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get_host_keys&lt;/span&gt;&lt;span class="p"&gt;().&lt;/span&gt;&lt;span class="nf"&gt;load&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;connect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;example.com&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;username&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;admin&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;stdin&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;stdout&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;stderr&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;exec_command&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;uptime&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;stdout&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;read&lt;/span&gt;&lt;span class="p"&gt;().&lt;/span&gt;&lt;span class="nf"&gt;decode&lt;/span&gt;&lt;span class="p"&gt;().&lt;/span&gt;&lt;span class="nf"&gt;strip&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Async isn't an add-on module. It's the same client shape, awaited:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;asyncio&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;spindlex&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;AsyncSSHClient&lt;/span&gt;

&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;main&lt;/span&gt;&lt;span class="p"&gt;():&lt;/span&gt;
    &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="nc"&gt;AsyncSSHClient&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get_host_keys&lt;/span&gt;&lt;span class="p"&gt;().&lt;/span&gt;&lt;span class="nf"&gt;load&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
        &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;connect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;example.com&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;username&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;admin&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;stdin&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;stdout&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;stderr&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;exec_command&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;df -h&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;stdout&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;read&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;

&lt;span class="n"&gt;asyncio&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;run&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;main&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Nothing in either example configures a cipher, opts into strict-KEX, or remembers to verify a host key. There's nothing to remember: it's already the default.&lt;/p&gt;

&lt;h2&gt;
  
  
  And it holds up on throughput
&lt;/h2&gt;

&lt;p&gt;SpindleX negotiates adaptive SFTP write chunks up to 255 KB via &lt;code&gt;limits@openssh.com&lt;/code&gt;. &lt;br&gt;
On loopback benchmarks against a Dockerized OpenSSH server, that puts transfer throughput ahead of Paramiko and roughly even with AsyncSSH, with handshake latency in the same range as both.&lt;/p&gt;

&lt;p&gt;Numbers and methodology are in the &lt;a href="https://github.com/stratza/spindlex/blob/main/docs/comparison.md" rel="noopener noreferrer"&gt;comparison doc&lt;/a&gt;. Loopback isn't the real world, but it's a fair starting signal.&lt;/p&gt;
&lt;h2&gt;
  
  
  Where it stands today
&lt;/h2&gt;

&lt;p&gt;v1.0.0 means the API won't move under you, not that this has fifteen years of production scar tissue behind it.&lt;/p&gt;

&lt;p&gt;If SCP or agent forwarding are load-bearing for you, or you're already deep in a Paramiko codebase, there's no reason to switch yet.&lt;/p&gt;

&lt;p&gt;If you're starting something new, particularly something async, particularly something where the SSH surface should stay small, it's worth the look.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip &lt;span class="nb"&gt;install &lt;/span&gt;spindlex
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Docs: &lt;a href="https://spindlex.readthedocs.io/" rel="noopener noreferrer"&gt;spindlex.readthedocs.io&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Source: &lt;a href="https://github.com/stratza/spindlex" rel="noopener noreferrer"&gt;github.com/stratza/spindlex&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Security policy: &lt;a href="https://github.com/stratza/spindlex/blob/main/SECURITY.md" rel="noopener noreferrer"&gt;SECURITY.md&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;MIT licensed.&lt;br&gt;
Issues and PRs are welcome: it's a small enough codebase that reading it is a reasonable way to evaluate it.&lt;/p&gt;

</description>
      <category>python</category>
      <category>ssh</category>
      <category>security</category>
      <category>opensource</category>
    </item>
    <item>
      <title>[Boost]</title>
      <dc:creator>Di3Z1E</dc:creator>
      <pubDate>Sat, 16 May 2026 18:12:44 +0000</pubDate>
      <link>https://dev.to/its_di3z1e/-53f3</link>
      <guid>https://dev.to/its_di3z1e/-53f3</guid>
      <description>&lt;div class="ltag__link--embedded"&gt;
  &lt;div class="crayons-story "&gt;
  &lt;a href="https://dev.to/its_di3z1e/spindlex-a-modern-pure-python-sshv2-and-sftp-library-40g" class="crayons-story__hidden-navigation-link"&gt;SpindleX: A Modern Pure-Python SSHv2 and SFTP Library&lt;/a&gt;


  &lt;div class="crayons-story__body crayons-story__body-full_post"&gt;
    &lt;div class="crayons-story__top"&gt;
      &lt;div class="crayons-story__meta"&gt;
        &lt;div class="crayons-story__author-pic"&gt;

          &lt;a href="/its_di3z1e" class="crayons-avatar  crayons-avatar--l  "&gt;
            &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3934538%2Fa2835e5c-d459-4847-b3a5-4abaadeed151.jpeg" alt="its_di3z1e profile" class="crayons-avatar__image" width="" height=""&gt;
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;div&gt;
            &lt;a href="/its_di3z1e" class="crayons-story__secondary fw-medium m:hidden"&gt;
              Di3Z1E
            &lt;/a&gt;
            &lt;div class="profile-preview-card relative mb-4 s:mb-0 fw-medium hidden m:inline-block"&gt;
              
                Di3Z1E
                
              
              &lt;div id="story-author-preview-content-3682297" class="profile-preview-card__content crayons-dropdown branded-7 p-4 pt-0"&gt;
                &lt;div class="gap-4 grid"&gt;
                  &lt;div class="-mt-4"&gt;
                    &lt;a href="/its_di3z1e" class="flex"&gt;
                      &lt;span class="crayons-avatar crayons-avatar--xl mr-2 shrink-0"&gt;
                        &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3934538%2Fa2835e5c-d459-4847-b3a5-4abaadeed151.jpeg" class="crayons-avatar__image" alt="" width="460" height="460"&gt;
                      &lt;/span&gt;
                      &lt;span class="crayons-link crayons-subtitle-2 mt-5"&gt;Di3Z1E&lt;/span&gt;
                    &lt;/a&gt;
                  &lt;/div&gt;
                  &lt;div class="print-hidden"&gt;
                    
                      Follow
                    
                  &lt;/div&gt;
                  &lt;div class="author-preview-metadata-container"&gt;&lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;

          &lt;/div&gt;
          &lt;a href="https://dev.to/its_di3z1e/spindlex-a-modern-pure-python-sshv2-and-sftp-library-40g" class="crayons-story__tertiary fs-xs"&gt;&lt;time&gt;May 16&lt;/time&gt;&lt;span class="time-ago-indicator-initial-placeholder"&gt;&lt;/span&gt;&lt;/a&gt;
        &lt;/div&gt;
      &lt;/div&gt;

    &lt;/div&gt;

    &lt;div class="crayons-story__indention"&gt;
      &lt;h2 class="crayons-story__title crayons-story__title-full_post"&gt;
        &lt;a href="https://dev.to/its_di3z1e/spindlex-a-modern-pure-python-sshv2-and-sftp-library-40g" id="article-link-3682297"&gt;
          SpindleX: A Modern Pure-Python SSHv2 and SFTP Library
        &lt;/a&gt;
      &lt;/h2&gt;
        &lt;div class="crayons-story__tags"&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/ssh"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;ssh&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/devops"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;devops&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/python"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;python&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/automation"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;automation&lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="crayons-story__bottom"&gt;
        &lt;div class="crayons-story__details"&gt;
            &lt;a href="https://dev.to/its_di3z1e/spindlex-a-modern-pure-python-sshv2-and-sftp-library-40g#comments" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left flex items-center"&gt;
              

              &lt;span class="hidden s:inline"&gt;Add&amp;nbsp;Comment&lt;/span&gt;
            &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="crayons-story__save"&gt;
          &lt;small class="crayons-story__tertiary fs-xs mr-2"&gt;
            2 min read
          &lt;/small&gt;
            
              &lt;span class="bm-initial"&gt;
                

              &lt;/span&gt;
              &lt;span class="bm-success"&gt;
                

              &lt;/span&gt;
            
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;


</description>
    </item>
    <item>
      <title>SpindleX: A Modern Pure-Python SSHv2 and SFTP Library</title>
      <dc:creator>Di3Z1E</dc:creator>
      <pubDate>Sat, 16 May 2026 09:15:02 +0000</pubDate>
      <link>https://dev.to/its_di3z1e/spindlex-a-modern-pure-python-sshv2-and-sftp-library-40g</link>
      <guid>https://dev.to/its_di3z1e/spindlex-a-modern-pure-python-sshv2-and-sftp-library-40g</guid>
      <description>&lt;h2&gt;
  
  
  SpindleX: A Modern Pure-Python SSHv2 and SFTP Library
&lt;/h2&gt;

&lt;p&gt;After years of working with existing SSH libraries in Python, I decided to build a new one from the ground up with modern needs in mind.&lt;/p&gt;

&lt;p&gt;Today I'm excited to introduce &lt;strong&gt;SpindleX&lt;/strong&gt; (&lt;code&gt;spindlex&lt;/code&gt;) - a clean, high-performance, secure-by-default SSHv2 and SFTP client/server library for Python 3.9+.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Another SSH Library?
&lt;/h2&gt;

&lt;p&gt;Paramiko has been the go-to for a very long time, but it carries a lot of legacy code and older defaults. &lt;code&gt;asyncssh&lt;/code&gt; is excellent for async use cases, but I wanted something that combines excellent developer experience, strong security defaults, great performance, first-class asyncio support, and a fresh, maintainable codebase.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why SpindleX?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Business Friendly&lt;/strong&gt;: MIT Licensed. Permissive use for commercial and proprietary projects.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Maintainable Code&lt;/strong&gt;: Modular architecture designed for clarity and easier security auditing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Modern API&lt;/strong&gt;: Clean, intuitive interface with consistent error handling and minimal dependencies.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Focused Scope&lt;/strong&gt;: No support for insecure legacy protocols, resulting in a leaner and more secure codebase.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Key Features
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Secure by default&lt;/strong&gt;: Only modern algorithms (ChaCha20-Poly1305 preferred, Ed25519, ECDSA, AES-CTR, etc.), Legacy ciphers are excluded, Full protection against Terrapin attacks and strict host key verification.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;High Performance SFTP&lt;/strong&gt;: Adaptive chunk sizes (up to 255 KB), excellent pipelining, and optimized buffering.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Native Async Support&lt;/strong&gt;: Clean &lt;code&gt;AsyncSSHClient&lt;/code&gt; and &lt;code&gt;AsyncSFTPClient&lt;/code&gt; alongside the synchronous version.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Usability&lt;/strong&gt;: Recursive directory upload/download, ProxyJump / bastion host support, local/remote port forwarding, and a fully &lt;br&gt;
typed API.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Minimal Dependencies&lt;/strong&gt;: Mainly relies on &lt;code&gt;cryptography&lt;/code&gt;. MIT licensed.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Both client and server implementations.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Quick Example
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;spindlex&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;SSHClient&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;spindlex.hostkeys.policy&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;RejectPolicy&lt;/span&gt;

&lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="nc"&gt;SSHClient&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="c1"&gt;# Secure default: reject unknown host keys. Make sure the server's key
&lt;/span&gt;    &lt;span class="c1"&gt;# is in ~/.ssh/known_hosts before running (e.g. via `ssh user@host` once).
&lt;/span&gt;    &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;set_missing_host_key_policy&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;RejectPolicy&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;
    &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get_host_keys&lt;/span&gt;&lt;span class="p"&gt;().&lt;/span&gt;&lt;span class="nf"&gt;load&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;

    &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;connect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;server.example.com&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;username&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;admin&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;password&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;password&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="c1"&gt;# exec_command returns (stdin, stdout, stderr)
&lt;/span&gt;    &lt;span class="n"&gt;stdin&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;stdout&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;stderr&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;exec_command&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;ls -l /tmp&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="c1"&gt;# stdout and stderr are iterable and return lines
&lt;/span&gt;    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;line&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;stdout&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;strip&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;

    &lt;span class="c1"&gt;# Get the exit status (0 usually means success)
&lt;/span&gt;    &lt;span class="n"&gt;exit_status&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;stdout&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;recv_exit_status&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;f&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Command exited with status: &lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="n"&gt;exit_status&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Current Status
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Latest version: &lt;strong&gt;v0.7.0&lt;/strong&gt; (released today)&lt;/li&gt;
&lt;li&gt;Still in &lt;strong&gt;Beta&lt;/strong&gt;, early stage with limited real-world usage&lt;/li&gt;
&lt;li&gt;Actively developed with frequent releases&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Links
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;GitHub&lt;/strong&gt;: &lt;a href="https://github.com/stratza/spindlex" rel="noopener noreferrer"&gt;https://github.com/stratza/spindlex&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Documentation&lt;/strong&gt;: &lt;a href="https://spindlex.readthedocs.io/" rel="noopener noreferrer"&gt;https://spindlex.readthedocs.io/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;PyPI&lt;/strong&gt;: &lt;code&gt;pip install spindlex&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try It &amp;amp; Give Feedback
&lt;/h2&gt;

&lt;p&gt;If you're working on automation, DevOps tools, remote management, or any project that needs SSH/SFTP, I'd love for you to try SpindleX, especially on new projects.&lt;/p&gt;

&lt;p&gt;Feedback, bug reports, feature requests, and contributions are all very welcome!&lt;/p&gt;

&lt;p&gt;What do you think? Are you happy with Paramiko/asyncssh, or would you consider switching to something newer?&lt;/p&gt;

&lt;p&gt;Let me know in the comments!&lt;/p&gt;

</description>
      <category>ssh</category>
      <category>devops</category>
      <category>python</category>
      <category>automation</category>
    </item>
  </channel>
</rss>
