Skip to main content

pynut - Laurent Tupin

It provides various functions to simplify the users life.

Installation

You can install the package from PyPI:

python -m pip install pynut-ftp

The package is supported on Python 3.7 and above.

How to use

You can call a function as this example:

$ ----------------------------------------------------
>>> from pyNutTools import nutDate
>>> nutDate.today()

This is the libraries I am using with the package

$ ----------------------------------------------------
>>> paramiko==2.11.0

Documentation

Temporary documentation for nutFtp :

Class c_FTP and c_SFTP allow you to Download / Upload on a server
Decorated to be a singleton as to keep the same instance / connection
FTP uses the ftplib library, SFTP paramiko

from pyNutFtp import nutFtp as ftp

1.1. Download FTP

ftp.fBl_ftpDownFileBinary(host, uid, pwd, ['FTP Folder'], fileName, folderToSave, bl_ssl = False)
    OR
_ftp = ftp.ftp_prep(host, uid, pwd, ['FTP Folder'], bl_ssl = False)
_ftp.ftp_DownloadFile(fileName, folderToSave)

1.2. Download SFTP

ftp.ssh_downFile(host, uid, pwd, ['FTP Folder'], fileName, folderToSave, int_port = 10022)
    OR
_sftp = sftp_prep(host, uid, pwd, ['FTP Folder'], int_timeout = -1, int_port = 10022)
_sftp.sftp_DownloadFile(fileName, folderToSave)

2.1 Upload FTP

ftp.fBl_ftpUpFile_Bi(host, uid, pwd, ['FTP Folder'], fileName, folderToSave,  bl_ssl = False)
    OR
_ftp = ftp_prep(host, uid, pwd, ['FTP Folder'], bl_ssl = False)
_ftp.ftp_UploadFile(fileName, folderToSave)

2.2 Upload SFTP

bl_success = ftp.ssh_upFile(host, uid, pwd, ['FTP Folder'], fileName, folderToSave, int_port = 10022)
    OR
_sftp = sftp_prep(host, uid, pwd, ['FTP Folder'], int_port = 10022)
_sftp.sftp_UploadFile(fileName, folderToSave)

END

Metadata

Release files for pynut-ftp 2.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pynut-ftp 2.1.5
File Size Uploaded Provenance Actions
pynut-ftp-2.1.5.tar.gz 21.1 kB Without provenance Details for pynut-ftp-2.1.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pynut-ftp 2.1.5
File Interpreter ABI Platform Actions
pynut_ftp-2.1.5-py3-none-any.whl Python 3 none any Details for pynut_ftp-2.1.5-py3-none-any.whl

Total release size: 41.1 kB

Release files / pynut-ftp-2.1.5.tar.gz

Download URL pynut-ftp-2.1.5.tar.gz
Size 21.1 kB
Tags Source
SHA-256 checksum
How to use checksums
337ec30fbc3048b0ad809daa40ef6b40cdcfb70005397ee6254b5d8c840c6336
BLAKE2b-256 checksum
How to use checksums
03e0c70397f0447cced50737c36cad9dacfecbbfbe56a5b6f9ac78e1991283de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.9

Release files / pynut_ftp-2.1.5-py3-none-any.whl

Download URL pynut_ftp-2.1.5-py3-none-any.whl
Size 20.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5011c8b96f428b6356dc406c6aa553516375ca538a4c4e7540fa7e504ac29bb1
BLAKE2b-256 checksum
How to use checksums
4cf4083471a9ecf0fa21fac3d1275e791b382bbaec5d16b0bd4934fd611c6e2d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.9

Security for pynut-ftp 2.1.5

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.

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