Skip to main content

python package to send its own IP to another machine through ssh

Project description

Send IP

Python software to configure machines for sending their IP through ssh.

Installation

Run the following to instal:

pip install send_ip

Usage

  1. Edit the config.yaml file to match your destination. These fields will be used to scp into the target machine (user@ip:port using password pass to login).
user: target-user
ip: ip-address
pass: target-password
port: target-port #default port is usually 22 
remote-path: target-folder # this folder will be created under /home/user might create errors for not linux users
refresh-freq: 15 # minutes for cron-job
  1. Use the pacakge functions, for example:
from send_ip.send_ip import *

info_file = create_info()
send_info(info_file)

You can save this into a send_ip_script.py and schedule this task to run automatically (see below)

Schedule task

Chron

Windows machines

Please refer to this example and file issues if having trouble.

For developers of send_ip

To install send_ip and tools needed for tests, you can install into a virtualenvironment like so:

pip install -e .[dev]

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

send_ip-0.0.1.linux-x86_64.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

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

send_ip-0.0.1-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file send_ip-0.0.1.linux-x86_64.tar.gz.

File metadata

  • Download URL: send_ip-0.0.1.linux-x86_64.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for send_ip-0.0.1.linux-x86_64.tar.gz
Algorithm Hash digest
SHA256 d4a28a01aec5952ed323e9e992393a81948dc2751ad02ebad6436294c99b3f5a
MD5 9413e88ade6bacef4d51f50b3dd8a121
BLAKE2b-256 f09fd1385f873381bb71c35bc8ed21ec521f64fbcc38ac17a8d0000b80e1e829

See more details on using hashes here.

File details

Details for the file send_ip-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: send_ip-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for send_ip-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 06225771593d0cb96260c1c83e90ae373ed91cac169e4186e76c2a1ada06dcbd
MD5 ac56a44f289c76d6d7b3c3f66449be05
BLAKE2b-256 a743b764d04ed650cf81341d5967c82a202d34b738b15139f5f96df0d8fa49d2

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