iot-ftps-client
This package is a wrapper around the ftplib protocol to provide a synchronous client for interacting with FTPS servers from IoT edge devices.
Official Documentation | Source code | Package PyPI
Table of Contents
Versioning
This repository adheres to Semantic Versioning. It will be maintained through the CHANGELOG.md and in GitHub Releases. It's important to note that you must maintain the version with your releases in iot/ftps/client/_version.py, otherwise a new package version will fail to get published.
Getting Started
This section provides basic examples with the iot-ftps-client.
Prerequisites
- Python 3.7 or later is required to use this package.
Basic Examples
-
Install via pip:
pip install iot-ftps-client
-
Import and say hello:
from iot.ftps.client import __version__ print(f"hello world from iot-ftps-client version: {__version__}")
-
Basic usage:
import tempfile from iot.ftps.client import IoTFTPSClient # instantiate client ftps_client = IoTFTPSClient( ftps_host="myServerIP", ftps_port=990, ftps_user="myServerUsername", ftps_pass="myServerPass***", ssl_implicit=True, ) # print info w/ repr print(f"{ftps_client.__repr__()}") # download blob to tempfile temp_file = tempfile.NamedTemporaryFile() download_result = ftps_client.download_file( source="path/to/blob.txt", dest=temp_file.name, ) if not download_result: print("unable to download file") temp_file.close() raise # upload tempfile to blob upload_result = ftps_client.upload_file( source=temp_file.name, dest="path/to/new/blob.txt", ) if not upload_result: print("unable to upload file") temp_file.close() raise # clean-up local memory temp_file.close()
Metadata
Release files for iot-ftps-client 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| iot-ftps-client-1.1.1.tar.gz | 4.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| iot_ftps_client-1.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.3 kB
Release files / iot-ftps-client-1.1.1.tar.gz
| Download URL | iot-ftps-client-1.1.1.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6f997980a378f71eef17522f0bdb37104b962a73112e2d27f4acc6a9c64b9d0f
|
|
BLAKE2b-256 checksum How to use checksums |
98ac50f1763464f89c31a8f7864f6f722be82443856416e5fc968479f20cc163
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / iot_ftps_client-1.1.1-py3-none-any.whl
| Download URL | iot_ftps_client-1.1.1-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cc9397da9c2b9fd879ed8ff1e328c8af0808e0b173fccb30fcbcea1b9d7772e0
|
|
BLAKE2b-256 checksum How to use checksums |
b74b9d97dda02acad05a6fa755b325588f1365e4d7fe1faf91112f31c1155c56
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Security for iot-ftps-client 1.1.1
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.