Skip to main content

Small python package to facilitate deployment of some personal projects.

Project description

Build Status Code style: black PyPI version

deploymentutils

This repo contains a small python package to facilitate deployment of some personal projects.

Overview

This package provides a thin layer on top of fabric to execute commands with a state like

  • current working directory
  • activated virtual environment (not yet implemented)

It also tries to simplify to deploy/maintain multiple instances of the same software but with varying fixtures, including one or more local instances for testing.

Motivation

The package is mainly intended to facilitate deployment tasks (e.g. for django apps) by running a simple python script. Compared to configuration management tools like Ansible this approach is far less powerful and scalable. However, it might be easier to understand for developers and thus lowering the hurdle to deploy applications by them selves.

Assumed Directory Layout

The scripts marked with [*] make use of this module.

<general project dir>
│
│
├── project-src-repo/                       ← official project repo
│   ├── .git/
│   ├── deployment/
│   │   ├── some_files/
│   │   ├── deploy.py      [*]              ← original deployment script  (delivered by the project)
│   │   └── ...
│   ├── django_project/
│   │   ├── settings.py
│   │   └── ...
│   ├── django_app/
│   │   ├── views.py
│   │   └── ...
│   ├── manage.py
│   └── ...
│
├── instance-specific/
│   ├── README.md
│   ├── demo
│   │   ├── .git/
│   │   ├── deploy.py
│   │   ├── project_data
│   │   └── ...
│   ├── production
│   │   ├── .git/
│   │   ├── deploy.py      [*]
│   │   ├── project_data
│   │   └── ...
│   ├── testing
│   │   ├── .git/
│   │   ├── deploy.py      [*]
│   │   ├── project_data
│   │   └── ...
│   └── ...
│
├── local_testing/               ← contents of this directory are autogenerated
│   ├── deploy.py          [*]
│   ├── <appname>_deployment
│   └── ...
.

Status

Still under development and not comprehensively tested.

Features

  • Create config-example.ini from an existing config-production.ini (which contains additional example values).
    • python -c "import deploymentutils as du; print(du.remove_secrets_from_config('config-production.ini'))"
    • See test/test_config.ini and unittests for details.

Known Issues

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

deploymentutils-0.12.2.tar.gz (40.9 kB view details)

Uploaded Source

Built Distribution

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

deploymentutils-0.12.2-py3-none-any.whl (31.4 kB view details)

Uploaded Python 3

File details

Details for the file deploymentutils-0.12.2.tar.gz.

File metadata

  • Download URL: deploymentutils-0.12.2.tar.gz
  • Upload date:
  • Size: 40.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.4

File hashes

Hashes for deploymentutils-0.12.2.tar.gz
Algorithm Hash digest
SHA256 79db36b9ce2b1143f37e4e68ffa40c9e42ef24842468e9033b93b90bc8e020ef
MD5 fe5ec2394c62771ec31e398dfde3e754
BLAKE2b-256 d1b82772b54e5e299f28e8c26e53efed91cda0442d1e8a306643ee1c111e7d74

See more details on using hashes here.

File details

Details for the file deploymentutils-0.12.2-py3-none-any.whl.

File metadata

File hashes

Hashes for deploymentutils-0.12.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7e67c768c1397031f0a6e08d01ee6dbf6752e62d701ce65268e08245d29386e5
MD5 e20524fc0eb53d2d66575fb396bf5697
BLAKE2b-256 3f03a0d614e073e663418641fccabb7d38ae35432eb5591a769f7bbae614b65f

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