🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

sftpConfigReader

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sftpConfigReader

SFTP configuration reader

1.0.0
PyPI
Maintainers
1

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

Keywords

sftp

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts