Skip to main content

PyPI version PyPI license PyPI pyversions

Robot Framework test library for Secure Copy (SCP)

This library can be used to copy files to and from a remote machine using Secure Copy (SCP). It uses the Paramiko SSH Python library (just like robotframework-sshlibrary) and an SCP wrapper (‘scp’ by James Bardin).

The library does not currently support Jython or IronPython at this time.

Installation

This library may be installed via PyPI or from the source distribution. To install using pip, run:

pip install robotframework-scplibrary

To install from the source distribution, download the repo archive and extract the source and run:

python setup.py install

Example

*** Settings ***
Library   SCPLibrary

*** Test Cases ***
Grab Files From My Server
    Open Connection   192.168.1.42    username=tyler  password=teapot
    Get File          remotefile.txt  localfile.txt
    Get File          /home/tyler/    mytylerdir/     recursive=True
    Close Connection

Put File On My Server
    Open Connection   192.168.1.42    username=tyler  password=teapot
    Put File          mytea.txt       /home/tyler/
    Close Connection

Connection

Before files can be transferred, a connection to remote machine must first be made. A connection can be made with the Open Connection keyword. Both normal username/password authentication and asymmetric key-pair authentication may be used.

Connections should be closed using the Close Connection keyword when they are no longer in use.

File transfer

Files and directories can be uploaded to the remote machine using the Put File or Put Directory keywords or downloaded to the local machine using the Get File keyword.

A connection must be made using the Open Connection keyword before file transfers may be made.

Release files for robotframework-scplibrary 1.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 robotframework-scplibrary 1.2.0
File Size Uploaded
robotframework-scplibrary-1.2.0.tar.gz 3.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for robotframework-scplibrary 1.2.0
File Interpreter ABI Platform
robotframework_scplibrary-1.2.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 8.2 kB

Release files / robotframework-scplibrary-1.2.0.tar.gz

Download URL robotframework-scplibrary-1.2.0.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
0a10ab2335004f9dce867b917fd9d1738705896a6b3f552ed109212caf3cd9a1
BLAKE2b-256 checksum
How to use checksums
1a06f30e988e9ae9fd0cf77a7c42cd584bfc11eacaf109ff2fbefefba91c0904
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.5

Release files / robotframework_scplibrary-1.2.0-py2.py3-none-any.whl

Download URL robotframework_scplibrary-1.2.0-py2.py3-none-any.whl
Size 4.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
a71624cc863aff4c99e3408a052f2f5b596a0e31f02475f3fb923d8b6ca8c895
BLAKE2b-256 checksum
How to use checksums
cbdfe26befc308278e977ad03bfd7e443f36566b2ca59ee2e2296a42b426e342
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.5

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.0

2 release files

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