Skip to main content

SFTP configuration reader

Project description

sftpConfigReader

Intro

sftpConfigReader is a tiny package that reads SFTP client configuration settings stored in *.ini configuration file.

I created this package for convenience when working on an application that was using Paramiko SFTP library: http://www.paramiko.org/

Example:

Suppose your SFTP client configuration file is stored in /home/johndoe/.sftp/some_sftp_server/config.ini.

[sftp]
sftp_host=localhost
port=22
user=john
password=helloJohn
known_hosts=/home/john/.ssh/known_hosts

You want your Python application to access the SFTP connection settings.

from sftpConfigReader import read_sftp_config

conf_file = r'home/johndoe/.sftp/some_sftp_server/config.ini'
settings_dict = read_sftp_config(conf_file, 'sftp')

If the path to the configuration file and the section name are correct, then settings_dict variable is going to contain SFTP settings dictionary.

Project GitHub:

https://github.com/alv2017/sftp_config_reader

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sftpConfigReader-1.0.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sftpConfigReader-1.0.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file sftpConfigReader-1.0.0.tar.gz.

File metadata

  • Download URL: sftpConfigReader-1.0.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.6.12

File hashes

Hashes for sftpConfigReader-1.0.0.tar.gz
Algorithm Hash digest
SHA256 381be5df380e59af2db18ad69bcf324c028e0a8e600d7d3f3578556dd3c6927e
MD5 f777ec4919a82790ccf3a0a752a85401
BLAKE2b-256 fe8dc450e05f22d1c9a3d166bbde9b6b1e007e17f7f6f66ac2e48aa27dfbd6a7

See more details on using hashes here.

File details

Details for the file sftpConfigReader-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: sftpConfigReader-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.6.12

File hashes

Hashes for sftpConfigReader-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8181aa1fb1930bb97f2e1beecb2644489e301955045b449a7d72bc6926ba72a2
MD5 eb22af4b1dfab1aafa9968e858dbd1d3
BLAKE2b-256 38db62ad365383052809f391d409da3b2763450285c79d3dbedf6f3794e5cd65

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page