async_server_ops 1.0.0 (scp-only, robust)
- Remote operations via OpenSSH scp (no rsync dependency)
- Non-interactive defaults (BatchMode, ConnectTimeout, keepalives) to prevent hangs
- Correct flags:
ssh -p,scp -P - Optional password via
sshpass -e(setpassword), but keys are recommended - Builds abi3 wheel for Python 3.8+
Build for Python (wheel/dev)
pip install -U maturin
maturin develop -F python --release
# or build wheel: maturin build -F python --release
Python usage
import asyncio
from async_server_ops import ServerManagerPy as ServerManager, PyRemoteConfig as RemoteConfig
async def main():
cfg = RemoteConfig(
host="192.168.222.61",
user="administrator",
key_path="~/.ssh/id_ed25519",
port=22,
prefer_rsync=False, # scp-only build; flag kept for API compatibility
ssh_extra_args=[
"-o","IdentitiesOnly=yes",
"-o","BatchMode=yes",
"-o","ConnectTimeout=8",
"-o","ServerAliveInterval=5","-o","ServerAliveCountMax=2",
],
# password=None, # optional: requires sshpass installed on client
)
m = ServerManager.remote(cfg)
print("preflight:", await m.preflight())
rem = "/home/administrator/FoodIpadStorage/temp/dksl_c4db8429.pdf"
await m.download_file(rem, "file.pdf")
await m.create_dir_all("/tmp/ops_demo")
await m.upload_file("file.pdf", "/tmp/ops_demo/file.pdf")
print("done")
asyncio.run(main())
Metadata
Release files for async-server-ops 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| async_server_ops-1.0.4-cp38-abi3-win_amd64.whl | CPython 3.8 | abi3 | Windows x86-64 | Details |
Release files / async_server_ops-1.0.4-cp38-abi3-win_amd64.whl
| Download URL | async_server_ops-1.0.4-cp38-abi3-win_amd64.whl |
|---|---|
| Size | 63.4 kB |
| Tags | CPython 3.8 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
ac95ce2eafe0a47f67198e098e7f323d4ad32e90dca5d960618094f9adf12a40
|
|
BLAKE2b-256 checksum How to use checksums |
f01d653c71734d968bb8bf7a84768fea0396a85c208fa34de12471dbd67b8c1f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.7
|
Security for async-server-ops 1.0.4
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.