Skip to main content

A simple deployer cmd tool

Project description

Python application deployer

This command line script exists for fast deployment to remote server. Was mostly created for test purposes and might have some issues.

Used languages/packages

Python3.6, click, paramiko and scp.

Installation and usage

To install simply run pip install py_deploy

You can also install it from git: pip install git+https://github.com/velykanov/py_deploy.git

To deploy your application to the server simply run py-deploy -t /some/dir/ -h remote_host. This command would deploy current directory to remote server.

Here's the full list of options:

-i, --identity-file TEXT  SSH identity file
-p, --password            Defines if password must be passed
-P, --port TEXT           SSH target port
-s, --source TEXT         Source  (default: '.')
-t, --target TEXT         Target  [required]
-h, --host TEXT           Host IP address or name  [required]
-u, --username TEXT       Remote username
-e, --exclude TEXT        Dirs names to exclude  (default: ['tests', '.git', '__pycache__'])
-v, --verbose
--version                 Show the version and exit.
--help                    Show this message and exit.

Please note!

This tool won't work if your python versions are mismatched (for instance your app is written using Python3.8 including some specific features and you're running this tool using Python3.6).

Changelog

Version Changes
1.0.1 Added ssh password support. Split target into separate arguments.

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

py_deploy-1.0.1.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

py_deploy-1.0.1-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file py_deploy-1.0.1.tar.gz.

File metadata

  • Download URL: py_deploy-1.0.1.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0

File hashes

Hashes for py_deploy-1.0.1.tar.gz
Algorithm Hash digest
SHA256 2c02b9290420a0332d1eb13d2a1941f0f55778e86a7549b44f9225f440e12b60
MD5 97c9956516814ddb82794ee90e81dd2d
BLAKE2b-256 b09ff65a8cc9ada0f606101416bf7f806a5260527864d595001f9a3b560dc9bc

See more details on using hashes here.

File details

Details for the file py_deploy-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: py_deploy-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0

File hashes

Hashes for py_deploy-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9944a6a726d8eabb18df402e1a26d071c3fb697526a660fd59802ef5d527d28c
MD5 4958ee7543b1f9bf4ff38f6436fe6858
BLAKE2b-256 145cca1648c7d8fd0fc6cf3c0cf100bab4512174c9b6d9e0575814337fba21e5

See more details on using hashes here.

Supported by

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