Skip to main content

Simple yet useful Continious Delivery script. Work with git and .sh/.bat scripts.

Project description

WeirdGitter

WeirdGitter is a simple yet useful Continious Delivery script. Work with git and .sh/.bat scripts

Installation

pip install WeirdGitter

Usage

Pull a repo with scripts. Scripts should be in Home Directory. Scripts should be named wg_test.sh, wg_build.sh, wg_deploy.sh for unix and wg_test.bat, wg_build.bat, wg_deploy.bat for windows

Firstly, executes text, then build, and finally deploy.

Create a runner .py file, using the docs or this example:

from weirdgitter import WeirdGitter

wg = WeirdGitter(
    repo_path='/path/to/repo',
    branch='deploy',
    name='MyProjectName'
)

wg.run_loop()

Then run script in background (Will work until an error (ideally forerver))

Custom callback:

from weirdgitter import WeirdGitter, WeirdGitterResult

import telebot

TG_TOKEN = "YOUR TELEGRAM BOT TOKEN"
CHAT_ID = "YOUR CHAT ID"

bot = telebot.TeleBot(TG_TOKEN)

def callback(result: WeirdGitterResult):
    if result.result_status is None:
        return
    res = f"`{result.name} | {result.result_status}`\n"
    for k in result.updates:
        res += f"`{k}`: {result.__dict__[k]}\n"
    
    bot.send_message(
        chat_id=CHAT_ID,
        text=res
    )

Feel free to ask for suggestions and bugs through email

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

weirdgitter-0.0.3.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

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

weirdgitter-0.0.3-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file weirdgitter-0.0.3.tar.gz.

File metadata

  • Download URL: weirdgitter-0.0.3.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.7

File hashes

Hashes for weirdgitter-0.0.3.tar.gz
Algorithm Hash digest
SHA256 1adcacb9b02c0a23a61e2958e03a31885123e1cc68b4c3f812d96f11061bacd9
MD5 b17ca049edb705e90356afba1344155f
BLAKE2b-256 9bd66ebc69ad01613d39392367fdc8296f3f31ec547fd1bb4036a02b9b8402ec

See more details on using hashes here.

File details

Details for the file weirdgitter-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: weirdgitter-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.7

File hashes

Hashes for weirdgitter-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e0c470b6da387dae0c95df93d1254abb877ce11ee565dd0796cf29e38571cdd7
MD5 cc19c2ac5a7717a83614bb50f0d9f447
BLAKE2b-256 ff7bfebb1fe99240eed45f8c860296dc363ce2d4c774501620035dcc95a94072

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