Skip to main content

A reusable deployment framework for Python.

Project description

PyDaffodil CLI

daffodil-cli is a reusable deployment framework for Python, designed to simplify the process of deploying applications to remote vps servers.

Features

  • Check for admin privileges
  • Run shell commands
  • Transfer files using SCP
  • Execute SSH commands
  • Modular and reusable deployment steps

Installation

pip install daffodil-cli

Usage

from daffodil import DaffodilCLI

cli = DaffodilCLI(remote_user="root", remote_host="123.221.11.243", remote_path="/root/prod/bccs")

steps = [
    {"step": "Build the project", "command": lambda: cli.run_command("npm run build")},
    {"step": "Stop backend process on remote server", "command": lambda: cli.ssh_command("sudo forever stop 1")},
    {"step": "Transfer files to remote server", "command": lambda: cli.transfer_files("build")},
    {"step": "Restart backend process on remote server", "command": lambda: cli.ssh_command("sudo forever restartall")}
]

cli.deploy(steps)

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

pydaffodil-1.0.1.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

pydaffodil-1.0.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pydaffodil-1.0.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for pydaffodil-1.0.1.tar.gz
Algorithm Hash digest
SHA256 dd243e2be5efae3546c47c66bd84dc5367090c95f450fc40ecaa0378ffd064fd
MD5 a882592d082aa24d22483a67b1446e57
BLAKE2b-256 620d86054b3699420613f249fcc77f1d45208f31946d98667a4f4d31d1ab2ed8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pydaffodil-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for pydaffodil-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6940c2b8e558c8bf249f886c21f62734480ef4144bc21f5ff652ea757035af2c
MD5 0c14112a3dc6c47e1be95a4c589d7310
BLAKE2b-256 4f84e565a45c91c020198231db4a97ae3fdcda8c29d5fdc7a024a02709cea9c0

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