Skip to main content

Py Deployer

Py Deployer is a lightweight package to execute zero-downtime deployment on Linux servers.

pydeploy -s prod

✨ Features

  • Cross-technology deployments
  • Simple configuration
  • Zero downtime deployments
  • Multiple environment management
  • Release version management
  • Use SSH protocol

⚠ This package does not currently support after-deployment scripts

1️⃣ Installation

sudo pip3 install py-deployer

2️⃣ Configuration

Create the file deploy/config.yaml inside your project as following:

# Example of file: ./deploy/config.yaml

deploy:
  # Shared files and folders (between releases)
  shared: [.env]

  # All available servers (SSH configuration)
  servers:
    dev:
      hostname: '10.56.12.0'
      port: 22
      user: 'dev_username'
      password: ~ # Ignore that if you use SSH keys
      deploy_path: '/server/application/path'
      stage: 'develop'
      branch: 'dev'
      identity_file: ~  # Ignore that if it stay in the default folder (~/.ssh)
      repository: ~     # Ignore that if you run pydeploy from a git project directory
      max_releases: 3
    # ...
    prod:
      hostname: '10.56.11.0'
      port: 22
      user: 'prod_username'
      password: ~ # Ignore that if you use SSH keys
      deploy_path: '/server/application/path'
      stage: 'production'
      branch: 'master'
      identity_file: ~  # Ignore that if it stay in the default folder (~/.ssh)
      repository: ~     # Ignore that if you run pydeploy from a git project directory
      max_releases: 3

3️⃣ Deployment

Deploy your application by running:

pydeploy -s <dev|stag|prod|...>

Links

Metadata

Release files for py-deployer 1.7.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for py-deployer 1.7.5
File Size Uploaded
py-deployer-1.7.5.tar.gz 19.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for py-deployer 1.7.5
File Interpreter ABI Platform
py_deployer-1.7.5-py3-none-any.whl Python 3 none any Details

Total release size: 54.7 kB

Release files / py-deployer-1.7.5.tar.gz

Download URL py-deployer-1.7.5.tar.gz
Size 19.8 kB
Tags Source
SHA-256 checksum
How to use checksums
9b33133a41d96ab4c133a7421907f50eb73b7dbc188b4fd648ce33d5a3a47dd5
BLAKE2b-256 checksum
How to use checksums
eaa39ff91aba043b640f7bfdcdd5b26fd239488c15561cd386ab5a42f449ab7a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.10

Release files / py_deployer-1.7.5-py3-none-any.whl

Download URL py_deployer-1.7.5-py3-none-any.whl
Size 34.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b608314ee68873a76450497ca6d636784893b72e2c430ff9297f3de35f72dc55
BLAKE2b-256 checksum
How to use checksums
5fbc5ed032939f6991cde237d0bf02495758e06e73e660dddad97849a5adfdb4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.10

Release history Release notifications | RSS feed

This release

1.7.5 This release

2 release files

1.7.4

2 release files

1.7.3

2 release files

1.7.1

2 release files

1.7.0

2 release files

1.6.4

2 release files

1.6.3

2 release files

1.6.2

2 release files

1.6.1

2 release files

1.6.0

2 release files

1.5.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page